/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background: var(--color-background, #f5f5f5);
}

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

.page-tai-xiu__section {
  padding: 40px 0;
}

.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 15px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  color: #ffffff;
  border-radius: 8px;
  transform: translateY(-50%); /* Pull up over image */
  margin-bottom: -50px; /* Adjust for translateY */
}

.page-tai-xiu__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #333333;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  color: #C91F17; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-tai-xiu__section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

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

.page-tai-xiu__card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-tai-xiu__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like for titles */
}

.page-tai-xiu__card p {
  font-size: 1em;
  text-align: center;
  margin-bottom: 0;
}

.page-tai-xiu__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

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

.page-tai-xiu__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid #E6B800;
}

.page-tai-xiu__step-icon {
  font-size: 2.5em;
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 15px;
}

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

.page-tai-xiu__step-item p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 0;
  text-align: center;
}

.page-tai-xiu__step-item a {
  color: #C91F17;
  text-decoration: underline;
}

.page-tai-xiu__step-item a:hover {
  color: #E53935;
}

.page-tai-xiu__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-tai-xiu__bet-type-card {
  background: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 5px solid #E53935;
}

.page-tai-xiu__bet-type-card .page-tai-xiu__card-title {
  color: #C91F17;
}

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

.page-tai-xiu__strategy-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__strategy-list li {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #F4D34D;
}

.page-tai-xiu__strategy-list li:last-child {
  margin-bottom: 0;
}

.page-tai-xiu__list-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #C91F17;
  margin-bottom: 10px;
}

.page-tai-xiu__strategy-list p {
  text-align: left;
  font-size: 1em;
  margin-bottom: 0;
}

.page-tai-xiu__dark-section {
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
  color: #FFD86A; /* Gold for titles on dark background */
}

.page-tai-xiu__dark-section p {
  color: #f0f0f0;
}

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

.page-tai-xiu__advantage-card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-bottom: 5px solid #FFCC66; /* Glow */
}

.page-tai-xiu__advantage-card .page-tai-xiu__card-title {
  color: #FFD86A; /* Gold */
}

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

.page-tai-xiu__promo-item {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tai-xiu__promo-item .page-tai-xiu__btn-primary {
  margin-top: 20px;
  width: 100%;
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-tai-xiu__conclusion-section .page-tai-xiu__section-title {
  color: #C91F17;
}

.page-tai-xiu__conclusion-section p {
  font-size: 1.1em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: 2.8em;
  }
  .page-tai-xiu__section-title {
    font-size: 2em;
  }
  .page-tai-xiu__strategy-content {
    grid-template-columns: 1fr;
  }
  .page-tai-xiu__strategy-image {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px;
  }
  .page-tai-xiu__hero-content {
    transform: translateY(-20%); /* Less pull up on mobile */
    margin-bottom: -20px;
    padding: 20px 15px;
  }
  .page-tai-xiu__main-title {
    font-size: 2em !important;
  }
  .page-tai-xiu__hero-description {
    font-size: 1em;
  }
  .page-tai-xiu__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    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__section {
    padding: 30px 0;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-tai-xiu__section p {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-tai-xiu__content-grid,
  .page-tai-xiu__steps-grid,
  .page-tai-xiu__bet-type-grid,
  .page-tai-xiu__advantages-grid,
  .page-tai-xiu__promo-list {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-tai-xiu__image-full-width,
  .page-tai-xiu__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__container {
    padding: 0 10px;
  }
  .page-tai-xiu__card,
  .page-tai-xiu__step-item,
  .page-tai-xiu__bet-type-card,
  .page-tai-xiu__advantage-card,
  .page-tai-xiu__promo-item {
    padding: 20px;
  }
  .page-tai-xiu__card-title {
    font-size: 1.3em;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 15px;
  }
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .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; }

  /* Ensure all containers with images/buttons are responsive */
  .page-tai-xiu__hero-section,
  .page-tai-xiu__intro-section .page-tai-xiu__container,
  .page-tai-xiu__how-to-play-section .page-tai-xiu__container,
  .page-tai-xiu__bet-types-section .page-tai-xiu__container,
  .page-tai-xiu__strategy-section .page-tai-xiu__container,
  .page-tai-xiu__advantages-section .page-tai-xiu__container,
  .page-tai-xiu__promotions-section .page-tai-xiu__container,
  .page-tai-xiu__faq-section .page-tai-xiu__container,
  .page-tai-xiu__conclusion-section .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}