/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #F5F7FA; /* Background color from custom scheme */
}

.page-tai-xiu__light-bg {
  background-color: #FFFFFF; /* Card Background color */
  color: #333333; /* Text Main color */
}

.page-tai-xiu__dark-section {
  background-color: #E53935; /* Main color */
  color: #ffffff; /* White text for dark background */
}

.page-tai-xiu__text-block--white {
  color: #ffffff;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #E53935; /* Main color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Text Main color */
}

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

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background-color: #ffffff; /* Card Background color */
  color: #E53935; /* Main color */
  border: 2px solid #E53935; /* Main color border */
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark or light) */
}

.page-tai-xiu__content-area {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-tai-xiu__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

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

.page-tai-xiu__text-block {
  flex: 1;
  min-width: 0;
}

.page-tai-xiu__text-block h3 {
  font-size: 1.6em;
  color: #E53935; /* Main color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

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

.page-tai-xiu__ordered-list {
  list-style-type: decimal;
}

.page-tai-xiu__list li,
.page-tai-xiu__ordered-list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-tai-xiu__image-inline,
.page-tai-xiu__image-right,
.page-tai-xiu__image-left {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-tai-xiu__image-right {
  flex: 0 0 40%;
  max-width: 40%;
  margin-left: 20px;
}

.page-tai-xiu__image-left {
  flex: 0 0 40%;
  max-width: 40%;
  margin-right: 20px;
}

.page-tai-xiu__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tai-xiu__feature-card {
  background-color: #ffffff; /* Card Background color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: #333333; /* Text Main color */
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__feature-icon {
  width: 100%; /* Ensure image fills card area */
  max-width: 150px; /* Max width for feature icons */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #E53935; /* Main color */
  margin-bottom: 15px;
}

.page-tai-xiu__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-tai-xiu__step-item {
  text-align: center;
  padding: 20px;
  background-color: #ffffff; /* Card Background color */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Text Main color */
}

.page-tai-xiu__step-title {
  font-size: 1.6em;
  color: #E53935; /* Main color */
  margin-bottom: 15px;
}

.page-tai-xiu__step-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Max width for step images */
  display: block;
  margin: 20px auto 10px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-tai-xiu__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
}

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

.page-tai-xiu__faq-item {
  background-color: #FF5A4F; /* Auxiliary color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
  list-style: none; /* Hide default marker for details */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-tai-xiu__conclusion-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  text-align: center;
}

.page-tai-xiu__conclusion-section .page-tai-xiu__text-block {
  max-width: 800px;
  margin: 0 auto;
}

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

  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: 2em !important;
  }

  .page-tai-xiu__description {
    font-size: 1em !important;
  }

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

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

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

  .page-tai-xiu__content-area,
  .page-tai-xiu__dark-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__conclusion-section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
    gap: 20px;
  }

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

  .page-tai-xiu__image-inline,
  .page-tai-xiu__image-right,
  .page-tai-xiu__image-left {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 15px auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__image-right,
  .page-tai-xiu__image-left {
    flex: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

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

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

  .page-tai-xiu__step-by-step {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-tai-xiu__step-item {
    padding: 15px;
  }

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

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

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

  /* General image and container rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tai-xiu__hero-image-wrapper,
  .page-tai-xiu__content-area,
  .page-tai-xiu__dark-section,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__step-by-step,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__conclusion-section,
  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block,
  .page-tai-xiu__feature-card,
  .page-tai-xiu__step-item,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* No game/gameshow specific CSS for non-homepage */