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

.page-tai-xiu__intro-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
}

.page-tai-xiu__intro-section .page-tai-xiu__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-tai-xiu__intro-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-tai-xiu__intro-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-tai-xiu__intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
  margin-top: 30px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6B02A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Primary color */
  line-height: 1.3;
}

.page-tai-xiu__about-game-section,
.page-tai-xiu__rules-section,
.page-tai-xiu__bet-types-section,
.page-tai-xiu__strategies-section,
.page-tai-xiu__why-km1888-section,
.page-tai-xiu__game-experience-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__final-cta-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
}

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

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

.page-tai-xiu__rules-item,
.page-tai-xiu__strategy-card {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__rules-item img,
.page-tai-xiu__strategy-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-tai-xiu__item-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary color */
}

.page-tai-xiu__item-description,
.page-tai-xiu__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
}

.page-tai-xiu__bet-list,
.page-tai-xiu__benefits-list,
.page-tai-xiu__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-tai-xiu__bet-item,
.page-tai-xiu__benefit-item,
.page-tai-xiu__step-item {
  background: #111111; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__bet-item:last-child,
.page-tai-xiu__benefit-item:last-child,
.page-tai-xiu__step-item:last-child {
  margin-bottom: 0;
}

.page-tai-xiu__bet-item .page-tai-xiu__item-title,
.page-tai-xiu__benefit-item .page-tai-xiu__item-title,
.page-tai-xiu__step-item .page-tai-xiu__item-title {
  color: #FFD36B; /* Glow color */
  font-size: 1.35rem;
  margin-bottom: 8px;
}

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

.page-tai-xiu__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  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.15rem;
  font-weight: 600;
  color: #F2C14E; /* Primary color */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-tai-xiu__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.05);
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFF6D6; /* Text Main color */
}

.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;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
}

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

.page-tai-xiu__final-cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-tai-xiu__final-cta-content {
  max-width: 800px;
}

.page-tai-xiu__final-cta-content .page-tai-xiu__section-title {
  margin-bottom: 25px;
}

.page-tai-xiu__final-cta-content .page-tai-xiu__text-block {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__intro-section .page-tai-xiu__container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-tai-xiu__intro-content,
  .page-tai-xiu__intro-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-tai-xiu__description {
    font-size: 1rem;
  }
  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-tai-xiu__rules-grid,
  .page-tai-xiu__strategy-grid {
    grid-template-columns: 1fr;
  }
  .page-tai-xiu__item-title,
  .page-tai-xiu__card-title {
    font-size: 1.3rem;
  }
  .page-tai-xiu__text-block,
  .page-tai-xiu__item-description,
  .page-tai-xiu__card-description {
    font-size: 0.95rem;
  }
  .page-tai-xiu__faq-question {
    font-size: 1.05rem;
  }
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__intro-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-tai-xiu__container {
    padding: 0 15px;
  }
  .page-tai-xiu__intro-content,
  .page-tai-xiu__intro-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .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;
  }
  .page-tai-xiu__about-game-section,
  .page-tai-xiu__rules-section,
  .page-tai-xiu__bet-types-section,
  .page-tai-xiu__strategies-section,
  .page-tai-xiu__why-km1888-section,
  .page-tai-xiu__game-experience-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__final-cta-section {
    padding: 40px 0;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-tai-xiu__text-block {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .page-tai-xiu__rules-grid,
  .page-tai-xiu__strategy-grid {
    gap: 20px;
  }
  .page-tai-xiu__rules-item,
  .page-tai-xiu__strategy-card {
    padding: 25px;
  }
  .page-tai-xiu__item-title,
  .page-tai-xiu__card-title {
    font-size: 1.2rem;
  }
  .page-tai-xiu__bet-item,
  .page-tai-xiu__benefit-item,
  .page-tai-xiu__step-item {
    padding: 20px;
  }
  .page-tai-xiu__bet-item .page-tai-xiu__item-title,
  .page-tai-xiu__benefit-item .page-tai-xiu__item-title,
  .page-tai-xiu__step-item .page-tai-xiu__item-title {
    font-size: 1.2rem;
  }
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
  }
  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__intro-section .page-tai-xiu__container,
  .page-tai-xiu__about-game-section .page-tai-xiu__container,
  .page-tai-xiu__rules-section .page-tai-xiu__container,
  .page-tai-xiu__bet-types-section .page-tai-xiu__container,
  .page-tai-xiu__strategies-section .page-tai-xiu__container,
  .page-tai-xiu__why-km1888-section .page-tai-xiu__container,
  .page-tai-xiu__game-experience-section .page-tai-xiu__container,
  .page-tai-xiu__faq-section .page-tai-xiu__container,
  .page-tai-xiu__final-cta-section .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}