/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--bg-color, #08160F); /* Page background color */
}

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

.page-tai-xiu__section {
  padding: 60px 0;
  text-align: center;
}

.page-tai-xiu__dark-section {
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
}

.page-tai-xiu__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-tai-xiu__highlight {
  color: var(--gold, #F2C14E);
  font-weight: bold;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  background-color: var(--bg-color, #08160F);
}

.page-tai-xiu__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop default */
  opacity: 0.3;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
}

.page-tai-xiu__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  font-size: clamp(32px, 5vw, 64px); /* Responsive font size */
}

.page-tai-xiu__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 200px;
  cursor: pointer;
  border: none;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  color: var(--gold, #F2C14E);
  border-color: var(--gold, #F2C14E);
}

/* Intro Section */
.page-tai-xiu__section--intro .page-tai-xiu__section-title,
.page-tai-xiu__section--intro .page-tai-xiu__text-block {
  color: var(--text-main, #F2FFF6);
}

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

.page-tai-xiu__grid-item {
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--text-main, #F2FFF6);
}

.page-tai-xiu__image-content {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-tai-xiu__grid-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

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

.page-tai-xiu__list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--text-secondary, #A7D9B8);
}

.page-tai-xiu__list li strong {
  color: var(--text-main, #F2FFF6);
}

/* Bet Types Section */
.page-tai-xiu__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__card {
  background: var(--card-bg, #11271B);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-tai-xiu__card-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

/* Tips Section */
.page-tai-xiu__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__card--tip {
  text-align: center;
}

.page-tai-xiu__image-tip {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-tai-xiu__btn-more-tips {
  margin-top: 40px;
}

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

.page-tai-xiu__advantage-item {
  text-align: center;
  background: var(--deep-green, #0A4B2C);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-tai-xiu__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-tai-xiu__advantage-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

.page-tai-xiu__advantage-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-tai-xiu__cta-bottom {
  margin-top: 50px;
}

/* Guide Section */
.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-tai-xiu__guide-list li {
  background: var(--card-bg, #11271B);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  counter-increment: guide-step;
  position: relative;
  padding-left: 70px;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

.page-tai-xiu__guide-list li::before {
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  background: var(--deep-green, #0A4B2C);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.page-tai-xiu__list-title {
  font-size: 20px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 5px;
  display: block;
}

.page-tai-xiu__guide-list p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-tai-xiu__btn-text-link {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  display: inline-block;
}

.page-tai-xiu__btn-text-link:hover {
  color: var(--glow, #57E38D);
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 40px;
  text-align: left;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #F2FFF6);
}
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: var(--deep-green, #0A4B2C);
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold, #F2C14E);
}