/* style/tai-xiu.css */

/* Base styles for the page-tai-xiu content */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body background */
  background-color: #FFFFFF; /* Explicitly set for content area if body is default white */
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #017439; /* Brand primary color for hero background */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
  position: relative;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop default */
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #FFFFFF; /* White text on dark green background */
  z-index: 1;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFF00; /* Special color for H1 as per custom color rules */
}

.page-tai-xiu__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Call to Action Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

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

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

.page-tai-xiu__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439; /* Text color on hover for contrast */
}

/* General Section Styles */
.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color */
}

.page-tai-xiu__section-title--white {
  color: #FFFFFF;
}

.page-tai-xiu__content-area {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.page-tai-xiu__content-area--white {
  color: #FFFFFF;
}

.page-tai-xiu__content-area p {
  margin-bottom: 1.2em;
}

.page-tai-xiu__content-area strong {
  color: #017439;
}

.page-tai-xiu__content-area--white strong {
  color: #FFFF00;
}

/* Intro Section */
.page-tai-xiu__intro-section {
  background-color: #FFFFFF; /* Light background */
}

/* Features Section */
.page-tai-xiu__features-section {
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  padding: 60px 0;
}

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

.page-tai-xiu__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-tai-xiu__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for emphasis on dark background */
}

.page-tai-xiu__feature-description {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* How-To-Play Section */
.page-tai-xiu__how-to-play-section {
  background-color: #f9f9f9; /* Light background */
  padding-bottom: 60px;
}

.page-tai-xiu__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-tai-xiu__step-list li {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-tai-xiu__step-list li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-tai-xiu__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 15px;
  color: #017439;
}

.page-tai-xiu__step-list p {
  font-size: 1rem;
  color: #555555;
}

.page-tai-xiu__step-list a {
  color: #017439;
  text-decoration: underline;
}

.page-tai-xiu__step-list a:hover {
  color: #C30808;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  padding: 60px 0;
}

.page-tai-xiu__article-figure {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__tips-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05rem;
}

.page-tai-xiu__tips-list li::before {
  content: "•";
  color: #FFFF00; /* Yellow bullet point */
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

.page-tai-xiu__tips-list strong {
  color: #FFFF00;
}

/* Promotions Section */
.page-tai-xiu__promotions-section {
  background-color: #FFFFFF; /* Light background */
  padding: 60px 0;
}

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

.page-tai-xiu__promo-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 180px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-tai-xiu__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-tai-xiu__promo-description {
  font-size: 0.95rem;
  color: #555555;
  flex-grow: 1; /* Make description take available space */
  margin-bottom: 20px;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  color: #017439;
  border-color: #017439;
  background-color: transparent;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-tai-xiu__promo-text-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: #555555;
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439; /* Brand color for question text */
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

.page-tai-xiu__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-tai-xiu__faq-answer a:hover {
  color: #C30808;
}

/* Closing CTA Section */
.page-tai-xiu__closing-cta {
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-tai-xiu__subtitle--white {
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Universal image styles to prevent overflow */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}