.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* General page background */
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
  color: #ffffff;
}

.page-tai-xiu__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  padding-right: 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-tai-xiu__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

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

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

.page-tai-xiu__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #E53935;
}

.page-tai-xiu__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-tai-xiu__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-tai-xiu__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__dark-bg p,
.page-tai-xiu__dark-bg li {
  color: #ffffff;
}

.page-tai-xiu__intro-section {
  padding: 60px 0;
}

.page-tai-xiu__intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-tai-xiu__icon-box {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.page-tai-xiu__icon-box:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #FF5A4F;
  box-sizing: border-box;
}

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

.page-tai-xiu__icon-box-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

.page-tai-xiu__icon-box-text {
  font-size: 1em;
  color: #333333;
}

.page-tai-xiu__overview-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategies-section,
.page-tai-xiu__why-w88-section {
  padding: 60px 0;
}

.page-tai-xiu__content-area p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

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

.page-tai-xiu__numbered-list,
.page-tai-xiu__bullet-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__numbered-list li,
.page-tai-xiu__bullet-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.5;
}

.page-tai-xiu__bullet-list {
  list-style-type: disc;
  padding-left: 20px;
}

.page-tai-xiu__faq-section {
  padding: 60px 0;
}

.page-tai-xiu__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  border-bottom: 1px solid #E0E0E0;
  list-style: none;
  position: relative;
}

.page-tai-xiu__faq-question::-webkit-details-marker,
.page-tai-xiu__faq-question::marker {
  display: none;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  font-weight: 400;
  color: #E53935;
  line-height: 1;
  margin-left: 15px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #f5f5f5;
  border-bottom: none;
}

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

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-tai-xiu__cta-container {
  text-align: center;
}

.page-tai-xiu__cta-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tai-xiu__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .page-tai-xiu__hero-content {
    flex: 1 1 100%;
    padding-right: 0;
    text-align: center;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    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;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__content-area {
    padding: 30px 15px;
    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__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-tai-xiu__intro-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__icon-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
  }

  .page-tai-xiu__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__icon-box-title {
    font-size: 1.2em;
  }

  .page-tai-xiu__icon-box-text {
    font-size: 0.95em;
  }

  .page-tai-xiu__overview-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__strategies-section,
  .page-tai-xiu__why-w88-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-section {
    padding: 30px 0;
  }

  .page-tai-xiu__content-area p,
  .page-tai-xiu__numbered-list li,
  .page-tai-xiu__bullet-list li {
    font-size: 1em;
  }

  .page-tai-xiu__content-image {
    margin: 20px auto;
  }

  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* General image responsiveness for all content images */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}