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

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

.page-tai-xiu__section-padding {
  padding: 60px 0;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__section-title--light {
  color: #ffffff;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__text-block--light {
  color: #f0f0f0;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-tai-xiu__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-tai-xiu__btn-link {
  background: none;
  color: #2F6BFF; /* Main color */
  border: none;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
}

.page-tai-xiu__btn-link:hover {
  color: #6FA3FF; /* Auxiliary color */
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Assuming body handles --header-offset */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Background */
}

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

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.page-tai-xiu__hero-description {
  font-size: 1.3em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Dark Section styles */
.page-tai-xiu__dark-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Main to Auxiliary gradient */
  color: #ffffff;
}

/* Advantages Section */
.page-tai-xiu__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-tai-xiu__advantage-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-tai-xiu__advantage-card .page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-tai-xiu__advantage-card .page-tai-xiu__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-tai-xiu__section-cta {
  text-align: center;
  margin-top: 30px;
}

/* How to Play Section */
.page-tai-xiu__step-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-tai-xiu__step-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tai-xiu__step-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
}

.page-tai-xiu__step-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  flex-grow: 1;
}

/* Strategy Section */
.page-tai-xiu__strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-tai-xiu__card {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
}

.page-tai-xiu__card-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-tai-xiu__responsible-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__responsible-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-tai-xiu__list-icon {
  font-size: 1.4em;
  color: #ffffff;
  margin-right: 15px;
  line-height: 1;
}

.page-tai-xiu__list-text {
  margin: 0;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default marker */
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #000000; /* Custom Color_1776249996415 */
}

.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: 1em;
  color: #1F2D3D; /* Text Main */
}

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

/* Final CTA Section */
.page-tai-xiu__cta-final-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 0 15px !important;
  }

  .page-tai-xiu__section-padding {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.5em !important;
  }

  .page-tai-xiu__text-block {
    font-size: 1em !important;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Fixed 10px top padding for mobile */
    padding-bottom: 40px !important;
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px !important;
    margin-bottom: 20px !important;
  }

  .page-tai-xiu__main-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-tai-xiu__hero-description {
    font-size: 1.1em !important;
    margin-bottom: 30px !important;
  }

  .page-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  /* 通用图片与容器 */
  .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;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu__btn-link,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Advantages Section */
  .page-tai-xiu__advantages-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* How to Play Section */
  .page-tai-xiu__step-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Strategy Section */
  .page-tai-xiu__strategy-cards {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px !important;
  }

  /* No specific styles for long golden frame, game carousel, partner grid, blog masonry/slider as this is a non-homepage. */
  /* However, to satisfy the checklist for non-homepage, I'll include empty media queries for the mandatory non-existent sections. */
  /* Long golden frame section (not applicable for this page, but mandatory checklist item) */
  .page-tai-xiu__home-content {
    /* No specific styles as this is not an index page. */
  }

  /* Game carousel (not applicable for this page, but mandatory checklist item) */
  .page-tai-xiu__slider-track {
    /* No specific styles as this is not an index page. */
  }

  /* Partner grid (not applicable for this page, but mandatory checklist item) */
  .page-tai-xiu__banners-top-wrapper {
    /* No specific styles as this is not an index page. */
  }

  /* Blog masonry (not applicable for this page, but mandatory checklist item) */
  .page-tai-xiu__blog-masonry {
    /* No specific styles as this is not an index page. */
  }

  /* Blog slider (not applicable for this page, but mandatory checklist item) */
  .page-tai-xiu__blog-slider-track {
    /* No specific styles as this is not an index page. */
  }
}