.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Main text color for dark body background */
  background-color: #0A0A0A; /* Body background from shared.css */
  line-height: 1.6;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.page-tai-xiu__section-heading {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Primary color for headings */
  text-transform: uppercase;
}

.page-tai-xiu__section-heading--light {
  color: #FFF6D6; /* Lighter heading for dark sections */
}

.page-tai-xiu__intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #FFF6D6;
}

.page-tai-xiu__intro-text--light {
  color: #FFD36B;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A0A0A;
}

.page-tai-xiu__hero-image {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  display: block;
}

.page-tai-xiu__hero-content {
  text-align: center;
  padding: 0 15px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-tai-xiu__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-tai-xiu__btn-text {
  background: transparent;
  color: #FFD36B;
  border: none;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.page-tai-xiu__btn-text:hover {
  text-decoration: underline;
  color: #F2C14E;
}

/* About Section & Gameplay Section */
.page-tai-xiu__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-tai-xiu__content-grid:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-tai-xiu__text-block {
  flex: 1;
  color: #FFF6D6;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-tai-xiu__text-block strong {
  color: #F2C14E;
}

.page-tai-xiu__text-block--light {
  color: #FFF6D6;
}

.page-tai-xiu__image-block {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__sub-heading {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-tai-xiu__list li {
  margin-bottom: 8px;
  color: #FFF6D6;
  font-size: 17px;
}

.page-tai-xiu__dark-section {
  background-color: #111111; /* Card BG for dark sections */
}

/* Integration Section */
.page-tai-xiu__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-tai-xiu__feature-card {
  background-color: #0A0A0A; /* Darker background for feature cards */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

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

.page-tai-xiu__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-tai-xiu__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

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

/* Benefits Section */
.page-tai-xiu__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-tai-xiu__benefit-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-tai-xiu__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-tai-xiu__benefit-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for modern look */
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #0A0A0A; /* Dark background for FAQ item */
  color: #FFF6D6;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px; /* Slightly larger font for question */
  font-weight: 600;
  color: #F2C14E; /* Question text color */
}
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(242, 193, 78, 0.1); /* Subtle hover effect */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Question text color */
}
.page-tai-xiu__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Larger width */
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 25px;
  background: #111111; /* Card BG for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}
.page-tai-xiu__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-container {
  text-align: center;
  background-color: #111111; /* Card BG for CTA container */
  padding: 40px;
  border-radius: 15px;
  border: 1px solid #3A2A12;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

/* Universal image responsive styles */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__section-heading {
    font-size: 32px;
  }
  .page-tai-xiu__hero-image {
    height: 500px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  }
  .page-tai-xiu__content-grid {
    flex-direction: column;
  }
  .page-tai-xiu__content-grid:nth-child(odd) {
    flex-direction: column;
  }
  .page-tai-xiu__image-block {
    min-width: unset;
  }
  .page-tai-xiu__features-grid,
  .page-tai-xiu__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__section-padding {
    padding: 40px 0;
  }
  .page-tai-xiu__section-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-tai-xiu__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO Chủ đề chính */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }
  .page-tai-xiu__hero-image {
    height: 300px; /* Smaller height for mobile hero */
    margin-bottom: 20px;
  }
  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Force contain for mobile hero */
    aspect-ratio: unset !important;
  }
  .page-tai-xiu__hero-content {
    padding-bottom: 40px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to button group */
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Hình ảnh chung và vùng chứa */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__container,
  .page-tai-xiu__content-grid,
  .page-tai-xiu__image-block,
  .page-tai-xiu__text-block,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__feature-card,
  .page-tai-xiu__benefits-grid,
  .page-tai-xiu__benefit-card,
  .page-tai-xiu__faq-list,
  .page-tai-xiu__faq-item,
  .page-tai-xiu__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__image-block {
    margin-bottom: 20px;
  }

  /* Tiêu đề trang trí + Khu vực SEO văn bản dài */
  .page-tai-xiu__text-block p,
  .page-tai-xiu__list li {
    font-size: 15px;
  }
  .page-tai-xiu__sub-heading {
    font-size: 20px;
  }
  
  /* Phần FAQ cho thiết bị di động */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 16px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
  }
  .page-tai-xiu__faq-answer p {
    font-size: 15px;
  }

  /* Lưới sản phẩm/tính năng */
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__feature-icon {
    height: 180px;
  }
  .page-tai-xiu__feature-title {
    font-size: 20px;
  }

  /* Lưới lợi ích */
  .page-tai-xiu__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__benefit-title {
    font-size: 20px;
  }

  /* Vùng chứa CTA */
  .page-tai-xiu__cta-container {
    padding: 30px;
  }
}