.page-tai-xiu {
  background-color: #0f0000; /* As per example CSS in return format */
  color: #f0e6e6; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

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

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

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for text readability */
  border-radius: 8px;
  max-width: 800px;
}

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

.page-tai-xiu__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0e6e6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  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; /* Register/Login color */
  color: #FFFF00; /* 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: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #FFFF00; /* Register/Login font color for titles */
  text-align: center;
  margin: 60px 0 30px;
  font-weight: 600;
}

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0e6e6;
  text-align: justify;
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0e6e6;
}

.page-tai-xiu__numbered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0e6e6;
}

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

.page-tai-xiu__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-tai-xiu__bet-card {
  background-color: #212121; /* Darker card background for contrast */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  color: #f0e6e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tai-xiu__bet-card-title {
  font-size: 1.5rem;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__bet-card-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0e6e6;
}

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

.page-tai-xiu__faq-item {
  background-color: #212121;
  border: 1px solid #017439;
  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;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFF00; /* Register/Login font color */
  background-color: #017439; /* Primary color for summary background */
  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: #005a2e;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFFF00;
  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;
  background-color: #212121; /* Card background */
  color: #f0e6e6;
  font-size: 1.1rem;
  border-top: 1px solid #017439;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-tai-xiu__hero-content {
    padding: 15px;
  }

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

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin: 40px 0 20px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__bet-card-description,
  .page-tai-xiu__faq-answer {
    font-size: 1rem;
  }

  .page-tai-xiu__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure min size is maintained */
    min-height: 200px; /* Ensure min size is maintained */
  }

  .page-tai-xiu__bet-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__bet-card {
    padding: 20px;
  }

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

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

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

  .page-tai-xiu__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}