/* style/game-tai-xiu.css */

/* Variables */
:root {
  --primary-color: #0A2463; /* Dark Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-game-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the main page content, assuming dark body background */
  background-color: transparent; /* Main content background will be handled by sections */
}

/* --- HERO Banner Section (for subpages, NOT homepage hero) --- */
.page-game-tai-xiu__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Ensure content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Example background */
  overflow: hidden;
}

.page-game-tai-xiu__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above image if layered */
}

.page-game-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no color filters */
}

.page-game-tai-xiu__hero-content {
  color: var(--text-light);
  width: 100%;
}

.page-game-tai-xiu__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-tai-xiu__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-game-tai-xiu__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-game-tai-xiu__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-game-tai-xiu__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-game-tai-xiu__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-game-tai-xiu__section-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Introduction Section --- */
.page-game-tai-xiu__introduction-section {
  background: var(--bg-light); /* Light background for contrast */
  color: var(--text-dark);
  padding-bottom: 60px;
}

.page-game-tai-xiu__introduction-section .page-game-tai-xiu__container {
  padding-top: 60px; /* Adjust as needed */
}

.page-game-tai-xiu__content-block {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-game-tai-xiu__content-block p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-game-tai-xiu__content-block strong {
  color: var(--primary-color);
}

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

.page-game-tai-xiu__feature-item {
  text-align: center;
  padding: 25px;
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-tai-xiu__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-tai-xiu__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: 200px; /* Minimum size requirement */
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-game-tai-xiu__feature-item h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-tai-xiu__feature-item p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* --- Game Types Section --- */
.page-game-tai-xiu__types-section {
  background: var(--primary-color); /* Dark background */
  color: var(--text-light);
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-game-tai-xiu__types-section .page-game-tai-xiu__section-title {
  color: var(--text-light);
}

.page-game-tai-xiu__types-section .page-game-tai-xiu__section-description {
  color: var(--text-light);
}

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

.page-game-tai-xiu__game-card {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark); /* Dark text on white card */
}

.page-game-tai-xiu__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-game-tai-xiu__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-game-tai-xiu__game-card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 25px 20px 15px;
}

.page-game-tai-xiu__game-card-text {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  min-height: 90px; /* Ensure consistent height */
}

.page-game-tai-xiu__game-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease;
}

.page-game-tai-xiu__game-card-button:hover {
  background: #071942; /* Slightly darker primary */
}

.page-game-tai-xiu__tip-block {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 60px;
}

.page-game-tai-xiu__tip-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-game-tai-xiu__tip-list {
  list-style-type: disc;
  padding-left: 30px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-game-tai-xiu__tip-list li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-game-tai-xiu__tip-list strong {
  color: var(--primary-color);
}

/* --- Promotions Section --- */
.page-game-tai-xiu__promotions-section {
  background: var(--bg-light);
  color: var(--text-dark);
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-game-tai-xiu__promo-card {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-tai-xiu__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.page-game-tai-xiu__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-game-tai-xiu__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-game-tai-xiu__promo-card-text {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  min-height: 80px; /* Consistent height */
}

.page-game-tai-xiu__promo-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease;
}

.page-game-tai-xiu__promo-card-button:hover {
  background: #e6c200;
}

.page-game-tai-xiu__promo-cta {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-game-tai-xiu__promo-cta p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-game-tai-xiu__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  margin-left: 20px;
}

.page-game-tai-xiu__cta-button--secondary:hover {
  background: #071942;
}

/* --- FAQ Section --- */
.page-game-tai-xiu__faq-section {
  background: var(--primary-color); /* Dark background */
  color: var(--text-light);
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-game-tai-xiu__faq-section .page-game-tai-xiu__section-title {
  color: var(--text-light);
}

.page-game-tai-xiu__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-game-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-game-tai-xiu__faq-item.active .page-game-tai-xiu__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-white);
  color: var(--text-dark); /* Dark text on white background */
  border-radius: 0 0 5px 5px;
}

.page-game-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-white);
  color: var(--primary-color); /* Primary color for question text */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-game-tai-xiu__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
  color: var(--primary-color);
}

.page-game-tai-xiu__faq-question:active {
  background: #eeeeee;
}

.page-game-tai-xiu__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allows click on parent */
  color: inherit; /* Inherit color from parent (.faq-question) */
}

.page-game-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Toggle icon color */
  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-game-tai-xiu__faq-item.active .page-game-tai-xiu__faq-toggle {
  color: var(--primary-color); /* Keep primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* --- Blog Section --- */
.page-game-tai-xiu__blog-section {
  background: var(--bg-light);
  color: var(--text-dark);
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-game-tai-xiu__blog-card {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-tai-xiu__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.page-game-tai-xiu__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-game-tai-xiu__blog-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-game-tai-xiu__blog-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-tai-xiu__blog-card-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-game-tai-xiu__blog-card-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  min-height: 70px; /* Consistent height */
}

.page-game-tai-xiu__blog-card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.page-game-tai-xiu__blog-card-link:hover {
  background: #071942;
}

.page-game-tai-xiu__view-all-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-game-tai-xiu__main-title {
    font-size: 38px;
  }
  .page-game-tai-xiu__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-game-tai-xiu__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

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

  .page-game-tai-xiu__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-game-tai-xiu__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-game-tai-xiu__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

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

  .page-game-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  .page-game-tai-xiu__content-block {
    padding: 25px;
  }

  .page-game-tai-xiu__content-block p {
    font-size: 15px;
  }

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

  .page-game-tai-xiu__feature-icon {
    width: 200px !important; /* Enforce minimum size on mobile too */
    height: 200px !important;
  }

  .page-game-tai-xiu__feature-item h3 {
    font-size: 18px;
  }

  .page-game-tai-xiu__game-type-cards,
  .page-game-tai-xiu__promo-cards,
  .page-game-tai-xiu__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-tai-xiu__game-card-title,
  .page-game-tai-xiu__promo-card-title,
  .page-game-tai-xiu__blog-card-title {
    font-size: 20px;
  }

  .page-game-tai-xiu__game-card-text,
  .page-game-tai-xiu__promo-card-text,
  .page-game-tai-xiu__blog-card-excerpt {
    font-size: 14px;
  }

  .page-game-tai-xiu__tip-block {
    padding: 25px;
  }

  .page-game-tai-xiu__tip-title {
    font-size: 24px;
  }

  .page-game-tai-xiu__tip-list {
    font-size: 15px;
    padding-left: 20px;
  }

  .page-game-tai-xiu__promo-cta {
    padding: 20px;
  }

  .page-game-tai-xiu__promo-cta p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-game-tai-xiu__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

  /* Global image responsive styles */
  .page-game-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-tai-xiu__section,
  .page-game-tai-xiu__card,
  .page-game-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no color filters on images */
.page-game-tai-xiu img {
  filter: none;
}