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

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Assumed body background from shared */
}

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

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.page-tai-xiu__text-block--center {
  text-align: center;
}

.page-tai-xiu a {
  color: var(--glow-color);
  text-decoration: none;
}

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

.page-tai-xiu ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.page-tai-xiu li {
  margin-bottom: 0.5rem;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.5);
}

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

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

/* HERO Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
  text-align: center;
}

.page-tai-xiu__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-content {
  flex: 1 1 500px; /* Allow content to grow and shrink */
  text-align: left;
  padding-right: 20px;
}

.page-tai-xiu__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gold-color);
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-tai-xiu__hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

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

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* Intro Section */
.page-tai-xiu__intro-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

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

.page-tai-xiu__feature-item {
  text-align: center;
  background-color: var(--deep-navy);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-tai-xiu__icon-box-media {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

.page-tai-xiu__feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-color);
}

.page-tai-xiu__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* How To Play Section */
.page-tai-xiu__how-to-play-section {
  background-color: var(--deep-navy);
  padding: 60px 0;
}

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

.page-tai-xiu__layout-grid > div {
  flex: 1 1 45%;
}

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

.page-tai-xiu__image-wrapper {
  text-align: center;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

.page-tai-xiu__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.page-tai-xiu__bet-card {
  background-color: var(--deep-navy);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__bet-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-color);
}

/* Tips Section */
.page-tai-xiu__tips-section {
  background-color: var(--deep-navy);
  padding: 60px 0;
}

.page-tai-xiu__tips-list {
  list-style: none;
  padding-left: 0;
}

.page-tai-xiu__tips-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.page-tai-xiu__tips-list li::before {
  content: '✓';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Promo Section */
.page-tai-xiu__promo-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

.page-tai-xiu__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.page-tai-xiu__promo-card {
  background-color: var(--deep-navy);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-tai-xiu__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-tai-xiu__promo-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-color);
}

.page-tai-xiu__promo-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  background-color: var(--deep-navy);
  padding: 60px 0;
}

.page-tai-xiu__faq-list {
  margin-top: 3rem;
}

.page-tai-xiu__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: var(--secondary-color);
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '−';
}

.page-tai-xiu__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--card-bg);
}

.page-tai-xiu__dark-bg-cta {
  background-color: var(--primary-color);
  padding: 50px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__cta-bottom-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__cta-bottom-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-main);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-tai-xiu__hero-content {
    padding-right: 0;
    text-align: center;
  }
  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }
  .page-tai-xiu__layout-grid {
    flex-direction: column;
  }
  .page-tai-xiu__layout-grid > div {
    flex: 1 1 100%;
  }
  .page-tai-xiu__layout-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }
  .page-tai-xiu__hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    text-align: center;
  }
  .page-tai-xiu__hero-description {
    font-size: 1rem;
    text-align: center;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .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;
    padding-right: 15px;
  }

  /* Intro Section - Feature Icons */
  .page-tai-xiu__icon-box-media {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }
  .page-tai-xiu__section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .page-tai-xiu__feature-title {
    font-size: 1.4rem;
  }

  /* General Content & Images */
  .page-tai-xiu__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .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;
  }

  /* Bet Types & Promo Cards */
  .page-tai-xiu__bet-card,
  .page-tai-xiu__promo-card {
    padding: 20px;
  }
  .page-tai-xiu__bet-card-title,
  .page-tai-xiu__promo-card-title {
    font-size: 1.3rem;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.2rem;
  }
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  /* CTA Bottom Section */
  .page-tai-xiu__dark-bg-cta {
    padding: 30px 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-tai-xiu__cta-bottom-title {
    font-size: 1.8rem;
  }
  .page-tai-xiu__cta-bottom-description {
    font-size: 1rem;
  }
}