/* style/tai-xiu.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

.page-tai-xiu {
  background-color: var(--card-bg-color); /* Body background is from shared.css, this is for main content area */
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Adheres to fixed header spacing rule */
  position: relative;
  margin-bottom: 40px;
  background-color: var(--deep-navy-color);
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex; /* For image on top, text below rule */
  justify-content: center;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Adjust as needed for visual impact */
}

.page-tai-xiu__hero-content {
  position: relative; /* Not absolute, for image on top, text below rule */
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main-color);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp as per H1 rule */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

.page-tai-xiu__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__cta-button--primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-tai-xiu__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
}

.page-tai-xiu__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__cta-button--secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.page-tai-xiu__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-tai-xiu__container--center {
  text-align: center;
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__text-block {
  font-size: 1.05em;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-tai-xiu__text-block strong {
  color: var(--text-main-color);
}

.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-tai-xiu__list-item {
  background-color: var(--deep-navy-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  color: var(--text-secondary-color);
  font-size: 1.0em;
  display: flex;
  align-items: flex-start;
}

.page-tai-xiu__list-item::before {
  content: '✔️';
  margin-right: 10px;
  color: var(--gold-color);
  font-size: 1.2em;
  line-height: 1;
}

.page-tai-xiu__list-item strong {
  color: var(--text-main-color);
}

.page-tai-xiu__numbered-list {
  list-style: decimal;
  padding-left: 25px;
  margin: 20px 0;
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item {
  background-color: transparent;
  border: none;
  padding: 0;
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item::before {
  content: counter(section-counter) ". ";
  counter-increment: section-counter;
  color: var(--gold-color);
  font-weight: bold;
  margin-right: 8px;
  font-size: 1.1em;
}

.page-tai-xiu__text-link {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
}

.page-tai-xiu__text-link:hover {
  text-decoration: underline;
}

.page-tai-xiu__image-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  background-color: var(--deep-navy-color);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

.page-tai-xiu__image-caption {
  font-size: 0.9em;
  color: var(--text-secondary-color);
  margin-top: 10px;
}

.page-tai-xiu__game-trial-wrapper {
  margin-top: 40px;
  padding: 20px;
  background-color: var(--deep-navy-color);
  border-radius: 10px;
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.5);
}

.page-tai-xiu__game-trial-title {
  font-size: 1.8em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.7);
}

.page-tai-xiu__game-trial-frame {
  border: none;
  border-radius: 8px;
  width: 100%;
  min-height: 500px;
  display: block;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

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

.page-tai-xiu__faq-question {
  font-size: 1.2em;
  color: var(--text-main-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.page-tai-xiu__faq-answer {
  font-size: 1.0em;
  color: var(--text-secondary-color);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 20px;
  }

  .page-tai-xiu__hero-image {
    max-height: 300px;
  }

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

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__section {
    padding: 20px 10px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__container {
    padding: 0 10px;
    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__text-block {
    font-size: 0.95em;
  }

  .page-tai-xiu__list-item {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-tai-xiu__numbered-list {
    padding-left: 20px;
  }

  .page-tai-xiu__image-figure {
    margin: 20px auto;
  }

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

  .page-tai-xiu__game-trial-wrapper {
    padding: 15px;
  }

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

  .page-tai-xiu__game-trial-frame {
    min-height: 300px;
  }

  .page-tai-xiu__faq-item {
    padding: 15px;
  }

  .page-tai-xiu__faq-question {
    font-size: 1.1em;
  }

  .page-tai-xiu__faq-answer {
    font-size: 0.95em;
  }

  /* General image and button overrides for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-tai-xiu__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}