.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B; /* Glow */
  padding-top: 40px;
}

.page-tai-xiu__content-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary Color */
}

.page-tai-xiu__text-link {
  color: #FFD36B; /* Glow */
  text-decoration: underline;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Fixed header spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  color: #FFF6D6;
  text-align: center;
}

.page-tai-xiu__hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-tai-xiu__hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.page-tai-xiu__hero-slide {
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.page-tai-xiu__hero-slide.is-active {
  opacity: 1;
  position: relative;
}

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

.page-tai-xiu__hero-slider-prev,
.page-tai-xiu__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF6D6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 3;
}

.page-tai-xiu__hero-slider-prev {
  left: 10px;
}

.page-tai-xiu__hero-slider-next {
  right: 10px;
}

.page-tai-xiu__hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.page-tai-xiu__hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.page-tai-xiu__hero-dot.is-active {
  background-color: #F2C14E;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay for text readability */
  border-radius: 10px;
  margin-top: 50px;
}

.page-tai-xiu__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-tai-xiu__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background: #F2C14E; /* Primary Color */
  color: #111111; /* Dark text for bright button */
}

/* Guide Box Section */
.page-tai-xiu__guide-box {
  padding: 40px 20px 50px;
  background-color: #111111; /* Card BG */
  border-radius: 0;
  text-align: center;
  margin-top: 40px;
}

.page-tai-xiu__guide-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tai-xiu__guide-card {
  flex: 0 0 calc(20% - 12px);
  max-width: calc(20% - 12px);
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease;
  display: block;
  overflow: hidden;
}

.page-tai-xiu__guide-card:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__guide-card--pos-1,
.page-tai-xiu__guide-card--pos-5 {
  padding-top: 50px;
}

.page-tai-xiu__guide-card--pos-2,
.page-tai-xiu__guide-card--pos-4 {
  padding-top: 25px;
}

.page-tai-xiu__guide-card--pos-3 {
  padding-top: 0;
}

/* Home Content Box Section (Long Text) */
.page-tai-xiu__home-content-box {
  max-width: 90%;
  margin: 60px auto;
  padding: 20px;
  border: 2px solid #F2C14E; /* Primary Color */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5);
  height: 700px;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-tai-xiu__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
}

.page-tai-xiu__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-tai-xiu__home-content-inner::-webkit-scrollbar-track {
  background: #3A2A12; /* Border */
  border-radius: 10px;
}

.page-tai-xiu__home-content-inner::-webkit-scrollbar-thumb {
  background: #F2C14E; /* Primary Color */
  border-radius: 10px;
}

.page-tai-xiu__content-grid {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.page-tai-xiu__content-grid .page-tai-xiu__text-block,
.page-tai-xiu__content-grid .page-tai-xiu__image-block {
  flex: 1;
}

.page-tai-xiu__image-figure {
  margin: 20px 0;
  text-align: center;
}

.page-tai-xiu__image-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-tai-xiu__image-figure figcaption {
  font-style: italic;
  margin-top: 10px;
  color: #FFD36B;
}

.page-tai-xiu__content-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__content-list li {
  margin-bottom: 10px;
}

.page-tai-xiu__step-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__step-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Why NO789 Section */
.page-tai-xiu__why-no789-section {
  padding: 60px 20px;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-tai-xiu__why-no789-section .page-tai-xiu__content-grid {
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-tai-xiu__feature-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-tai-xiu__feature-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 30px;
  color: #FFF6D6;
}

.page-tai-xiu__feature-list li::before {
  content: '✔';
  color: #F2C14E; /* Primary Color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
  padding: 60px 20px;
  background-color: #111111; /* Card BG */
  text-align: center;
}

.page-tai-xiu__how-to-play-section .page-tai-xiu__content-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Promo Section */
.page-tai-xiu__promo-section {
  padding: 60px 20px;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-tai-xiu__promo-text {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #FFF6D6;
}

/* Security Section */
.page-tai-xiu__security-section {
  padding: 60px 20px;
  background-color: #111111; /* Card BG */
  text-align: center;
}

.page-tai-xiu__security-section .page-tai-xiu__content-grid {
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row-reverse; /* Image on left, text on right */
}

/* Mobile Section */
.page-tai-xiu__mobile-section {
  padding: 60px 20px;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-tai-xiu__mobile-text {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #FFF6D6;
}

/* Support Section */
.page-tai-xiu__support-section {
  padding: 60px 20px;
  background-color: #111111; /* Card BG */
  text-align: center;
}

.page-tai-xiu__support-text {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #FFF6D6;
}

/* Blog Section */
.page-tai-xiu__blog-section {
  padding: 60px 20px;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-tai-xiu__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-tai-xiu__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF6D6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-tai-xiu__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-tai-xiu__blog-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary Color */
}

.page-tai-xiu__blog-card-meta {
  font-size: 0.9rem;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-tai-xiu__blog-card-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
}

.page-tai-xiu__view-all-button-container {
  margin-top: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__section-title {
    font-size: 2rem;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .page-tai-xiu__guide-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }

  .page-tai-xiu__home-content-box {
    max-width: 95%;
  }

  .page-tai-xiu__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
  }

  .page-tai-xiu__content-grid .page-tai-xiu__text-block,
  .page-tai-xiu__content-grid .page-tai-xiu__image-block {
    flex: none;
    width: 100%;
  }

  .page-tai-xiu__why-no789-section .page-tai-xiu__content-grid,
  .page-tai-xiu__security-section .page-tai-xiu__content-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    min-height: 500px;
    padding-top: 10px !important;
  }

  .page-tai-xiu__hero-content {
    padding: 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-tai-xiu__hero-description {
    font-size: 1rem;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Guide Box Mobile */
  .page-tai-xiu__guide-box {
    padding: 30px 15px;
  }

  .page-tai-xiu__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-tai-xiu__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset padding-top for mobile */
  }

  .page-tai-xiu__guide-card--pos-1,
  .page-tai-xiu__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-tai-xiu__guide-card--pos-3,
  .page-tai-xiu__guide-card--pos-4,
  .page-tai-xiu__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Home Content Box Mobile */
  .page-tai-xiu__home-content-box {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .page-tai-xiu__home-content-inner {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .page-tai-xiu__home-content-inner::-webkit-scrollbar {
    width: 0;
  }

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

  .page-tai-xiu__content-subtitle {
    font-size: 1.5rem;
  }

  .page-tai-xiu__content-grid {
    gap: 20px;
  }

  /* Blog Grid Mobile */
  .page-tai-xiu__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-tai-xiu__blog-card img {
    
  }

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

  .page-tai-xiu__blog-card-excerpt {
    font-size: 0.95rem;
  }

  /* Universal Image and Container Mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__content-grid,
  .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;
  }
}