/* style/tai-xiu.css */

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

.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Main text color for the page */
  background-color: var(--background-page); /* Main background color for the page */
}

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

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has shared padding */
  padding-bottom: 60px;
  background-color: var(--deep-red);
}

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

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

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

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

.page-tai-xiu__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #333333; /* Dark text for contrast on gold gradient */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  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: var(--border-color);
  border-radius: 2px;
}

.page-tai-xiu__section-description {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-tai-xiu__intro-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-section {
  background-color: var(--deep-red);
  color: var(--text-main);
}

/* Rules Section */
.page-tai-xiu__rules-section {
  padding: 60px 0;
  background-color: var(--background-page);
}

.page-tai-xiu__rule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-tai-xiu__rule-list li {
  background-color: var(--deep-red);
  border-left: 5px solid var(--border-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-main);
  font-size: 1.05rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__rule-list li strong {
  color: var(--gold-color);
}

/* Bet Types Section */
.page-tai-xiu__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__bet-type-card {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-tai-xiu__bet-type-card p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Advantages Section */
.page-tai-xiu__advantages-section {
  padding: 60px 0;
  background-color: var(--background-page);
}

.page-tai-xiu__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-tai-xiu__advantage-list li {
  background-color: var(--deep-red);
  border-left: 5px solid var(--gold-color);
  padding: 20px;
  border-radius: 5px;
  color: var(--text-main);
  font-size: 1.05rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-tai-xiu__advantage-list li::before {
  content: '✓'; /* Placeholder for an icon */
  font-size: 1.5rem;
  color: var(--border-color);
  font-weight: bold;
}

/* Promo Section */
.page-tai-xiu__promo-section {
  padding: 60px 0;
}

.page-tai-xiu__promo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

.page-tai-xiu__promo-banner {
  flex: 1 1 50%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tai-xiu__promo-details {
  flex: 1 1 40%;
  padding: 30px;
  color: var(--text-main);
}

.page-tai-xiu__promo-details .page-tai-xiu__card-title {
  text-align: left;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-details p {
  margin-bottom: 25px;
  font-size: 1rem;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  padding: 60px 0;
  background-color: var(--background-page);
}

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

.page-tai-xiu__guide-step {
  background-color: var(--deep-red);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.page-tai-xiu__step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-tai-xiu__guide-step p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-tai-xiu__guide-cta, .page-tai-xiu__final-cta-group {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 60px 0;
}

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

.page-tai-xiu__faq-item {
  background-color: var(--deep-red);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
  border-bottom-color: var(--border-color);
  background-color: var(--deep-red);
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--border-color);
  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 25px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Final CTA Section */
.page-tai-xiu__final-cta-section {
  padding: 60px 0 80px 0;
  background-color: var(--background-page);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-tai-xiu__hero-content {
    order: 2;
  }

  .page-tai-xiu__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-tai-xiu__promo-card {
    flex-direction: column;
  }

  .page-tai-xiu__promo-banner {
    order: 1;
  }

  .page-tai-xiu__promo-details {
    order: 2;
    text-align: center;
  }
  
  .page-tai-xiu__promo-details .page-tai-xiu__card-title {
    text-align: center;
  }

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

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container,
  .page-tai-xiu__content-area {
    padding: 20px 15px;
  }

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

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

  .page-tai-xiu__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-tai-xiu__hero-cta-group,
  .page-tai-xiu__guide-cta,
  .page-tai-xiu__final-cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

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

  .page-tai-xiu__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-tai-xiu__intro-section,
  .page-tai-xiu__rules-section,
  .page-tai-xiu__bet-types-section,
  .page-tai-xiu__advantages-section,
  .page-tai-xiu__promo-section,
  .page-tai-xiu__guide-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__final-cta-section {
    padding: 40px 0;
  }

  .page-tai-xiu__rule-list li,
  .page-tai-xiu__advantage-list li {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-tai-xiu__bet-type-grid,
  .page-tai-xiu__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__bet-type-card,
  .page-tai-xiu__guide-step {
    padding: 20px;
  }

  .page-tai-xiu__card-title,
  .page-tai-xiu__step-title {
    font-size: 1.3rem;
  }

  .page-tai-xiu__promo-banner {
    height: auto;
  }

  .page-tai-xiu__promo-details {
    padding: 20px;
  }

  .page-tai-xiu__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
}