/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #333333); /* Default text color */
    background-color: var(--body-bg, #F5F7FA); /* Background color from shared, fallback to #F5F7FA */
    line-height: 1.6;
}

/* Color variables based on custom配色 */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --section-bg: #F5F7FA;
    --text-main: #333333;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

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

/* Section titles */
.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 38px); /* H1字号：使用clamp */
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-tai-xiu__section-title--light {
    color: #ffffff; /* For dark backgrounds */
}

/* Text blocks */
.page-tai-xiu__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-tai-xiu__text-block--light {
    color: #f0f0f0; /* For dark backgrounds */
}

.page-tai-xiu__bullet-list,
.page-tai-xiu__ordered-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 17px;
}

.page-tai-xiu__bullet-list li,
.page-tai-xiu__ordered-list li {
    margin-bottom: 10px;
}

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

.page-tai-xiu__hero-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 30px; /* Space between image and content */
}

.page-tai-xiu__hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Desktop: cover */
    display: block;
}

.page-tai-xiu__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 60px;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

.page-tai-xiu__main-title {
    font-size: clamp(36px, 5vw, 56px); /* H1字号：使用clamp */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

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

.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;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-tai-xiu__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.page-tai-xiu__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto; /* Center the image */
}

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

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

.page-tai-xiu__card {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Ensure border for contrast */
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-tai-xiu__card-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
}

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

.page-tai-xiu__strategy-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__strategy-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-tai-xiu__strategy-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tai-xiu__strategy-title--light {
    color: #ffffff;
}

.page-tai-xiu__strategy-text {
    font-size: 16px;
    line-height: 1.6;
}

.page-tai-xiu__strategy-text--light {
    color: #f0f0f0;
}

/* Feature Grid (Why Choose Section) */
.page-tai-xiu__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-tai-xiu__feature-item {
    padding: 30px;
    text-align: center;
}

.page-tai-xiu__feature-icon {
    width: 200px; /* Ensure minimum size for imageRequirements */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color), 0.1);
    padding: 10px;
}