/* style/tai-xiu.css */

:root {
  --page-tai-xiu-primary-color: #C91F17;
  --page-tai-xiu-secondary-color: #E53935;
  --page-tai-xiu-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --page-tai-xiu-card-bg: #D32F2F;
  --page-tai-xiu-text-main: #FFF5E1;
  --page-tai-xiu-border-color: #F2B544;
  --page-tai-xiu-glow-color: #FFCC66;
  --page-tai-xiu-gold-color: #F4D34D;
  --page-tai-xiu-deep-red: #7A0E0E;
}

.page-tai-xiu {
  background-color: #B71C1C; /* Body background from shared.css is #B71C1C, this ensures consistency */
  color: var(--page-tai-xiu-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Top Section / Hero Section */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  background-color: var(--page-tai-xiu-deep-red);
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Adjust as needed for visual balance */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Pull content up over the image slightly */
  padding: 0 20px;
  max-width: 800px;
  color: var(--page-tai-xiu-text-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-tai-xiu__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Sections */
.page-tai-xiu__section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-tai-xiu__section:last-of-type {
  border-bottom: none;
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size */
  color: var(--page-tai-xiu-gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-tai-xiu__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--page-tai-xiu-text-main);
  opacity: 0.9;
}

.page-tai-xiu__highlight {
  color: var(--page-tai-xiu-gold-color);
  font-weight: bold;
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--page-tai-xiu-border-color);
}

.page-tai-xiu__image--content {
  max-width: 800px;
}

/* Lists */
.page-tai-xiu__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--page-tai-xiu-text-main);
  font-size: 1rem;
}

.page-tai-xiu__list-item::before {
  content: '★'; /* Star bullet */
  color: var(--page-tai-xiu-gold-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

.page-tai-xiu__numbered-list {
  list-style: none;
  counter-reset: section-counter;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item {
  padding-left: 40px;
  margin-bottom: 20px;
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item::before {
  counter-increment: section-counter;
  content: counter(section-counter) ". ";
  color: var(--page-tai-xiu-gold-color);
  font-weight: bold;
  font-size: 1.2em;
  left: 0;
  top: 0;
}

.page-tai-xiu__list-title {
  color: var(--page-tai-xiu-gold-color);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Buttons */
.page-tai-xiu__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn--primary {
  background: var(--page-tai-xiu-button-gradient);
  color: #333333; /* Dark text for bright gold button */
  border: none;
}

.page-tai-xiu__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-tai-xiu__btn--secondary {
  background-color: transparent;
  color: var(--page-tai-xiu-gold-color);
  border: 2px solid var(--page-tai-xiu-gold-color);
}

.page-tai-xiu__btn--secondary:hover {
  background-color: var(--page-tai-xiu-gold-color);
  color: var(--page-tai-xiu-deep-red);
  transform: translateY(-2px);
}

.page-tai-xiu__text-link {
  color: var(--page-tai-xiu-gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tai-xiu__text-link:hover {
  color: var(--page-tai-xiu-glow-color);
  text-decoration: underline;
}

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

.page-tai-xiu__cta-group--center {
  text-align: center;
}

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

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

.page-tai-xiu__promo-card {
  background-color: var(--page-tai-xiu-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-tai-xiu-border-color);
  color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__promo-title {
  font-size: 1.4rem;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__promo-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ Section */
.page-tai-xiu__faq-item {
  background-color: var(--page-tai-xiu-card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-tai-xiu-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
  font-size: 1.2rem;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__faq-answer {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--page-tai-xiu-text-main);
}

/* Conclusion */
.page-tai-xiu__conclusion .page-tai-xiu__paragraph {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }

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

@media (max-width: 768px) {
  /* 1. Top Section / Hero Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 20px;
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 0 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  /* 2. Single Column Long Content Area */
  .page-tai-xiu__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
  }

  .page-tai-xiu__paragraph,
  .page-tai-xiu__list-item,
  .page-tai-xiu__promo-description,
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem;
  }

  .page-tai-xiu__list-title {
    font-size: 1.2rem;
  }

  /* 3. Generic Images and Figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Ensuring image containers also adapt */
  .page-tai-xiu__hero-image-wrapper,
  .page-tai-xiu__section,
  .page-tai-xiu__promo-card,
  .page-tai-xiu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and Button Containers */
  .page-tai-xiu__btn,
  .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;
    padding-right: 15px;
    font-size: 1rem;
  }

  .page-tai-xiu__cta-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. Registration Tutorial and FAQ Blocks (already handled by general list/paragraph styles) */
  .page-tai-xiu__numbered-list .page-tai-xiu__list-item {
    padding-left: 30px;
  }

  .page-tai-xiu__numbered-list .page-tai-xiu__list-item::before {
    font-size: 1.1em;
  }

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