.page-resources-best-tai-xiu-app-guide {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Default text color for dark background */
  background: var(--dark-bg-1); /* Inherit body background */
}

.page-resources-best-tai-xiu-app-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-best-tai-xiu-app-guide__container--center {
  text-align: center;
}

/* Fixed header spacing */
.page-resources-best-tai-xiu-app-guide__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A73E8, #0F5BB5);
  color: #ffffff;
}

.page-resources-best-tai-xiu-app-guide__hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-best-tai-xiu-app-guide__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-best-tai-xiu-app-guide__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-resources-best-tai-xiu-app-guide__hero-image-wrapper {
    text-align: center;
}

.page-resources-best-tai-xiu-app-guide__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-resources-best-tai-xiu-app-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Auxiliary color */
  color: #333333;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

.page-resources-best-tai-xiu-app-guide__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources-best-tai-xiu-app-guide__cta-button--download {
    background: #FFD700;
    color: #333333;
}

.page-resources-best-tai-xiu-app-guide__cta-button--download:hover {
    background: #e6c200;
}

.page-resources-best-tai-xiu-app-guide__cta-button--contact {
    background: #1A73E8;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.page-resources-best-tai-xiu-app-guide__cta-button--contact:hover {
    background: #0F5BB5;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.6);
}

.page-resources-best-tai-xiu-app-guide__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-best-tai-xiu-app-guide__section:last-of-type {
  border-bottom: none;
}

.page-resources-best-tai-xiu-app-guide__section--criteria {
  background: var(--dark-bg-2);
}

.page-resources-best-tai-xiu-app-guide__section--gameplay {
  background: var(--dark-bg-1);
}

.page-resources-best-tai-xiu-app-guide__section--promotions {
  background: var(--dark-bg-2);
}

.page-resources-best-tai-xiu-app-guide__section--download {
  background: var(--dark-bg-1);
}

.page-resources-best-tai-xiu-app-guide__section--faq {
  background: var(--dark-bg-2);
}

