/* style/tai-xiu.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --background-page-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --text-black-color: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light backgrounds */
    background-color: var(--background-page-color);
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Aligns with header offset strategy */
    background: var(--primary-color);
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.page-tai-xiu__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.page-tai-xiu__hero-text-container {
    max-width: 800px;
    padding: 0 20px 40px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-tai-xiu__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* General Section Styles */
.page-tai-xiu__section-title {
    font-size: clamp(1.8em, 2.8vw, 2.5em);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.page-tai-xiu__light-bg {
    background-color: var(--background-page-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-tai-xiu__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg h3 {
    color: #ffffff;
}

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

.page-tai-xiu__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__rule-item,
.page-tai-xiu__type-item,
.page-tai-xiu__strategy-item,
.page-tai-xiu__step-item {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-tai-xiu__dark-bg .page-tai-xiu__rule-item,
.page-tai-xiu__dark-bg .page-tai-xiu__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__rule-item h3,
.page-tai-xiu__dark-bg .page-tai-xiu__step-item h3 {
    color: #ffffff;
}

.page-tai-xiu__rule-item:hover,
.page-tai-xiu__type-item:hover,
.page-tai-xiu__strategy-item:hover,
.page-tai-xiu__step-item:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__rule-title,
.page-tai-xiu__type-title,
.page-tai-xiu__strategy-title,
.page-tai-xiu__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-tai-xiu__dark-bg .page-tai-xiu__rule-title,
.page-tai-xiu__dark-bg .page-tai-xiu__step-title {
    color: var(--secondary-color);
}

/* Advantages List */
.page-tai-xiu__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

.page-tai-xiu__advantages-list li h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

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

.page-tai-xiu__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}