/* General Styling for the Tài Xỉu Page */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
}

/* Section Spacing */
.page-tai-xiu section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Headings */
.page-tai-xiu__main-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
  max-width: 900px; /* To prevent extremely long lines */
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FF8C1A; /* Primary Color */
  position: relative;
  padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF8C1A, #FFA53A);
  border-radius: 2px;
}

.page-tai-xiu__subsection-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraphs and Lists */
.page-tai-xiu p {
  margin-bottom: 15px;
}

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

.page-tai-xiu__list li {
  margin-bottom: 8px;
}

.page-tai-xiu strong {
  color: #FFB04D; /* Glow */
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Lighter gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: #FF8C1A; /* Primary Color */
  color: #FFF3E6; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

/* Hero Banner Section */
.page-tai-xiu__hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tai-xiu__hero-image-wrapper {
  margin-bottom: 30px;
  width: 100%;
  max-width: 1000px;
}

.page-tai-xiu__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #A84F0C; /* Border */
}

.page-tai-xiu__hero-content {
  margin-bottom: 30px;
}

.page-tai-xiu__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Content Grid for About Game Section */
.page-tai-xiu__about-game .page-tai-xiu__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-tai-xiu__content-grid .page-tai-xiu__text-block {
  text-align: left;
}

.page-tai-xiu__content-grid .page-tai-xiu__image-wrapper {
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tai-xiu__content-grid .page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

/* Why jn88 Advantages Grid */
.page-tai-xiu__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__advantage-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-tai-xiu__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 20px;
  border: 1px solid #A84F0C; /* Border */
}

.page-tai-xiu__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

/* Promotions Section */
.page-tai-xiu__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__promo-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border */
}

.page-tai-xiu__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 15px;
  border: 1px solid #A84F0C; /* Border */
}

/* How to Play Steps */
.page-tai-xiu__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__step-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tai-xiu__step-card .page-tai-xiu__card-title {
  color: #FFA53A; /* Auxiliary Color */
  margin-bottom: 15px;
}

.page-tai-xiu__step-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Final CTA Section */
.page-tai-xiu__final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Slight gradient for CTA background */
  border-top: 1px solid #A84F0C; /* Border */
}

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

.page-tai-xiu__final-cta .page-tai-xiu__description {
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-tai-xiu__final-cta .page-tai-xiu__cta-buttons {
  margin-top: 20px;
}

.page-tai-xiu__cta-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
}

.page-tai-xiu__cta-image-wrapper .page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #A84F0C; /* Border */
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding-bottom: 60px;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Slight hover effect with primary color */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05); /* Very light tint of primary color */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Global Image Styling */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: 42px;
  }
  .page-tai-xiu__section-title {
    font-size: 32px;
  }
  .page-tai-xiu__subsection-title {
    font-size: 22px;
  }
  .page-tai-xiu__hero-banner {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__about-game .page-tai-xiu__content-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Top Section / Hero Banner */
  .page-tai-xiu__hero-banner {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__main-title {
    font-size: 32px !important; /* Smaller font size for mobile */
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 16px !important;
    margin-bottom: 20px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px !important; /* Adjust padding */
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important;
  }

  /* Sections */
  .page-tai-xiu section {
    padding: 30px 15px;
  }
  .page-tai-xiu__section-title {
    font-size: 28px !important;
    margin-bottom: 20px;
  }
  .page-tai-xiu__subsection-title {
    font-size: 20px !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Content Grid */
  .page-tai-xiu__about-game .page-tai-xiu__content-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-tai-xiu__content-grid .page-tai-xiu__text-block,
  .page-tai-xiu__content-grid .page-tai-xiu__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Advantages Grid */
  .page-tai-xiu__advantages-grid,
  .page-tai-xiu__promo-list,
  .page-tai-xiu__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Images */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__hero-image-wrapper,
  .page-tai-xiu__cta-image-wrapper,
  .page-tai-xiu__content-grid .page-tai-xiu__image-wrapper,
  .page-tai-xiu__advantage-card,
  .page-tai-xiu__promo-card,
  .page-tai-xiu__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* FAQ */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px !important; }
  .page-tai-xiu__faq-qtext { font-size: 16px !important; }
  .page-tai-xiu__faq-toggle { font-size: 24px !important; width: 28px !important; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px !important; }

  /* Final CTA */
  .page-tai-xiu__final-cta {
    padding-left: 15px;
    padding-right: 15px;
  }
}