.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* Body background from shared.css */
}

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

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
}

.page-tai-xiu__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F3F8FF; /* Text Main */
}

.page-tai-xiu__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: #08162B; /* Deep Navy */
}

.page-tai-xiu__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
}

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

.page-tai-xiu__main-title {
  font-weight: bold;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.1;
  max-width: 600px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-tai-xiu__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 600px;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 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: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.6); /* Glow */
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: #1D5FD1; /* Auxiliary color */
  border: 2px solid #1D5FD1; /* Auxiliary color */
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #1D5FD1;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.6); /* Glow */
}

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

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-tai-xiu__intro-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-tai-xiu__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
}

.page-tai-xiu__icon-box-media {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #1D5FD1; /* Auxiliary color */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(29, 95, 209, 0.2);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3F8FF; /* Text Main */
}

.page-tai-xiu__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
}

/* About Tài Xỉu Section & Gameplay Tips Section (dark background) */
.page-tai-xiu__dark-section {
  background-color: #113B7A; /* Main Color */
  padding: 80px 0;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section .page-tai-xiu__sub-title {
  color: #F3F8FF; /* Text Main */
}

.page-tai-xiu__dark-section .page-tai-xiu__paragraph {
  color: #AFC4E8; /* Text Secondary */
}

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

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

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

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

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Choose 58k Section */
.page-tai-xiu__why-choose-58k-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-tai-xiu__benefit-card.page-tai-xiu__card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
}

.page-tai-xiu__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F3F8FF; /* Text Main */
}

.page-tai-xiu__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
}

/* Promotion Section */
.page-tai-xiu__promo-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-tai-xiu__promo-card.page-tai-xiu__card {
  background-color: #10233F; /* Card BG */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-tai-xiu__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: auto;
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
}

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

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F3F8FF; /* Text Main */
  background-color: #113B7A; /* Main Color for summary */
  list-style: none;
  user-select: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #F2C14E; /* Gold */
  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 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #10233F; /* Card BG */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 15px;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08162B; /* Deep Navy */
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title {
  font-size: 2.2rem;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-description {
  margin-bottom: 30px;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__btn-primary {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Generic Image and Container Responsive */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
  }

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

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

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

  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block {
    flex: 1 1 100%;
  }

  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-tai-xiu__hero-container {
    padding-top: 40px;
    gap: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 font size for mobile */
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Buttons and Button Containers */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
  }
  
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section - 3-column features */
  .page-tai-xiu__intro-section {
    padding: 60px 0;
  }

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

  .page-tai-xiu__icon-box-media {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__feature-text {
    font-size: 0.95rem;
  }

  /* About Tài Xỉu Section & Gameplay Tips Section */
  .page-tai-xiu__dark-section {
    padding: 60px 0;
  }

  .page-tai-xiu__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-tai-xiu__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__paragraph {
    font-size: 0.95rem;
  }

  /* Generic Images and Containers */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Promo Section */
  .page-tai-xiu__promo-section {
    padding: 60px 0;
  }

  .page-tai-xiu__promo-card.page-tai-xiu__card {
    padding: 15px;
  }

  .page-tai-xiu__promo-image {
    margin-bottom: 15px;
  }

  .page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

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

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

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

  .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* CTA Bottom Section */
  .page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
  }

  .page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title {
    font-size: 1.8rem;
  }

  .page-tai-xiu__cta-bottom-section .page-tai-xiu__btn-primary {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}