.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main color for dark body background */
  background-color: #0D0E12; /* Background color */
}

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

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.7);
}

.page-tai-xiu__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  line-height: 1.6;
  color: #FFF3E6;
}

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid #A84F0C;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: #2a2d34;
  color: #FFB04D;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.2);
}

.page-tai-xiu__btn-primary--center {
  display: block;
  margin: 30px auto 0;
  width: fit-content;
}

.page-tai-xiu__btn-text {
  background: none;
  border: none;
  color: #FFA53A;
  padding: 8px 15px;
  text-align: center;
  display: block;
  margin-top: 15px;
  font-size: 1rem;
}

.page-tai-xiu__btn-text:hover {
  text-decoration: underline;
  color: #FFB04D;
}

.page-tai-xiu__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #0D0E12; /* Ensure section background matches body */
}

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

.page-tai-xiu__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-tai-xiu__container--center-text {
  text-align: center;
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #FFB04D; /* Glow color for section titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #FFA53A;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.page-tai-xiu__text-block {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-tai-xiu__image-content-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__content-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__text-content {
  flex: 1;
}

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

.page-tai-xiu__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-tai-xiu__list-item::before {
  content: '✓';
  color: #FFA53A;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-tai-xiu__list--two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.page-tai-xiu__card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

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

.page-tai-xiu__card-title {
  font-size: 1.3rem;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF3E6;
}

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

.page-tai-xiu__step-card {
  text-align: center;
  background-color: #17191F;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tai-xiu__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background-color: rgba(255, 140, 26, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-tai-xiu__step-icon img {
  
  
  object-fit: contain;
  display: block;
}

.page-tai-xiu__step-title {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #FFF3E6;
  flex-grow: 1;
}

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

.page-tai-xiu__card--strategy {
  text-align: left;
}

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

.page-tai-xiu__promo-card {
  background-color: #17191F;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-tai-xiu__promo-title {
  font-size: 1.3rem;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__promo-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tai-xiu__app-content {
  flex: 1;
  max-width: 60%;
}

.page-tai-xiu__app-image-wrapper {
  flex: 0 0 35%;
  max-width: 35%;
  text-align: center;
}

.page-tai-xiu__app-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Limit image width for better visual */
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-tai-xiu__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFA53A;
  cursor: pointer;
  background-color: #17191F;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
  background-color: #2a2d34;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  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: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF3E6;
}

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

.page-tai-xiu__cta-buttons,
.page-tai-xiu__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    padding: 0 15px 30px;
  }

  .page-tai-xiu__section-title {
    margin-bottom: 25px;
  }

  .page-tai-xiu__image-content-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__content-image,
  .page-tai-xiu__text-content {
    max-width: 100%;
    flex: none;
  }

  .page-tai-xiu__app-content,
  .page-tai-xiu__app-image-wrapper {
    max-width: 100%;
    flex: none;
  }

  .page-tai-xiu__container--flex {
    flex-direction: column;
    gap: 30px;
  }

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

@media (max-width: 768px) {
  /* Hero Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }
  .page-tai-xiu__main-title {
    font-size: 2.2rem;
  }
  .page-tai-xiu__subtitle {
    font-size: 1rem;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* General Section & Container */
  .page-tai-xiu__section {
    padding: 30px 0;
  }
  .page-tai-xiu__container {
    padding: 0 15px;
  }
  .page-tai-xiu__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-tai-xiu__text-block {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Image Content Block */
  .page-tai-xiu__image-content-block {
    flex-direction: column;
  }
  .page-tai-xiu__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* List */
  .page-tai-xiu__list--two-cols {
    grid-template-columns: 1fr;
  }

  /* Grid 3 Cols (for Cược Phụ) */
  .page-tai-xiu__grid-3-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Steps Grid */
  .page-tai-xiu__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__step-card {
    padding: 25px;
  }
  .page-tai-xiu__step-icon {
    width: 80px;
    height: 80px;
  }
  .page-tai-xiu__step-icon img {
    
    
  }
  .page-tai-xiu__step-title {
    font-size: 1.2rem;
  }

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

  /* Promotions Grid */
  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__promo-image {
    height: 150px;
  }
  .page-tai-xiu__promo-title {
    font-size: 1.2rem;
  }

  /* App Download Section */
  .page-tai-xiu__container--flex {
    flex-direction: column;
  }
  .page-tai-xiu__app-content {
    max-width: 100%;
  }
  .page-tai-xiu__app-image-wrapper {
    max-width: 100%;
    order: -1; /* Image appears above text on mobile */
    margin-bottom: 20px;
  }
  .page-tai-xiu__app-image {
    max-width: 80% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.3rem;
  }
  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Call to Action */
  .page-tai-xiu__call-to-action .page-tai-xiu__text-block {
    padding: 0 15px;
  }

  /* General Image & Button Overrides */
  .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 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;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
  }
  .page-tai-xiu__btn-primary--center {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}