/* -------------------------------------------------- */
/* Base styles for .page-tai-xiu */
/* -------------------------------------------------- */
.page-tai-xiu {
  color: #F3F8FF; /* Text Main for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F3F8FF;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #F2C14E; /* Gold */
  border-radius: 2px;
}

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

/* -------------------------------------------------- */
/* Hero Section */
/* -------------------------------------------------- */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #08162B; /* Deep Navy */
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tai-xiu__hero-content {
  text-align: center;
  padding: 40px 15px 0;
  max-width: 900px;
  margin-top: -120px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, rgba(8, 22, 43, 0.9) 0%, rgba(8, 22, 43, 0.7) 70%, rgba(8, 22, 43, 0) 100%);
  padding-top: 120px;
  border-radius: 10px;
}

.page-tai-xiu__hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: #F3F8FF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 20px;
  color: #AFC4E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* -------------------------------------------------- */
/* Buttons */
/* -------------------------------------------------- */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-secondary {
  background: #10233F; /* Card BG */
  color: #4FA8FF; /* Glow */
  border: 2px solid #244D84; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background: #113B7A; /* Main color */
  color: #F3F8FF; /* Text Main */
  border-color: #1D5FD1; /* Accent color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------- */
/* Introduction Section */
/* -------------------------------------------------- */
.page-tai-xiu__introduction-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

.page-tai-xiu__dark-section {
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF;
}

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

.page-tai-xiu__content-block {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__content-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-tai-xiu__content-block p {
  font-size: 17px;
  color: #AFC4E8;
}

/* -------------------------------------------------- */
/* Features Section */
/* -------------------------------------------------- */
.page-tai-xiu__features-section {
  padding: 80px 0;
  background-color: #113B7A; /* Main color for contrast */
}

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

.page-tai-xiu__feature-card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #244D84;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

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

/* -------------------------------------------------- */
/* Gameplay Section */
/* -------------------------------------------------- */
.page-tai-xiu__gameplay-section {
  padding: 80px 0;
}

.page-tai-xiu__gameplay-section .page-tai-xiu__content-block ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #AFC4E8;
}

.page-tai-xiu__gameplay-section .page-tai-xiu__content-block ul li {
  margin-bottom: 8px;
  font-size: 17px;
}

.page-tai-xiu__gameplay-section .page-tai-xiu__content-block ul li strong {
  color: #F3F8FF;
}

.page-tai-xiu__image-container {
  margin-top: 40px;
  text-align: center;
}

.page-tai-xiu__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------- */
/* Tips Section */
/* -------------------------------------------------- */
.page-tai-xiu__tips-section {
  padding: 80px 0;
  background-color: #1D5FD1; /* Auxiliary color */
}

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

.page-tai-xiu__tip-card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #244D84;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-tai-xiu__tip-card p {
  font-size: 17px;
  color: #AFC4E8;
}

.page-tai-xiu__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* -------------------------------------------------- */
/* FAQ Section */
/* -------------------------------------------------- */
.page-tai-xiu__faq-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #113B7A; /* Main color */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 5px 5px;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
  color: #AFC4E8;
  font-size: 16px;
}

/* -------------------------------------------------- */
/* Responsive Styles */
/* -------------------------------------------------- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image {
    height: 500px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }

  .page-tai-xiu__section-title {
    font-size: 32px;
  }

  .page-tai-xiu__section-description {
    font-size: 17px;
  }

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

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Ensure small padding, not header offset */
    padding-bottom: 40px;
  }

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

  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
  }

  .page-tai-xiu__hero-content {
    margin-top: 0; /* Remove negative margin for smaller screens */
    padding-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__hero-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-tai-xiu__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__introduction-section,
  .page-tai-xiu__features-section,
  .page-tai-xiu__gameplay-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__faq-section {
    padding: 50px 0;
  }

  .page-tai-xiu__content-grid,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__tips-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-tai-xiu__content-block,
  .page-tai-xiu__feature-card,
  .page-tai-xiu__tip-card {
    padding: 20px;
  }

  .page-tai-xiu__content-subtitle,
  .page-tai-xiu__feature-title,
  .page-tai-xiu__tip-title {
    font-size: 20px;
  }

  .page-tai-xiu__content-block p,
  .page-tai-xiu__feature-text,
  .page-tai-xiu__tip-card p {
    font-size: 16px;
  }

  .page-tai-xiu__image-container {
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-tai-xiu__image-container img,
  .page-tai-xiu__feature-card img,
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure images fit without cropping */
    aspect-ratio: unset !important;
  }

  .page-tai-xiu__cta-bottom {
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__faq-list {
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 16px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p { font-size: 15px; }

  .page-tai-xiu__gameplay-section .page-tai-xiu__content-block ul {
    padding-left: 15px;
  }
  .page-tai-xiu__gameplay-section .page-tai-xiu__content-block ul li {
    font-size: 15px;
  }
}