/* Base styles for the page-tai-xiu content */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Section styling */
.page-tai-xiu__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

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

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

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

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #08162B; /* Deep Navy as base background */
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the container, might crop */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  position: relative; /* Ensure content is above any background elements */
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow */
}

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

/* Call to Action Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.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: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: #2B73F6; /* Primary blue for text */
  border: 2px solid #2B73F6;
  box-shadow: 0 2px 10px rgba(43, 115, 246, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #2B73F6;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-text {
  background: none;
  border: none;
  color: #4FA8FF; /* Glow color for text links */
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-tai-xiu__btn-text:hover {
  color: #F2C14E; /* Gold on hover */
}

/* Generic content styles */
.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #2B73F6; /* Primary blue */
  border-radius: 2px;
}

.page-tai-xiu__content-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: justify;
  font-size: 1.05rem;
  color: #AFC4E8; /* Text Secondary */
}

.page-tai-xiu__content-block p {
  margin-bottom: 15px;
}

.page-tai-xiu__content-block a {
  color: #4FA8FF; /* Glow for internal links */
  text-decoration: none;
  font-weight: 600;
}

.page-tai-xiu__content-block a:hover {
  text-decoration: underline;
  color: #F2C14E; /* Gold on hover */
}

/* Image styling within content */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto; /* Center images and add vertical space */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__image-center {
  margin-left: auto;
  margin-right: auto;
}

/* Card Grid for intro section */
.page-tai-xiu__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__card {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 25px;
  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: #F3F8FF; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-tai-xiu__card img {
  width: 100%;
  max-width: 400px; /* Ensure card images are not too small */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Grid for rules section */
.page-tai-xiu__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__feature-card {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F3F8FF; /* Text Main */
}

.page-tai-xiu__feature-card--full-width {
  grid-column: 1 / -1; /* Span full width */
}