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

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--page-text-main); /* Assuming dark body background, use light text */
  background-color: var(--page-bg); /* Use specified background color */
}

.page-tai-xiu__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background: var(--page-deep-red);
  color: var(--page-text-main);
  position: relative;
  overflow: hidden;
}

.page-tai-xiu__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  max-width: 600px;
}

.page-tai-xiu__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-gold);
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}

.page-tai-xiu__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-text-main);
}

.page-tai-xiu__hero-image {
  flex: 1 1 40%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tai-xiu__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: var(--page-button-gradient);
  color: #ffffff; /* White text on gold gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: var(--page-text-main);
  border: 2px solid var(--page-border);
  box-shadow: 0 4px 15px rgba(242, 181, 68, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: var(--page-border);
  color: var(--page-deep-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 181, 68, 0.4);
}

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-gold);
}

.page-tai-xiu__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--page-text-main);
}

.page-tai-xiu__intro-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-tai-xiu__icon-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__icon-box {
  background-color: var(--page-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--page-text-main);
}

.page-tai-xiu__icon-box:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-border);
  box-shadow: 0 0 15px var(--page-glow);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image itself is clipped to circle */
}

.page-tai-xiu__icon-box-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-gold);
}

.page-tai-xiu__icon-box-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-text-main);
}

.page-tai-xiu__game-guide-section,
.page-tai-xiu__strategy-section {
  padding: 60px 0;
  background-color: var(--page-deep-red);
}

.page-tai-xiu__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-tai-xiu__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-tai-xiu__content-text {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--page-text-main);
}

.page-tai-xiu__content-text .page-tai-xiu__section-title {
  text-align: left;
  color: var(--page-gold);
}

.page-tai-xiu__content-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-tai-xiu__guide-list,
.page-tai-xiu__strategy-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-tai-xiu__guide-list li,
.page-tai-xiu__strategy-list li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  color: var(--page-text-main);
}

.page-tai-xiu__guide-list li::before,
.page-tai-xiu__strategy-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--page-gold);
  font-size: 1.2em;
  line-height: 1;
}

.page-tai-xiu__content-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-tai-xiu__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__promo-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

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

.page-tai-xiu__promo-card {
  background-color: var(--page-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--page-text-main);
}

.page-tai-xiu__promo-card:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--page-text-main);
}

.page-tai-xiu__faq-section {
  padding: 60px 0;
  background-color: var(--page-deep-red);
}

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-tai-xiu__faq-item {
  background-color: var(--page-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--page-text-main);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-gold);
  background-color: var(--page-card-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--page-text-main);
}

.page-tai-xiu__faq-answer p {
  margin-top: 10px;
}

.page-tai-xiu__action-section {
  padding: 60px 0;
  background-color: var(--page-bg);
  text-align: center;
}

.page-tai-xiu__action-section .page-tai-xiu__section-title,
.page-tai-xiu__action-section .page-tai-xiu__section-description {
  margin-bottom: 20px;
}

.page-tai-xiu__action-section .page-tai-xiu__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

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