/* CSS cho trang Tài Xỉu */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main, #F2FFF6); /* Default to light text as body background is dark */
  background-color: var(--color-background, #08160F);
}

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

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-tai-xiu__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  z-index: 10;
  padding: 30px 20px;
  background: var(--color-card-bg, #11271B);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Overlap slightly for visual connection */
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-tai-xiu__hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--color-text-main, #F2FFF6);
  border: 2px solid var(--color-border, #2E7A4E);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--color-deep-green, #0A4B2C);
  color: #ffffff;
  border-color: var(--color-glow, #57E38D);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  color: var(--color-gold, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  font-weight: bold;
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  color: var(--color-text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__text-block {
  font-size: 1.05rem;
  color: var(--color-text-secondary, #A7D9B8);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-tai-xiu__text-link {
  color: var(--color-glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
}

.page-tai-xiu__text-link:hover {
  text-decoration: underline;
}

.page-tai-xiu__dark-section {
  background-color: var(--color-background, #08160F);
  color: var(--color-text-main, #F2FFF6);
  padding: 60px 0;
}

.page-tai-xiu__light-bg {
  background-color: #11271B; /* Card BG color for light sections */
  color: var(--color-text-main, #F2FFF6);
  padding: 60px 0;
}

.page-tai-xiu__introduction-section .page-tai-xiu__section-title,
.page-tai-xiu__strategy-section .page-tai-xiu__section-title,
.page-tai-xiu__guide-section .page-tai-xiu__section-title,
.page-tai-xiu__cta-section .page-tai-xiu__cta-title {
  color: var(--color-gold, #F2C14E);
}

.page-tai-xiu__rules-section .page-tai-xiu__section-title,
.page-tai-xiu__promotions-section .page-tai-xiu__section-title,
.page-tai-xiu__faq-section .page-tai-xiu__section-title {
  color: var(--color-gold, #F2C14E);
}

.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  background-color: var(--color-deep-green, #0A4B2C);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  color: var(--color-text-main, #F2FFF6);
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--color-glow, #57E38D);
}

.page-tai-xiu__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-tai-xiu__ordered-list .page-tai-xiu__list-item {
  background-color: transparent;
  border-left: none;
  box-shadow: none;
  margin-bottom: 5px;
  padding: 5px 0;
  color: var(--color-text-secondary, #A7D9B8);
}

.page-tai-xiu__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: var(--color-card-bg, #11271B);
  border: 1px solid var(--color-border, #2E7A4E);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--color-text-main, #F2FFF6);
  background-color: var(--color-deep-green, #0A4B2C);
  list-style: none; /* For <details> default marker */
}

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

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  color: var(--color-glow, #57E38D);
  margin-left: 15px;
  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: 20px 25px;
  background-color: var(--color-card-bg, #11271B);
  color: var(--color-text-secondary, #A7D9B8);
  font-size: 1rem;
  border-top: 1px solid var(--color-divider, #1E3A2A);
}

.page-tai-xiu__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-deep-green, #0A4B2C);
  border-top: 3px solid var(--color-gold, #F2C14E);
  border-bottom: 3px solid var(--color-gold, #F2C14E);
  margin-top: 60px;
}

.page-tai-xiu__cta-content {
  max-width: 900px;
}

.page-tai-xiu__cta-title {
  font-size: 3rem;
  color: var(--color-gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tai-xiu__cta-description {
  font-size: 1.2rem;
  color: var(--color-text-main, #F2FFF6);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-image-container {
    max-height: 300px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -50px;
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__hero-buttons,
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .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: 12px 20px;
    font-size: 1rem;
  }

  .page-tai-xiu__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-top: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__ordered-list .page-tai-xiu__list-item {
    font-size: 0.95rem;
  }

  .page-tai-xiu__dark-section,
  .page-tai-xiu__light-bg {
    padding: 40px 0;
  }

  .page-tai-xiu__image-wrapper {
    margin: 30px auto;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-tai-xiu__cta-section {
    padding: 50px 0;
    margin-top: 40px;
  }

  .page-tai-xiu__cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  /* Long văn bản khu vực (không có trong trang này, nhưng bao gồm để tuân thủ) */
  .page-tai-xiu__home-content { /* Placeholder for compliance */
    height: auto;
    overflow-y: visible;
    padding: 20px 15px;
  }

  /* Trình chiếu trò chơi (không có trong trang này, nhưng bao gồm để tuân thủ) */
  .page-tai-xiu__slider-track { /* Placeholder for compliance */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-tai-xiu__game-slide { /* Placeholder for compliance */
    flex: 0 0 160px;
    max-width: 160px;
  }

  /* Lưới biểu ngữ (không có trong trang này, nhưng bao gồm để tuân thủ) */
  .page-tai-xiu__banners-top-wrapper { /* Placeholder for compliance */
    grid-template-columns: repeat(3, 1fr);
  }

  /* Khu vực thẻ blog (không có trong trang này, nhưng bao gồm để tuân thủ) */
  .page-tai-xiu__blog-masonry { /* Placeholder for compliance */
    grid-template-columns: 1fr;
  }
  .page-tai-xiu__blog-slider-track { /* Placeholder for compliance */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-tai-xiu__blog-slide { /* Placeholder for compliance */
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Placeholder for compliance with global CSS requirements for home-content, games, banners, blog */
.page-tai-xiu__home-content { border: 1px solid var(--color-gold, #F2C14E); border-radius: 10px; height: auto; overflow-y: visible; padding: 30px; }
.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { background-color: var(--color-background, #08160F); padding: 40px 20px; max-width: 1330px; margin: 0 auto; }
.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { color: var(--color-text-main, #F2FFF6); text-align: center; }
.page-tai-xiu__slider-wrapper { overflow: hidden; }
.page-tai-xiu__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; }
.page-tai-xiu__game-slide { flex: 0 0 200px; max-width: 200px; }
.page-tai-xiu__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.page-tai-xiu__banner-item img {   object-fit: contain; margin: 0 auto; display: block; }
.page-tai-xiu__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.page-tai-xiu__blog-card-link { display: flex; flex-direction: column; height: 100%; }
.page-tai-xiu__btn-outline { margin-top: auto; }
.page-tai-xiu__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-tai-xiu__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }