/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css var(--deep-navy-color) */
}

.page-tai-xiu__section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-tai-xiu__dark-section {
  background-color: #08162B; /* Deep Navy */
}

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #F2C14E 0%, #4FA8FF 100%); /* Gold to Glow */
  border-radius: 5px;
}

.page-tai-xiu__text-block {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-tai-xiu__text-block--small {
  font-size: 15px;
}

.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

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

.page-tai-xiu__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #F2C14E; /* Gold */
  font-size: 18px;
  line-height: 1;
}

.page-tai-xiu__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.page-tai-xiu__ordered-list .page-tai-xiu__list-item {
  padding-left: 0;
}

.page-tai-xiu__ordered-list .page-tai-xiu__list-item::before {
  content: none;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 550px; /* Limit height for desktop */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
  background: rgba(8, 22, 43, 0.8); /* Deep Navy with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 54px);
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-tai-xiu__description {
  font-size: 20px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.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: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-tai-xiu__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border: 2px solid #2B73F6;
}

.page-tai-xiu__btn-secondary:hover {
  transform: translateY(-3px);
  background: #113B7A; /* Main Color */
  border-color: #4FA8FF; /* Glow */
}

/* Image with Text Layout */
.page-tai-xiu__image-with-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.page-tai-xiu__image-with-text--right .page-tai-xiu__content-image {
  order: 2;
}

.page-tai-xiu__image-with-text--right .page-tai-xiu__text-content {
  order: 1;
}

.page-tai-xiu__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  display: block;
  object-fit: cover;
}

.page-tai-xiu__text-content {
  flex: 1;
  max-width: 50%;
}

/* Grid Cards */
.page-tai-xiu__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__card {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__card-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Promo Cards */
.page-tai-xiu__promo-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-tai-xiu__promo-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  text-align: center;
  padding: 20px;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid #244D84; /* Border */
}

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
  color: #F3F8FF; /* Text Main */
  font-size: 24px;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-text {
  font-size: 17px;
  margin-bottom: 25px;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}
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;
}
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(17, 59, 122, 0.5); /* Main Color with transparency */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 25px;
  background: rgba(16, 35, 63, 0.8); /* Card BG with transparency */
  border-radius: 0 0 10px 10px;
  text-align: left;
}

.page-tai-xiu__faq-answer p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-tai-xiu__description {
    font-size: 18px;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }

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

  .page-tai-xiu__list-item,
  .page-tai-xiu__ordered-list .page-tai-xiu__list-item {
    font-size: 16px;
  }

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

  .page-tai-xiu__card-text {
    font-size: 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-tai-xiu__image-with-text {
    flex-direction: column;
    gap: 30px;
  }

  .page-tai-xiu__content-image,
  .page-tai-xiu__text-content {
    max-width: 100%;
    flex: none;
  }

  .page-tai-xiu__image-with-text--right .page-tai-xiu__content-image {
    order: unset;
  }

  .page-tai-xiu__image-with-text--right .page-tai-xiu__text-content {
    order: unset;
  }

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

@media (max-width: 849px) {
  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* HERO 主图区域: 移动 object-fit:contain !important */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__section {
    padding: 40px 15px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    min-height: auto;
  }
}