:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* General styles for the Tài Xỉu page */
.page-tai-xiu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-color);
}

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

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

.page-tai-xiu__dark-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-tai-xiu__section-title {
    font-size: 3em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--text-secondary-color);
}

.page-tai-xiu__article-body p {
    margin-bottom: 1em;
}

.page-tai-xiu__article-body ul,
.page-tai-xiu__article-body ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.page-tai-xiu__article-body li {
    margin-bottom: 0.5em;
    color: var(--text-secondary-color);
}

.page-tai-xiu__article-body strong {
    color: var(--text-main-color);
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--background-color);
}

.page-tai-xiu__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover, adjust for mobile */
    border-radius: 10px;
}

.page-tai-xiu__hero-content {
    max-width: 800px;
    z-index: 1;
    padding: 0 20px;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px;
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
}

.page-tai-xiu__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

.page-tai-xiu__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Image wrappers */
.page-tai-xiu__image-wrapper {
    margin: 40px auto;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}

.page-tai-xiu__image-wrapper--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__image-wrapper--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 40%; /* Adjust for text wrapping */
}

.page-tai-xiu__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-tai-xiu__card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--text-main-color);
}

.page-tai-xiu__card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-tai-xiu__card-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__card-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-tai-xiu__card-button {
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-tai-xiu__guide-list li {
    background-color: var(--card-bg-color);
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main-color);
}

.page-tai-xiu__guide-list li strong {
    color: var(--gold-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.page-tai-xiu__guide-list li p {
    color: var(--text-secondary-color);
    font-size: 1em;
    margin-bottom: 0;
}

.page-tai-xiu__cta-buttons--center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px;
}

/* Feature List */
.page-tai-xiu__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tai-xiu__feature-list li {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main-color);
    text-align: left;
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__feature-list li p {
    color: var(--text-secondary-color);
    font-size: 1em;
}

/* Promotion List */
.page-tai-xiu__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tai-xiu__promo-list li {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main-color);
    text-align: left;
}

.page-tai-xiu__promo-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__promo-list li p {
    color: var(--text-secondary-color);
    font-size: 1em;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  color: var(--text-main-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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;
}
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: rgba(var(--primary-color-rgb), 0.1);
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 25px;
  background: var(--background-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
}
.page-tai-xiu__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__section-title {
        font-size: 2.5em;
    }
    .page-tai-xiu__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-tai-xiu__hero-description {
        font-size: 1.1em;
    }
    .page-tai-xiu__grid--2-cols {
        grid-template-columns: 1fr;
    }
    .page-tai-xiu__image-wrapper--right {
        float: none;
        margin: 30px auto;
        max-width: 60%;
    }
}