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

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

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-tai-xiu__section-title--white {
  color: #FFFFFF;
}

.page-tai-xiu__section-description {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__section-description--white {
  color: #f0f0f0;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-secondary {
  background-color: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #F0F5FF;
  color: #2458CC;
  border-color: #2458CC;
}

.page-tai-xiu__btn-small {
  padding: 8px 18px;
  font-size: 16px;
  border-radius: 6px;
}

.page-tai-xiu__btn-large {
  padding: 15px 30px;
  font-size: 20px;
  border-radius: 10px;
}

.page-tai-xiu__inline-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-tai-xiu__inline-link:hover {
  text-decoration: underline;
}

.page-tai-xiu__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #D6E2FF; /* Border */
}

.page-tai-xiu__keyword {
  color: #2F6BFF;
  font-weight: 600;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  margin-bottom: 50px;
  background-color: #F4F7FB;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  height: 550px; /* Adjust height as needed */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
  display: block;
}

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

.page-tai-xiu__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__subtitle {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-tai-xiu__about-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

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

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

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

.page-tai-xiu__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-tai-xiu__btn-inline {
  margin-top: 20px;
}

/* How To Play Section */
.page-tai-xiu__how-to-play-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary */
  color: #FFFFFF;
}

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

.page-tai-xiu__step-card {
  padding: 25px;
  text-align: center;
  align-items: center;
}

.page-tai-xiu__step-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__step-card p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.page-tai-xiu__image-full-width {
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

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

.page-tai-xiu__tip-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-tai-xiu__tip-card p {
  font-size: 16px;
  color: #333333;
}

/* Why Choose GA179 Section */
.page-tai-xiu__why-choose-ga179-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary */
  color: #FFFFFF;
}

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

.page-tai-xiu__feature-card {
  text-align: center;
  align-items: center;
  padding: 30px;
}

.page-tai-xiu__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-tai-xiu__feature-card p {
  font-size: 16px;
  color: #333333;
}

/* Promotions Section */
.page-tai-xiu__promotions-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

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

.page-tai-xiu__promo-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 12px;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 20px;
}

.page-tai-xiu__promo-card h3,
.page-tai-xiu__promo-card p,
.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  padding: 0 25px;
}

.page-tai-xiu__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-tai-xiu__promo-card p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  margin-top: auto;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary */
  color: #FFFFFF;
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #F0F5FF;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-tai-xiu__cta-bottom-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__container {
    padding: 0 25px;
  }

  .page-tai-xiu__hero-image-wrapper {
    height: 450px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .page-tai-xiu__subtitle {
    font-size: 18px;
  }

  .page-tai-xiu__section-title {
    font-size: 32px;
  }

  .page-tai-xiu__section-description {
    font-size: 16px;
  }

  .page-tai-xiu__content-grid,
  .page-tai-xiu__steps-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__promos-grid {
    gap: 25px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-tai-xiu__btn-large {
    padding: 12px 25px;
    font-size: 18px;
  }

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

@media (max-width: 849px) {
  .page-tai-xiu__hero-image-wrapper {
    height: auto;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    border-radius: 0;
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-tai-xiu__main-title {
    font-size: clamp(28px, 6vw, 38px);
  }

  .page-tai-xiu__subtitle {
    font-size: 17px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-tai-xiu__image-block {
    order: -1; /* Image appears above text on mobile */
    margin-bottom: 30px;
  }

  .page-tai-xiu__image-responsive {
    width: 100%;
  }

  .page-tai-xiu__steps-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__promos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
  }

  .page-tai-xiu__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }

  .page-tai-xiu__hero-image-wrapper {
    height: auto;
    aspect-ratio: unset !important; /* Important for mobile */
    border-radius: 0;
  }

  .page-tai-xiu__hero-image {
    object-fit: contain !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 10px;
  }

  .page-tai-xiu__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

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

  .page-tai-xiu__btn-large {
    padding: 14px 20px !important;
    font-size: 18px !important;
  }

  .page-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .page-tai-xiu__section-description {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .page-tai-xiu__about-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__why-choose-ga179-section,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-bottom-section {
    padding: 40px 0;
  }

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

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

  .page-tai-xiu__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__steps-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__promos-grid {
    gap: 20px;
  }

  .page-tai-xiu__step-card,
  .page-tai-xiu__tip-card,
  .page-tai-xiu__feature-card,
  .page-tai-xiu__promo-card {
    padding: 20px;
  }

  .page-tai-xiu__step-card h3,
  .page-tai-xiu__tip-card h3,
  .page-tai-xiu__feature-title,
  .page-tai-xiu__promo-title {
    font-size: 20px;
  }

  .page-tai-xiu__promo-image {
    height: 160px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__promo-card h3,
  .page-tai-xiu__promo-card p,
  .page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
    padding: 0 20px;
  }

  .page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
    margin-bottom: 20px;
  }

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 16px; }
  .page-tai-xiu__faq-toggle { font-size: 20px; width: 24px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }

  .page-tai-xiu__cta-bottom-content {
    padding: 0 15px;
  }
}