/* style/tai-xiu.css */

/* Base styles for the page */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set body background */
}

/* General container for content */
.page-tai-xiu__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Section titles */
.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Sub-titles */
.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 font-size */
    color: #017439;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    max-width: 700px;
}

.page-tai-xiu__hero-description,
.page-tai-xiu__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* CTA Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tai-xiu__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* ~10px top padding as per rules */
    padding-bottom: 60px;
    background-color: #FFFFFF; /* Light background for hero */
    color: #333333;
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-tai-xiu__hero-side-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block; /* Ensure it behaves as a block element */
}

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

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

/* Intro Section */
.page-tai-xiu__intro-section {
    background-color: #FFFFFF;
    padding: 60px 0;
    color: #333333;
}

.page-tai-xiu__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-tai-xiu__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-tai-xiu__icon-box-media {
    width: 180px; /* Smaller for feature */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #017439;
    box-shadow: 0 0 0 8px rgba(1,116,57,0.2);
}

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

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-tai-xiu__guide-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 0;
}

.page-tai-xiu__guide-section .page-tai-xiu__section-title {
    color: #FFFFFF; /* Override title color for dark background */
}

.page-tai-xiu__guide-section .page-tai-xiu__text-block {
    color: #f0f0f0;
}

.page-tai-xiu__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-tai-xiu__guide-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00; /* Yellow accent */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-tai-xiu__guide-step-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for step titles */
    margin-bottom: 10px;
}

.page-tai-xiu__guide-list li p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-tai-xiu__guide-list li a {
    color: #FFFF00; /* Yellow links */
    text-decoration: underline;
}

.page-tai-xiu__guide-list li a:hover {
    color: #ffffff;
}

.page-tai-xiu__guide-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
    background-color: #f5f5f5; /* Light grey background */
    padding: 60px 0;
    color: #333333;
}

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

.page-tai-xiu__strategy-list li {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #017439;
}

.page-tai-xiu__strategy-item-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-tai-xiu__strategy-list li p {
    font-size: 1em;
    color: #555555;
}

/* CTA Section */
.page-tai-xiu__cta-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
    padding: 60px 0;
    text-align: center;
}

.page-tai-xiu__cta-section .page-tai-xiu__section-title {
    color: #FFFFFF;
}

.page-tai-xiu__cta-section .page-tai-xiu__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-tai-xiu__cta-section .page-tai-xiu__text-block a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-tai-xiu__cta-section .page-tai-xiu__text-block a:hover {
    color: #ffffff;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content,
    .page-tai-xiu__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-tai-xiu__main-title {
        max-width: none;
    }
    .page-tai-xiu__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General mobile padding for content areas */
    .page-tai-xiu__content-area,
    .page-tai-xiu__hero-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll */
    }

    /* Hero Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Fixed top padding for hero */
        padding-bottom: 40px !important;
    }
    .page-tai-xiu__main-title {
        font-size: 2em !important;
        line-height: 1.3 !important;
    }
    .page-tai-xiu__hero-description,
    .page-tai-xiu__text-block {
        font-size: 1em !important;
    }
    .page-tai-xiu__hero-side-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Buttons */
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Ensure text padding */
        padding-right: 15px !important;
        margin-right: 0 !important; /* Remove margin for stacked buttons */
    }

    /* Module 1: Three-column circular images */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-tai-xiu__icon-box-media {
        width: 150px !important; /* Keep square aspect ratio */
        height: 150px !important;
        border-width: 3px !important;
        box-shadow: 0 0 0 6px rgba(1,116,57,0.2) !important;
    }
    .page-tai-xiu__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Guide Section */
    .page-tai-xiu__guide-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__cta-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-tai-xiu__section-title {
        font-size: 2em !important;
        margin-bottom: 20px !important;
    }
    .page-tai-xiu__guide-list li,
    .page-tai-xiu__strategy-list li {
        padding: 15px !important;
    }
    .page-tai-xiu__guide-step-title,
    .page-tai-xiu__strategy-item-title {
        font-size: 1.2em !important;
    }
    .page-tai-xiu__guide-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Strategy Section */
    .page-tai-xiu__strategy-list {
        grid-template-columns: 1fr !important; /* Single column */
    }

    /* General image responsiveness */
    .page-tai-xiu img:not(.page-tai-xiu__icon-box-media img) { /* Exclude circular images from height: auto override */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}