.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #0A0A0A;
}

.page-tai-xiu__hero-image {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, may crop */
  object-position: center;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-tai-xiu__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-tai-xiu__lead-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B; /* Glow */
}

.page-tai-xiu__btn-secondary:hover {
  background: #FFD36B;
  color: #0A0A0A;
  transform: translateY(-2px);
}

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

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-tai-xiu__text-main {
  color: #FFF6D6;
}

.page-tai-xiu__intro-section,
.page-tai-xiu__tips-section,
.page-tai-xiu__faq-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
}

.page-tai-xiu__gameplay-section,
.page-tai-xiu__cta-bottom-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-tai-xiu__grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-tai-xiu__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__card img {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-tai-xiu__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-tai-xiu__card p {
  font-size: 1rem;
  color: #FFF6D6;
  flex-grow: 1; /* Allow paragraph to take available space */
}

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

.page-tai-xiu__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-tai-xiu__article-body h3.page-tai-xiu__sub-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Main Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__article-body p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #FFF6D6;
  text-align: justify;
}

.page-tai-xiu__article-body ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-tai-xiu__article-body li {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 8px;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6;
}

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: rgba(242, 193, 78, 0.1); /* Slight hover effect with brand color */
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow */
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  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: rgba(17, 17, 17, 0.8); /* Slightly transparent Card BG */
  border-radius: 0 0 5px 5px;
  font-size: 1rem;
  color: #FFF6D6;
}

/* General image styling for content areas */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    padding: 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-tai-xiu__lead-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-tai-xiu__card-title {
    font-size: 1.2rem;
  }

  .page-tai-xiu__article-body h3.page-tai-xiu__sub-title {
    font-size: 1.4rem;
  }

  .page-tai-xiu__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    min-height: 500px;
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    filter: brightness(0.8); /* Slightly less dark for mobile */
  }

  .page-tai-xiu__hero-content {
    width: 95%;
    padding: 15px;
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    margin-top: 20px; /* Add some margin below the image */
    background: rgba(0, 0, 0, 0.6); /* Slightly darker background for text */
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }

  .page-tai-xiu__lead-text {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
    width: 100%;
    box-sizing: border-box;
  }

  .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;
    font-size: 1rem;
  }

  .page-tai-xiu__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Prevent horizontal scroll */
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-tai-xiu__text-block {
    font-size: 1rem;
  }

  .page-tai-xiu__layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-title {
    font-size: 1.1rem;
  }

  .page-tai-xiu__card p {
    font-size: 0.95rem;
  }

  .page-tai-xiu__article-body {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-tai-xiu__article-body h3.page-tai-xiu__sub-title {
    font-size: 1.3rem;
  }

  .page-tai-xiu__article-body p,
  .page-tai-xiu__article-body li {
    font-size: 1rem;
  }

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

  .page-tai-xiu__faq-qtext {
    font-size: 1rem;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
  
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}