.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #1F2D3D); /* Default text color, assuming light body bg */
  background-color: var(--site-bg-color, #F4F7FB); /* Assuming a light default background */
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: var(--site-bg-color, #F4F7FB);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed for visual impact */
  overflow: hidden;
}

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

.page-tai-xiu__hero-content-wrapper {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main-color, #1F2D3D); /* Adjust if hero section has different background */
  background-color: var(--card-bg-color, #FFFFFF); /* Example: a card-like background for content */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--custom-color-1776249996415, #000000); /* Black for strong contrast */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__intro-text {
  font-size: 1.1rem;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%; /* Ensure container responsiveness */
  box-sizing: border-box;
  overflow: hidden;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: var(--main-color, #2F6BFF);
  border: 2px solid var(--main-color, #2F6BFF);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--main-color, #2F6BFF);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-outline {
  background: transparent;
  color: var(--main-color, #2F6BFF);
  border: 1px solid var(--border-color, #D6E2FF);
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: auto; /* For card alignment */
}

.page-tai-xiu__btn-outline:hover {
  background: var(--main-color, #2F6BFF);
  color: #ffffff;
  border-color: var(--main-color, #2F6BFF);
}

/* General Section Styles */
.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

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

.page-tai-xiu__text-block {
  font-size: 1rem;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 15px;
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Constraint for content images */
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-tai-xiu__list-item {
  font-size: 1rem;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 10px;
}

.page-tai-xiu__list-item strong {
  color: var(--custom-color-1776249996415, #000000);
}

.page-tai-xiu__sub-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

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

/* Section Specific Styles */
.page-tai-xiu__about-section,
.page-tai-xiu__bet-types-section,
.page-tai-xiu__advantages-section,
.page-tai-xiu__register-cta-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-bg {
  background-color: var(--main-color, #2F6BFF);
  color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__text-block,
.page-tai-xiu__dark-bg .page-tai-xiu__list-item,
.page-tai-xiu__dark-bg .page-tai-xiu__list-item strong {
  color: #ffffff; /* Ensure white text on dark background */
}

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

.page-tai-xiu__card {
  background-color: var(--card-bg-color, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main-color, #1F2D3D);
}

.page-tai-xiu__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 15px;
}

.page-tai-xiu__card-text {
  font-size: 0.95rem;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--custom-color-1776249996415, #000000);
  cursor: pointer;
  list-style: none; /* For <summary> tag */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default arrow for <summary> */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--main-color, #2F6BFF);
}

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

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-main-color, #1F2D3D);
}

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

/* Links within content */
.page-tai-xiu a {
  color: var(--main-color, #2F6BFF);
  text-decoration: underline;
}

.page-tai-xiu a:hover {
  color: var(--accent-color, #6FA3FF);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content-wrapper {
    margin-top: -60px;
    padding: 30px 20px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }
  .page-tai-xiu__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General mobile text and padding */
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-tai-xiu__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding for mobile, consistent */
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
  }
  .page-tai-xiu__hero-content-wrapper {
    margin-top: -40px;
    padding: 25px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for smaller screens */
    margin-bottom: 15px;
  }
  .page-tai-xiu__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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