:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --text-dark-color: #000000;
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --header-offset: 122px; /* Placeholder, actual value from shared.css */
}

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

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

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

.page-tai-xiu__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-tai-xiu__section-title--white {
    color: var(--card-bg-color); /* White text for dark sections */
}

.page-tai-xiu__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
    overflow: hidden;
}

.page-tai-xiu__hero-image {
    max-width: 100%;
    overflow: hidden;
}

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

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

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size clamp */
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-tai-xiu__description {
    font-size: 20px;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-tai-xiu__cta-buttons--center {
    margin-top: 40px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-tai-xiu__btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

/* Image with content */
.page-tai-xiu__image-content {
    margin-top: 40px;
    text-align: center;
}

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

/* Dark Section */
.page-tai-xiu__dark-section {
    background: var(--primary-color);
    color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__text-block {
    color: #f0f8ff;
}

.page-tai-xiu__dark-section .page-tai-xiu__text-block strong {
    color: var(--secondary-color);
}

/* Rules Grid */
.page-tai-xiu__rules-grid,
.page-tai-xiu__bet-grid,
.page-tai-xiu__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-tai-xiu__rule-card,
.page-tai-xiu__bet-card,
.page-tai-xiu__strategy-card,
.page-tai-xiu__promo-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__rule-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-tai-xiu__dark-section .page-tai-xiu__rule-card .page-tai-xiu__card-title {
    color: var(--secondary-color);
}

.page-tai-xiu__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}