/* -------------------------------------------------------------------------- */
/*                            Base Styles for Tài Xỉu Page                    */
/* -------------------------------------------------------------------------- */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

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

.page-tai-xiu__section {
  padding: 60px 0;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
  color: #333333;
}

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

.page-tai-xiu__image--centered {
  margin-left: auto;
  margin-right: auto;
}

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

/* -------------------------------------------------------------------------- */
/*                               Hero Section                                 */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  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: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0d0d0d; /* Dark background for image */
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.page-tai-xiu__hero-content {
  padding: 40px 20px;
  background-color: #FFFFFF; /* Light background for text block */
  color: #333333; /* Dark text for light background */
  width: 100%;
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/*                                 CTA Buttons                                */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-primary--small,
.page-tai-xiu__btn-primary--large {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-tai-xiu__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-tai-xiu__btn-primary--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-tai-xiu__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* -------------------------------------------------------------------------- */
/*                             About Tài Xỉu Section                          */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__about-tai-xiu .page-tai-xiu__content-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                               Rules Section                                */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__rules-section .page-tai-xiu__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-tai-xiu__rules-section .page-tai-xiu__content-block {
  flex: 1;
  text-align: justify;
}

.page-tai-xiu__rules-section .page-tai-xiu__image-block {
  flex: 0 0 400px;
  max-width: 400px;
}

.page-tai-xiu__rules-section .page-tai-xiu__image {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                              Strategies Section                            */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__strategies-section .page-tai-xiu__content-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__strategies-section h3 {
  color: #26A9E0;
  font-size: 1.3em;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/*                               Versions Section                             */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__versions-section {
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-tai-xiu__versions-section .page-tai-xiu__section-title {
  color: #ffffff;
}

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

.page-tai-xiu__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tai-xiu__card--inverted {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-tai-xiu__card--inverted .page-tai-xiu__card-title {
  color: #ffffff;
}

.page-tai-xiu__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tai-xiu__card-description {
  font-size: 0.95em;
  color: #333333;
  padding: 0 15px;
}

.page-tai-xiu__card--inverted .page-tai-xiu__card-description {
  color: #f0f0f0;
}

/* -------------------------------------------------------------------------- */
/*                                Guide Section                               */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-tai-xiu__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-tai-xiu__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-tai-xiu__step-description {
  margin-bottom: 25px;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                             Advantages Section                             */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__advantages-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-tai-xiu__advantages-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-tai-xiu__advantage-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-tai-xiu__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 0;
}

.page-tai-xiu__advantage-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-tai-xiu__advantage-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                                 */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__faq-section .page-tai-xiu__container {
  max-width: 900px;
}

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

.page-tai-xiu__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  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.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  border-bottom: none;
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with toggle */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  pointer-events: none; /* Prevent toggle icon from interfering with click on summary */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '-';
  transform: rotate(45deg); /* Simple animation for '+' to 'x' */
}

/* Hide default details marker */
.page-tai-xiu__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-tai-xiu__faq-item summary::marker {
  display: none;
}

.page-tai-xiu__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

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

.page-tai-xiu__faq-answer .page-tai-xiu__btn-primary--small {
  margin-top: 15px;
}

/* -------------------------------------------------------------------------- */
/*                               CTA Bottom Section                           */
/* -------------------------------------------------------------------------- */
.page-tai-xiu__cta-bottom {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-tai-xiu__cta-bottom .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__cta-bottom .page-tai-xiu__description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                              */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image-wrapper {
    max-height: 500px;
  }

  .page-tai-xiu__rules-section .page-tai-xiu__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-tai-xiu__rules-section .page-tai-xiu__image-block {
    flex: none;
    max-width: 600px;
    margin-top: 30px;
  }

  .page-tai-xiu__grid-layout,
  .page-tai-xiu__guide-steps,
  .page-tai-xiu__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-tai-xiu__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

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

  /* HERO Section Mobile */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
  }

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

  /* CTA Buttons Mobile */
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu__btn-primary--small,
  .page-tai-xiu__btn-primary--large,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    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__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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Rules Section Mobile */
  .page-tai-xiu__rules-section .page-tai-xiu__content-wrapper {
    flex-direction: column;
  }

  .page-tai-xiu__rules-section .page-tai-xiu__image-block {
    max-width: 100%;
    margin-top: 20px;
  }

  /* Versions Section Mobile */
  .page-tai-xiu__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__card-image {
    height: 180px;
  }

  /* Guide Section Mobile */
  .page-tai-xiu__guide-steps {
    grid-template-columns: 1fr;
  }

  /* Advantages Section Mobile */
  .page-tai-xiu__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__advantage-icon {
    width: 80px;
    height: 80px;
  }

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

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

  /* General Images 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__hero-section,
  .page-tai-xiu__rules-section .page-tai-xiu__content-wrapper,
  .page-tai-xiu__strategies-section .page-tai-xiu__content-block,
  .page-tai-xiu__versions-section .page-tai-xiu__grid-layout,
  .page-tai-xiu__guide-steps,
  .page-tai-xiu__advantages-grid,
  .page-tai-xiu__faq-list,
  .page-tai-xiu__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No specific game/gameshow carousels for non-homepage, so no related media queries needed. */
  /* No blog masonry/slider track specific to this page, general image rules apply. */
}