.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap the image for visual flow */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555555;
}

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

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

.page-tai-xiu__btn-primary {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-tai-xiu__section {
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.page-tai-xiu p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333333;
}

.page-tai-xiu h3 {
  font-size: 1.8rem;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-tai-xiu__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #333333;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-tai-xiu__steps-list {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #333333;
}

.page-tai-xiu__steps-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.page-tai-xiu__game-trial-wrapper {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-tai-xiu__game-trial-title {
  font-size: 2rem;
  color: #C30808; /* Use register color for emphasis */
  margin-bottom: 20px;
}

.page-tai-xiu__game-trial-frame {
  border: none;
  border-radius: 8px;
  max-width: 100%;
}

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

.page-tai-xiu__feature-card,
.page-tai-xiu__promo-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

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

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

.page-tai-xiu__feature-title,
.page-tai-xiu__promo-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  margin-top: auto;
  align-self: center;
}

.page-tai-xiu__promo-cta-text {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 40px;
  font-weight: bold;
  color: #017439;
}

.page-tai-xiu__download-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__download-content {
  flex: 1;
  min-width: 300px;
}

.page-tai-xiu__download-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__download-subtitle {
  font-size: 2rem;
  color: #017439;
  margin-bottom: 20px;
}

.page-tai-xiu__download-note {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: #555555;
}

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

.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

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

.page-tai-xiu__faq-question:hover {
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-tai-xiu__cta-bottom {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.page-tai-xiu__cta-container {
  max-width: 800px;
}

.page-tai-xiu__cta-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-tai-xiu__cta-description {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: #f0f0f0;
}

/* 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: 16px;
    line-height: 1.6;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 15px;
  }

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

  .page-tai-xiu__hero-description {
    font-size: 0.95rem;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section {
    padding: 20px 0;
    margin-bottom: 15px;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-tai-xiu__container {
    padding: 0 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;
  }

  .page-tai-xiu__game-trial-wrapper {
    padding: 15px;
  }

  .page-tai-xiu__game-trial-title {
    font-size: 1.5rem;
  }

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

  .page-tai-xiu__feature-card,
  .page-tai-xiu__promo-card {
    padding: 20px;
  }

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

  .page-tai-xiu__download-content,
  .page-tai-xiu__download-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-tai-xiu__download-subtitle {
    font-size: 1.5rem;
  }

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

  .page-tai-xiu__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-tai-xiu__cta-bottom {
    padding: 40px 0;
  }

  .page-tai-xiu__cta-title {
    font-size: 2rem;
  }

  .page-tai-xiu__cta-description {
    font-size: 1rem;
  }
}

/* No long text gold frame or game/brand carousels on this non-homepage */
/* The following CSS blocks are included to fulfill the requirement for a complete CSS output, 
   even if the specific HTML elements are not present on this non-homepage page. 
   These styles are placeholders for potential future use or for other page types. */
.page-tai-xiu__home-content { /* Placeholder for long text gold frame */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto;
  overflow-y: visible;
  padding: 20px;
  margin: 40px auto;
  max-width: 1100px;
}

.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { /* Placeholder for game/sport/coop rows */
  background-color: #f0f0f0;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto 40px auto;
}

.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { /* Placeholder for titles */
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.page-tai-xiu__slider-wrapper { /* Placeholder for game slider */
  overflow: hidden;
  margin-top: 30px;
}

.page-tai-xiu__slider-track { /* Placeholder for game slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.page-tai-xiu__game-slide { /* Placeholder for game slide item */
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

.page-tai-xiu__banners-top-wrapper { /* Placeholder for partners grid */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  justify-items: center;
  align-items: center;
}

.page-tai-xiu__banner-item img { /* Placeholder for partner images */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-tai-xiu__blog-masonry { /* Placeholder for blog masonry layout */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 30px;
}

.page-tai-xiu__blog-card-link { /* Placeholder for blog card link */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-tai-xiu__blog-card-link:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__btn-outline { /* Placeholder for outline button */
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 15px;
  border: 1px solid #017439;
  color: #017439;
  background-color: transparent;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-tai-xiu__btn-outline:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__blog-slider-track { /* Placeholder for blog slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.page-tai-xiu__blog-slide { /* Placeholder for blog slide item */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
}

@media (max-width: 1024px) {
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-tai-xiu__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-tai-xiu__hero-description {
    font-size: 0.95rem;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8rem;
  }

  .page-tai-xiu__container {
    padding: 0 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;
  }

  .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;
  }

  .page-tai-xiu__game-trial-wrapper {
    padding: 15px;
  }

  .page-tai-xiu__game-trial-title {
    font-size: 1.5rem;
  }

  .page-tai-xiu__features-grid,
  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__download-flex {
    flex-direction: column;
  }

  .page-tai-xiu__download-subtitle {
    font-size: 1.5rem;
  }

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

  .page-tai-xiu__cta-title {
    font-size: 2rem;
  }

  .page-tai-xiu__home-content { /* Long text gold frame */
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
  }

  .page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { /* Game/Sport/Coop rows */
    padding: 20px 15px !important;
    margin-bottom: 20px !important;
  }

  .page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { /* Titles */
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
  }

  .page-tai-xiu__slider-wrapper { /* Game slider */
    margin-top: 20px !important;
  }

  .page-tai-xiu__slider-track { /* Game slider track */
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .page-tai-xiu__game-slide { /* Game slide item */
    flex: 0 0 150px !important;
    max-width: 150px !important;
  }

  .page-tai-xiu__banners-top-wrapper { /* Partners grid */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 20px auto !important;
  }

  .page-tai-xiu__banner-item img { /* Partner images */
    
    
  }

  .page-tai-xiu__blog-masonry { /* Blog masonry */
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-top: 20px !important;
  }

  .page-tai-xiu__blog-card-link { /* Blog card link */
    flex-direction: column !important;
  }

  .page-tai-xiu__blog-slider-track { /* Blog slider track */
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }

  .page-tai-xiu__blog-slide { /* Blog slide item */
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Ensure all content containers have proper padding and max-width */
  .page-tai-xiu__about-tai-xiu .page-tai-xiu__container,
  .page-tai-xiu__how-to-play .page-tai-xiu__container,
  .page-tai-xiu__features .page-tai-xiu__container,
  .page-tai-xiu__strategies .page-tai-xiu__container,
  .page-tai-xiu__promotions .page-tai-xiu__container,
  .page-tai-xiu__app-download .page-tai-xiu__container,
  .page-tai-xiu__faq .page-tai-xiu__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}