.page-resources-best-tai-xiu-app-guide__section--contact {
  background: linear-gradient(90deg, #1A73E8, #0F5BB5);
  color: #ffffff;
}

.page-resources-best-tai-xiu-app-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-resources-best-tai-xiu-app-guide__section--contact .page-resources-best-tai-xiu-app-guide__section-title {
    color: #ffffff;
}

.page-resources-best-tai-xiu-app-guide__text-block {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-resources-best-tai-xiu-app-guide__text-block--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-best-tai-xiu-app-guide__highlight {
  color: #FFD700;
  font-weight: bold;
}

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

.page-resources-best-tai-xiu-app-guide__card {
  background: var(--dark-bg-3);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-best-tai-xiu-app-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-best-tai-xiu-app-guide__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources-best-tai-xiu-app-guide__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources-best-tai-xiu-app-guide__card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  color: #c0c0c0;
}

.page-resources-best-tai-xiu-app-guide__content-block {
  background: var(--dark-bg-3);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-best-tai-xiu-app-guide__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-resources-best-tai-xiu-app-guide__sub-title:first-of-type {
  margin-top: 0;
}

.page-resources-best-tai-xiu-app-guide__content-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #c0c0c0;
}

.page-resources-best-tai-xiu-app-guide__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources-best-tai-xiu-app-guide__list li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #c0c0c0;
}

.page-resources-best-tai-xiu-app-guide__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-best-tai-xiu-app-guide__link {
  color: #1A73E8; /* Primary color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-best-tai-xiu-app-guide__link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources-best-tai-xiu-app-guide__app-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.page-resources-best-tai-xiu-app-guide__app-item {
    background: var(--dark-bg-3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-best-tai-xiu-app-guide__app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-best-tai-xiu-app-guide__app-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-best-tai-xiu-app-guide__app-info {
    flex-grow: 1;
}

.page-resources-best-tai-xiu-app-guide__app-name {
    font-size: 26px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-resources-best-tai-xiu-app-guide__app-description {
    font-size: 16px;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 15px;
}

.page-resources-best-tai-xiu-app-guide__app-cta-button {
    display: inline-block;
    padding: 10px 25px;
    background: #1A73E8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-resources-best-tai-xiu-app-guide__app-cta-button:hover {
    background: #0F5BB5;
    transform: translateY(-1px);
}

.page-resources-best-tai-xiu-app-guide__grid--promo {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-resources-best-tai-xiu-app-guide__promo-card {
    background: var(--dark-bg-3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-best-tai-xiu-app-guide__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-best-tai-xiu-app-guide__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-resources-best-tai-xiu-app-guide__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-best-tai-xiu-app-guide__promo-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.page-resources-best-tai-xiu-app-guide__promo-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1A73E8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-resources-best-tai-xiu-app-guide__promo-button:hover {
    background: #0F5BB5;
    transform: translateY(-1px);
}

/* FAQ Styles */
.page-resources-best-tai-xiu-app-guide__faq-list {
  margin-top: 40px;
}

.page-resources-best-tai-xiu-app-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-best-tai-xiu-app-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources-best-tai-xiu-app-guide__faq-item.active .page-resources-best-tai-xiu-app-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 30px !important; /* Adjusted padding for better fit */
  opacity: 1;
  background: var(--dark-bg-3);
  border-radius: 0 0 5px 5px;
  color: #c0c0c0;
}

.page-resources-best-tai-xiu-app-guide__faq-item.active .page-resources-best-tai-xiu-app-guide__faq-answer p {
    color: #c0c0c0;
}

.page-resources-best-tai-xiu-app-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--dark-bg-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-best-tai-xiu-app-guide__faq-question:hover {
  background: var(--dark-bg-2);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources-best-tai-xiu-app-guide__faq-question:active {
  background: var(--dark-bg-1);
}

.page-resources-best-tai-xiu-app-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #e0e0e0;
}

.page-resources-best-tai-xiu-app-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-best-tai-xiu-app-guide__faq-item.active .page-resources-best-tai-xiu-app-guide__faq-toggle {
  color: #1A73E8;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-best-tai-xiu-app-guide__main-title {
    font-size: 38px;
  }

  .page-resources-best-tai-xiu-app-guide__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-resources-best-tai-xiu-app-guide__container {
    padding: 0 15px;
  }

  .page-resources-best-tai-xiu-app-guide__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-resources-best-tai-xiu-app-guide__main-title {
    font-size: 32px;
  }

  .page-resources-best-tai-xiu-app-guide__hero-description {
    font-size: 16px;
  }

  .page-resources-best-tai-xiu-app-guide__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-resources-best-tai-xiu-app-guide__section {
    padding: 40px 0;
  }

  .page-resources-best-tai-xiu-app-guide__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-best-tai-xiu-app-guide__text-block {
    font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-best-tai-xiu-app-guide__card {
    padding: 25px;
  }

  .page-resources-best-tai-xiu-app-guide__card-title {
    font-size: 20px;
  }

  .page-resources-best-tai-xiu-app-guide__card p {
    font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__content-block {
    padding: 30px;
  }

  .page-resources-best-tai-xiu-app-guide__sub-title {
    font-size: 24px;
  }

  .page-resources-best-tai-xiu-app-guide__content-block p,
  .page-resources-best-tai-xiu-app-guide__list li {
    font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__app-item {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__app-icon {
      width: 80px;
      height: 80px;
  }

  .page-resources-best-tai-xiu-app-guide__app-name {
      font-size: 22px;
  }

  .page-resources-best-tai-xiu-app-guide__app-description {
      font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__app-cta-button {
      padding: 8px 20px;
      font-size: 14px;
  }

  .page-resources-best-tai-xiu-app-guide__promo-card {
    padding: 25px;
  }

  .page-resources-best-tai-xiu-app-guide__promo-title {
    font-size: 20px;
  }

  .page-resources-best-tai-xiu-app-guide__promo-card p {
    font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__promo-button {
    padding: 10px 25px;
    font-size: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-best-tai-xiu-app-guide__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-best-tai-xiu-app-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-best-tai-xiu-app-guide__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-best-tai-xiu-app-guide__faq-item.active .page-resources-best-tai-xiu-app-guide__faq-answer {
    padding: 15px !important;
  }

  /* Force responsive images and containers */
  .page-resources-best-tai-xiu-app-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-best-tai-xiu-app-guide__section,
  .page-resources-best-tai-xiu-app-guide__card,
  .page-resources-best-tai-xiu-app-guide__container,
  .page-resources-best-tai-xiu-app-guide__app-item,
  .page-resources-best-tai-xiu-app-guide__promo-card,
  .page-resources-best-tai-xiu-app-guide__content-block,
  .page-resources-best-tai-xiu-app-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-best-tai-xiu-app-guide__hero-banner .page-resources-best-tai-xiu-app-guide__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources-best-tai-xiu-app-guide__hero-content {
      padding: 0 15px;
  }

  .page-resources-best-tai-xiu-app-guide__hero-image-wrapper {
      padding: 0 15px;
  }

  .page-resources-best-tai-xiu-app-guide__section--contact .page-resources-best-tai-xiu-app-guide__container {
      padding-left: 15px;
      padding-right: 15px;
  }

}