/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Light text for dark body background */
  background-color: var(--color-deep-navy); /* From shared.css */
}

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

.page-tai-xiu__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.page-tai-xiu__section-title--light {
  color: #F3F8FF;
}

.page-tai-xiu__text-block {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #AFC4E8;
}

.page-tai-xiu__text-center {
  text-align: center;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover */
  display: block;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 15px;
}

.page-tai-xiu__main-title {
  font-size: 58px;
  font-weight: 900;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__tagline {
  font-size: 20px;
  color: #F3F8FF;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 68, 166, 0.4);
}

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

.page-tai-xiu__btn-secondary {
  background: none;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-primary--center {
  margin-top: 30px;
}

.page-tai-xiu__btn-primary--app {
  margin-top: 30px;
  min-width: 200px;
}

/* General content cards */
.page-tai-xiu__content-card {
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F3F8FF;
}

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

.page-tai-xiu__card-text {
  font-size: 16px;
  color: #AFC4E8;
  line-height: 1.7;
}

.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__list-item {
  font-size: 16px;
  color: #AFC4E8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-tai-xiu__list-item::before {
  content: '✔';
  color: #F2C14E;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Grid Layouts */
.page-tai-xiu__grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.page-tai-xiu__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-tai-xiu__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Images */
.page-tai-xiu__image-container {
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__image-caption {
  font-size: 14px;
  color: #AFC4E8;
  margin-top: 15px;
}

/* Benefits Section */
.page-tai-xiu__section--benefits {
  background: #08162B; /* Deep Navy from custom colors */
  border-top: 1px solid #1B3357;
  border-bottom: 1px solid #1B3357;
}

.page-tai-xiu__benefit-card {
  text-align: center;
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tai-xiu__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-tai-xiu__benefit-text {
  font-size: 16px;
  color: #AFC4E8;
}

/* Strategy Section */
.page-tai-xiu__strategy-card {
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* App Download Section */
.page-tai-xiu__section--app-download {
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
  padding: 80px 0;
  border-top: 1px solid #1B3357;
  border-bottom: 1px solid #1B3357;
}

.page-tai-xiu__container--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-tai-xiu__app-content {
  flex: 1;
  text-align: left;
}

.page-tai-xiu__app-image-wrapper {
  flex-shrink: 0;
  width: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__image--app {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-tai-xiu__section--faq {
  padding-bottom: 80px;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84;
  overflow: hidden;
  background: #10233F;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF;
}
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(43, 115, 246, 0.1);
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: #08162B;
  border-radius: 0 0 10px 10px;
  color: #AFC4E8;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Conclusion Section */
.page-tai-xiu__section--conclusion {
  padding-top: 40px;
  padding-bottom: 100px;
}

/* Global image and button responsive rules for mobile */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container,
.page-tai-xiu__cta-buttons,
.page-tai-xiu__button-group,
.page-tai-xiu__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
  }

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

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

  .page-tai-xiu__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Mobile: contain */
    aspect-ratio: unset !important; /* Reset aspect ratio for contain */
  }

  .page-tai-xiu__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__tagline {
    font-size: 17px;
    margin-bottom: 30px;
  }

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

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Grid Layouts */
  .page-tai-xiu__grid--2-col,
  .page-tai-xiu__grid--3-col {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-tai-xiu__content-card,
  .page-tai-xiu__benefit-card,
  .page-tai-xiu__strategy-card {
    padding: 25px;
  }

  .page-tai-xiu__card-title,
  .page-tai-xiu__benefit-title {
    font-size: 20px;
  }

  .page-tai-xiu__card-text,
  .page-tai-xiu__benefit-text,
  .page-tai-xiu__list-item {
    font-size: 15px;
  }

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

  .page-tai-xiu__image-caption {
    font-size: 13px;
  }

  /* App Download Section */
  .page-tai-xiu__section--app-download {
    padding: 50px 0;
  }

  .page-tai-xiu__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-tai-xiu__app-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .page-tai-xiu__app-image-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* FAQ Section */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px 20px;
  }

  .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 15px;
  }

  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
    font-size: 15px;
  }

  /* General image and container adaptation */
  .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__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;
    padding-right: 15px;
  }
  
  .page-tai-xiu__products-section { /* Example for product grid if it were here */
    overflow-x: hidden !important;
  }
  
  .page-tai-xiu__article-body { /* For main content/article text blocks */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    text-align: left; /* Align left for better readability on mobile */
  }
  .page-tai-xiu__article-body p, .page-tai-xiu__article-body ul, .page-tai-xiu__article-body ol {
    text-align: left;
  }
}

@media (max-width: 849px) {
  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Mobile: contain */
    aspect-ratio: unset !important; /* Reset aspect ratio for contain */
  }
}