.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D); /* Default text color for light sections */
    background-color: var(--background-color, #F4F7FB); /* Default background for the page */
}

/* Base container styles */
.page-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Section Titles */
.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color, #1F2D3D);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tai-xiu__section-description {
    font-size: 1.1em;
    color: var(--text-main-color, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__content-text {
    font-size: 1em;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 1em;
}

.page-tai-xiu__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-main-color, #1F2D3D);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Dark background sections */
.page-tai-xiu__dark-bg {
    background: #2F6BFF; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__section-description,
.page-tai-xiu__dark-bg .page-tai-xiu__content-text,
.page-tai-xiu__dark-bg .page-tai-xiu__subsection-title,
.page-tai-xiu__dark-bg .page-tai-xiu__list li,
.page-tai-xiu__dark-bg .page-tai-xiu__list li strong {
    color: #ffffff;
}

/* Light background sections */
.page-tai-xiu__light-bg {
    background: #F4F7FB; /* Custom background color */
    color: #1F2D3D; /* Dark text for contrast */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Light background for hero */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main-color, #1F2D3D);
}

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

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 30px;
}

.page-tai-xiu__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

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

/* CTA Buttons */
.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-tai-xiu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__btn-secondary:hover {
    background: #f0f0f0;
    color: #1a4cd9;
    border-color: #1a4cd9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__icon-box {
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__icon-box-media {
    width: 200px; /* Enforce square */
    height: 200px; /* Enforce square */
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #D6E2FF; /* Border color */
    box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.1); /* Glow effect */
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Keep image circular */
}

.page-tai-xiu__icon-box-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 15px;
}

.page-tai-xiu__icon-box-text {
    font-size: 1em;
    color: var(--text-main-color, #1F2D3D);
}

/* Rules Section */
.page-tai-xiu__rules-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.page-tai-xiu__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-tai-xiu__list li {
    margin-bottom: 10px;
    color: #ffffff; /* For dark-bg section */
}