/* style/tai-xiu.css */

/* Base Styles */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set body background */
}

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

.page-tai-xiu__section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-tai-xiu__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #F8F8F8; /* Light background for hero */
}

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

.page-tai-xiu__hero-image {
  flex: 1 1 45%;
  min-width: 300px; /* Ensure image doesn't get too small */
  text-align: center;
}

.page-tai-xiu__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: block; /* Ensure no extra space below img */
  margin: 0 auto;
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  min-width: 300px; /* Ensure content doesn't get too small */
  color: #333333;
}

.page-tai-xiu__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: flex-start;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-tai-xiu__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
  transform: translateY(-2px);
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Intro Section */
.page-tai-xiu__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__content-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin: 30px auto 0;
  display: block;
}

/* How-to-Play Section */
.page-tai-xiu__how-to-play-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-tai-xiu__how-to-play-section .page-tai-xiu__section-title,
.page-tai-xiu__how-to-play-section .page-tai-xiu__section-description {
  color: #FFFFFF;
}

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

.page-tai-xiu__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-tai-xiu__step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-tai-xiu__step-text {
  font-size: 16px;
  color: #F0F0F0;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

.page-tai-xiu__tip-item {
  background-color: #FFFFFF;
  padding: 25px 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 5px solid #26A9E0;
}

.page-tai-xiu__tip-heading {
  font-size: 20px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-tai-xiu__tip-text {
  font-size: 16px;
  color: #555555;
}

/* Why Choose Section */
.page-tai-xiu__why-choose-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-tai-xiu__why-choose-section .page-tai-xiu__section-title,
.page-tai-xiu__why-choose-section .page-tai-xiu__section-description {
  color: #FFFFFF;
}

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

.page-tai-xiu__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-tai-xiu__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-tai-xiu__feature-text {
  font-size: 16px;
  color: #F0F0F0;
}

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

.page-tai-xiu__faq-list {
  max-width: 900px;
  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-item[open] {
  background-color: #EBF7FD; /* Lighter background when open */
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

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

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

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

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF;
  text-align: center;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title,
.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-description {
  color: #FFFFFF;
}

.page-tai-xiu__cta-bottom-content .page-tai-xiu__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

/* General image responsive style */
.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; /* Content below image on smaller screens */
    text-align: center;
  }

  .page-tai-xiu__hero-image {
    order: 1; /* Image above content */
  }

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

  .page-tai-xiu__steps,
  .page-tai-xiu__features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-tai-xiu__container,
  .page-tai-xiu__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__hero-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    gap: 20px !important;
  }

  .page-tai-xiu__main-title {
    font-size: 32px !important;
  }

  .page-tai-xiu__hero-description {
    font-size: 16px !important;
  }

  /* CTA Buttons */
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    align-items: center; /* Center stacked buttons */
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro Section */
  .page-tai-xiu__intro-section {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__section-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
  }

  .page-tai-xiu__section-description {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

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

  /* How-to-Play Section */
  .page-tai-xiu__how-to-play-section {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__steps {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .page-tai-xiu__step-item {
    padding: 25px !important;
  }

  .page-tai-xiu__step-title {
    font-size: 20px !important;
  }

  /* Tips Section */
  .page-tai-xiu__tips-section {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__tip-item {
    padding: 20px !important;
    border-left-width: 3px !important;
  }

  .page-tai-xiu__tip-heading {
    font-size: 18px !important;
  }

  /* Why Choose Section */
  .page-tai-xiu__why-choose-section {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__features {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .page-tai-xiu__feature-item {
    padding: 25px !important;
  }

  .page-tai-xiu__feature-title {
    font-size: 20px !important;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-section {
    padding: 40px 0 !important;
  }

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

  .page-tai-xiu__faq-toggle {
    font-size: 20px !important;
  }

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

  /* CTA Bottom Section */
  .page-tai-xiu__cta-bottom-section {
    padding: 60px 0 !important;
  }

  .page-tai-xiu__cta-bottom-content .page-tai-xiu__cta-buttons {
    margin-top: 20px !important;
  }
}