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

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

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-tai-xiu__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

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

.page-tai-xiu__bullet-list,
.page-tai-xiu__numbered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 17px;
}

.page-tai-xiu__numbered-list {
  list-style-type: decimal;
}

.page-tai-xiu__bullet-list li,
.page-tai-xiu__numbered-list li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  position: relative;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not covering the image */
  background: rgba(13, 14, 18, 0.85); /* Background */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #A84F0C; /* Border */
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-tai-xiu__description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-tai-xiu__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Primary color */
  border: 2px solid #A84F0C; /* Border */
}

.page-tai-xiu__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #252833;
  color: #FFA53A;
}

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

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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;
  color: #FFF3E6; /* Text Main */
}
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: #252833;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A; /* Primary color */
  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: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
  font-size: 16px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -80px;
    padding: 30px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-tai-xiu__description {
    font-size: 18px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-tai-xiu__section {
    padding: 40px 0;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    margin-bottom: 30px;
  }
  .page-tai-xiu__text-block,
  .page-tai-xiu__bullet-list li,
  .page-tai-xiu__numbered-list li {
    font-size: 16px;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 17px;
  }
  .page-tai-xiu__faq-answer {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px;
  }
  .page-tai-xiu__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__hero-content {
    margin-top: 20px; /* Adjust for better visibility on mobile, not overlapping too much */
    padding: 25px 15px;
    border-radius: 10px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(28px, 8vw, 38px); /* Mobile H1 font size clamp */
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__section {
    padding: 30px 0;
  }
  .page-tai-xiu__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 20px;
  }
  .page-tai-xiu__text-block,
  .page-tai-xiu__bullet-list li,
  .page-tai-xiu__numbered-list li {
    font-size: 15px;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 15px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }
  .page-tai-xiu__about-tai-xiu .page-tai-xiu__image-wrapper,
  .page-tai-xiu__rules-betting .page-tai-xiu__image-wrapper,
  .page-tai-xiu__strategies .page-tai-xiu__image-wrapper,
  .page-tai-xiu__why-dwin68 .page-tai-xiu__image-wrapper {
    margin: 20px auto;
    padding: 0;
  }
  .page-tai-xiu__cta-center {
    margin-top: 30px;
  }
}