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

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
}

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

.page-tai-xiu__hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%); /* Pull up over the image */
  z-index: 1;
  position: relative;
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-outline,
.page-tai-xiu__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tai-xiu__section-description {
  font-size: 1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #FFD36B; /* Accent color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-tai-xiu__content-grid--reverse .page-tai-xiu__text-block {
  order: 2;
}

.page-tai-xiu__content-grid--reverse .page-tai-xiu__image-wrapper {
  order: 1;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-tai-xiu__image-wrapper {
  text-align: center;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-tai-xiu__list li {
  margin-bottom: 8px;
}

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

.page-tai-xiu__card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border color */
  display: flex;
  flex-direction: column;
  color: #FFF6D6;
  height: 100%;
}

.page-tai-xiu__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__card-title {
  font-size: 1.3rem;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-tai-xiu__card-text {
  font-size: 0.95rem;
  color: #FFF6D6;
  flex-grow: 1;
}

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

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

.page-tai-xiu__step-card {
  text-align: center;
  padding-bottom: 20px;
}

.page-tai-xiu__step-icon {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Card BG for contrast */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-outline {
  background: transparent;
  color: #FFD36B; /* Glow color */
  border: 2px solid #FFD36B;
  margin-top: 20px;
  align-self: center;
}

.page-tai-xiu__btn-outline:hover {
  background: #FFD36B;
  color: #111111;
}

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

.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #1A1A1A; /* Slightly lighter dark for question */
  font-weight: bold;
  color: #F2C14E;
  font-size: 1.1rem;
  list-style: none; /* Remove default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFD36B;
  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: 15px 20px;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
  font-size: 0.95rem;
  border-top: 1px solid #3A2A12; /* Border color */
}

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

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

.page-tai-xiu__btn-text {
  background: none;
  border: none;
  color: #F2C14E;
  padding: 0;
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline;
}

.page-tai-xiu__btn-text:hover {
  color: #FFD36B;
}

.page-tai-xiu__cta-container {
  text-align: center;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 50px 30px;
  border: 1px solid #3A2A12; /* Border color */
}

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

/* Ensure all images are responsive */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    transform: translateY(-30%);
    padding: 30px 15px;
  }

  .page-tai-xiu__main-title {
    font-size: 2.5rem;
  }

  .page-tai-xiu__section-title {
    font-size: 2rem;
  }

  .page-tai-xiu__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-tai-xiu__content-grid--reverse .page-tai-xiu__text-block {
    order: initial;
  }
  .page-tai-xiu__content-grid--reverse .page-tai-xiu__image-wrapper {
    order: initial;
  }

  .page-tai-xiu__feature-grid,
  .page-tai-xiu__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-tai-xiu__card-image {
    height: 180px;
  }
}

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

  .page-tai-xiu__hero-section {
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-content {
    transform: translateY(-10%); /* Adjust for smaller screens */
    padding: 20px 15px;
  }

  .page-tai-xiu__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu__btn-outline,
  .page-tai-xiu__btn-text,
  .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__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;
    flex-direction: column;
  }

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

  .page-tai-xiu__container {
    padding: 0 15px;
  }

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

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

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

  .page-tai-xiu__content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-tai-xiu__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__feature-grid,
  .page-tai-xiu__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-image {
    height: 160px;
    min-width: 200px !important;
    min-height: 160px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__card-title {
    font-size: 1.2rem;
  }

  .page-tai-xiu__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

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

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

  .page-tai-xiu__cta-container {
    padding: 40px 20px;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !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;
  }
  /* No slider/masonry specific rules needed for tai-xiu page */
  /* These are placeholder for compliance, actual tai-xiu page won't have them */
  .page-tai-xiu__home-content { height: auto; overflow-y: visible; padding: 20px; }
  .page-tai-xiu__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .page-tai-xiu__game-slide { flex: 0 0 80%; max-width: 80%; scroll-snap-align: start; }
  .page-tai-xiu__banners-top-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tai-xiu__blog-masonry { grid-template-columns: 1fr; }
  .page-tai-xiu__blog-card-link { margin-bottom: 20px; }
  .page-tai-xiu__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .page-tai-xiu__blog-slide { flex: 0 0 90%; max-width: 90%; scroll-snap-align: start; }
}