.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

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

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

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

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFFFF; /* Ensures WCAG AA contrast */
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #a30606;
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-tai-xiu__hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
  color: #017439;
}

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

.page-tai-xiu__highlight {
  color: #C30808;
  font-weight: 600;
}

.page-tai-xiu__list-highlight {
  color: #017439;
  font-weight: 600;
}

/* General Section Styles */
.page-tai-xiu__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

.page-tai-xiu__dark-bg {
  background-color: var(--primary-color, #017439);
  color: #FFFFFF;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__sub-title {
  color: #FFFFFF;
}

.page-tai-xiu__dark-bg .page-tai-xiu__highlight {
  color: #FFFF00; /* Yellow for highlights on dark green background */
}

.page-tai-xiu__dark-bg .page-tai-xiu__list-highlight {
  color: #FFFF00; /* Yellow for list highlights on dark green background */
}

/* Rules Section */
.page-tai-xiu__rules-section ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__rules-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-tai-xiu__content-grid {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.page-tai-xiu__content-grid--reverse {
  flex-direction: row-reverse;
}

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

.page-tai-xiu__image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Bet Types Section */
.page-tai-xiu__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.page-tai-xiu__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-tai-xiu__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #017439;
}

.page-tai-xiu__card p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Tips Section */
.page-tai-xiu__tips-section ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__tips-section li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Benefits Section */
.page-tai-xiu__feature-card {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__feature-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-tai-xiu__feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.page-tai-xiu__feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Guide Section */
.page-tai-xiu__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding-left: 0;
}

.page-tai-xiu__guide-list li {
  counter-increment: guide-counter;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.05rem;
  position: relative;
  padding-left: 40px;
}

.page-tai-xiu__guide-list li::before {
  content: "Bước " counter(guide-counter) ":";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #017439;
  font-size: 1.1rem;
}

.page-tai-xiu__guide-list li a {
    color: #017439;
    text-decoration: underline;
}

.page-tai-xiu__guide-list li a:hover {
    color: #005a2e;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 32px;
}

.page-tai-xiu__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #FFFFFF;
  list-style: none; /* Hide default marker */
}

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

.page-tai-xiu__faq-answer {
  padding: 0 24px 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

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

.page-tai-xiu__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-tai-xiu__faq-answer a:hover {
    color: #ffd700;
}

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

  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image,
  .page-tai-xiu__text-content,
  .page-tai-xiu__image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

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

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

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

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

  .page-tai-xiu__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-tai-xiu__hero-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General content sections */
  .page-tai-xiu__container {
    padding: 30px 15px;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 24px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 12px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__card p,
  .page-tai-xiu__tips-section li,
  .page-tai-xiu__feature-card p,
  .page-tai-xiu__guide-list li,
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Rules and Tips Sections (content-grid) */
  .page-tai-xiu__content-grid {
    gap: 20px;
  }

  .page-tai-xiu__img-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Bet Types Section (grid-3-col) */
  .page-tai-xiu__grid-3-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-title {
    font-size: 1.2rem;
  }

  /* Benefits Section (feature-card) */
  .page-tai-xiu__feature-card {
    padding: 20px;
  }

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

  /* Guide Section */
  .page-tai-xiu__guide-list li {
    padding-left: 35px;
    margin-bottom: 15px;
  }

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

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

  .page-tai-xiu__faq-toggle {
    font-size: 1.3rem;
  }

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

  /* Universal image and container handling for mobile */
  .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,
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-tai-xiu__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}