/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background: #F4F7FB;
  line-height: 1.6;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-tai-xiu__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__text-highlight {
  color: #2F6BFF;
  font-weight: 600;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background: #F4F7FB;
  color: #1F2D3D;
  border-color: #1F2D3D;
}

.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: #F4F7FB;
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
  overflow: hidden;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #1F2D3D;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #1F2D3D;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* About Section */
.page-tai-xiu__about-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.page-tai-xiu__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #1F2D3D;
}

.page-tai-xiu__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* How To Play Section */
.page-tai-xiu__how-to-play-section {
  padding: 80px 0;
  background: #F4F7FB;
}

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

.page-tai-xiu__step-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-tai-xiu__step-card h3 {
  font-size: 22px;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-tai-xiu__step-card p {
  font-size: 16px;
  color: #1F2D3D;
}

.page-tai-xiu__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.page-tai-xiu__bet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__bet-list li {
  background: #F4F7FB;
  border-left: 5px solid #2F6BFF;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
}

.page-tai-xiu__bet-list li h3 {
  font-size: 20px;
  color: #1F2D3D;
  margin-top: 0;
  margin-bottom: 8px;
}

.page-tai-xiu__bet-list li p {
  font-size: 16px;
  color: #1F2D3D;
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
  padding: 80px 0;
  background: #2F6BFF;
  color: #FFFFFF;
}

.page-tai-xiu__strategy-section .page-tai-xiu__section-title,
.page-tai-xiu__strategy-section .page-tai-xiu__section-description {
  color: #FFFFFF;
}

.page-tai-xiu__strategy-section .page-tai-xiu__text-block p {
  color: #F0F8FF;
}

.page-tai-xiu__strategy-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}

.page-tai-xiu__strategy-list li {
  margin-bottom: 25px;
  font-size: 17px;
}

.page-tai-xiu__strategy-list li h3 {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-tai-xiu__strategy-list li p {
  font-size: 16px;
  color: #F0F8FF;
}

/* Why Choose Us Section */
.page-tai-xiu__why-choose-us-section {
  padding: 80px 0;
  background: #F4F7FB;
}

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

.page-tai-xiu__feature-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-tai-xiu__feature-card img {
  width: 100%;
  
  height: auto;
  margin: 0 auto 20px auto;
}

.page-tai-xiu__feature-card h3 {
  font-size: 22px;
  color: #2F6BFF;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-tai-xiu__feature-card p {
  font-size: 16px;
  color: #1F2D3D;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
}
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: #F4F7FB;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #F4F7FB;
  border-radius: 0 0 5px 5px;
}

.page-tai-xiu__faq-answer p {
  font-size: 16px;
  color: #1F2D3D;
}

/* Mobile Responsive Styles */
@media (max-width: 849px) {
  .page-tai-xiu__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 15px;
  }

  .page-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Hero Section Mobile */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    gap: 20px;
  }

  .page-tai-xiu__main-title {
    font-size: 32px;
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px;
  }

  /* General Images Mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* About Section Mobile */
  .page-tai-xiu__about-section {
    padding: 40px 0;
  }

  .page-tai-xiu__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-tai-xiu__content-grid.reverse-order .page-tai-xiu__image-block {
    order: -1; /* Reverse order for image on mobile */
  }

  /* How To Play Section Mobile */
  .page-tai-xiu__how-to-play-section {
    padding: 40px 0;
  }

  .page-tai-xiu__step-card {
    padding: 25px;
  }

  .page-tai-xiu__step-card h3 {
    font-size: 20px;
  }

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

  /* Bet Types Section Mobile */
  .page-tai-xiu__bet-types-section {
    padding: 40px 0;
  }

  .page-tai-xiu__bet-list li {
    padding: 15px;
  }

  .page-tai-xiu__bet-list li h3 {
    font-size: 18px;
  }

  /* Strategy Section Mobile */
  .page-tai-xiu__strategy-section {
    padding: 40px 0;
  }

  .page-tai-xiu__strategy-list {
    padding-left: 15px;
  }

  .page-tai-xiu__strategy-list li h3 {
    font-size: 20px;
  }

  /* Why Choose Us Section Mobile */
  .page-tai-xiu__why-choose-us-section {
    padding: 40px 0;
  }

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

  .page-tai-xiu__feature-card {
    padding: 25px;
  }

  .page-tai-xiu__feature-card h3 {
    font-size: 20px;
  }

  /* FAQ Section Mobile */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 16px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }
}