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

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background: #B71C1C; /* Background color for section */
  text-align: center;
}

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

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

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 20px;
}

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

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for text on primary button */
  border: 2px solid #FFD86A;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #FFF5E1; /* Text Main for secondary button */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 15px rgba(242, 181, 68, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-primary--center,
.page-tai-xiu__btn-secondary--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: fit-content;
}

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

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

.page-tai-xiu__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 60px 16px;
  color: #FFF5E1; /* Ensure text is visible on dark body background */
}

.page-tai-xiu__dark-section {
  background: #B71C1C;
  color: #FFF5E1;
}

.page-tai-xiu__content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 16px;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #FFD86A; /* Gold color for section titles */
  margin-bottom: 25px;
  text-align: center;
}

.page-tai-xiu__section-title--light {
  color: #FFD86A; /* Gold color for section titles on dark background */
}

.page-tai-xiu__section-description {
  font-size: 1.05rem;
  margin-bottom: 40px;
  text-align: center;
  color: #FFF5E1;
}

.page-tai-xiu__section-description--light {
  color: #FFF5E1;
}

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

.page-tai-xiu__feature-item {
  background: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-tai-xiu__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F4D34D; /* Gold border */
  box-shadow: 0 0 15px #FFCC66; /* Glow effect */
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

.page-tai-xiu__feature-text {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-tai-xiu__rules-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-tai-xiu__rules-item {
  background: #D32F2F; /* Card BG color */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-tai-xiu__rules-item p {
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-tai-xiu__rules-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #FFD86A;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

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

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

.page-tai-xiu__tip-card {
  background: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-tai-xiu__tip-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFD86A;
  margin-bottom: 15px;
}

.page-tai-xiu__tip-card p {
  color: #FFF5E1;
}

.page-tai-xiu__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-tai-xiu__advantages-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #FFF5E1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-tai-xiu__list-icon {
  font-size: 1.2em;
  color: #FFD86A;
  flex-shrink: 0;
}

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

.page-tai-xiu__faq-item {
  background: #D32F2F; /* Card BG color */
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD86A;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  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: 0 25px 20px;
  font-size: 1rem;
  color: #FFF5E1;
}

.page-tai-xiu__cta-section {
  padding-top: 60px;
  padding-bottom: 80px;
  background: #B71C1C;
  text-align: center;
}

.page-tai-xiu__cta-section .page-tai-xiu__btn-primary {
  margin-top: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-tai-xiu__hero-content {
    text-align: center;
  }

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

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

  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .page-tai-xiu__icon-box-media {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* HERO section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

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

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

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

  .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: 12px 20px;
  }

  /* Module 1 (Intro/Features) three-column with square images */
  .page-tai-xiu__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

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

  .page-tai-xiu__feature-item {
    padding: 25px;
  }

  .page-tai-xiu__feature-title {
    font-size: 1.3rem;
  }

  /* General content sections */
  .page-tai-xiu__content-area,
  .page-tai-xiu__content-container {
    padding: 40px 15px;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-tai-xiu__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-tai-xiu__rules-item {
    padding: 20px;
  }

  .page-tai-xiu__rules-heading {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .page-tai-xiu__advantages-list li {
    font-size: 1rem;
  }

  /* Tips grid */
  .page-tai-xiu__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-tai-xiu__tip-card {
    padding: 25px;
  }

  .page-tai-xiu__tip-title {
    font-size: 1.3rem;
  }

  /* FAQ section */
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  /* CTA section */
  .page-tai-xiu__cta-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  /* Universal image and container rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__hero-section,
  .page-tai-xiu__intro-section,
  .page-tai-xiu__game-rules-section,
  .page-tai-xiu__betting-tips-section,
  .page-tai-xiu__why-choose-vn88-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}