:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f1f3f5;
    --background-dark: var(--dark-bg-1, #0d0d0d); /* Fallback if shared.css not loaded */
    --border-color: #e0e0e0;
}

.page-resources-tai-xiu-selection-guide {
    color: var(--text-color-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Ensure content is not hidden by fixed header */
.page-resources-tai-xiu-selection-guide__hero-banner {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-resources-tai-xiu-selection-guide__introduction-section,
.page-resources-tai-xiu-selection-guide__strategy-section,
.page-resources-tai-xiu-selection-guide__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-resources-tai-xiu-selection-guide__criteria-section,
.page-resources-tai-xiu-selection-guide__comparison-section,
.page-resources-tai-xiu-selection-guide__conclusion-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-resources-tai-xiu-selection-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-tai-xiu-selection-guide__main-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-resources-tai-xiu-selection-guide__subtitle {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-tai-xiu-selection-guide__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from parent section */
    line-height: 1.3;
}

.page-resources-tai-xiu-selection-guide__section-title .highlight {
    color: var(--secondary-color);
}

.page-resources-tai-xiu-selection-guide__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
    color: inherit; /* Inherit color from parent section */
}

.page-resources-tai-xiu-selection-guide__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-tai-xiu-selection-guide__text-block a:hover {
    color: var(--secondary-color);
}

.page-resources-tai-xiu-selection-guide__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-selection-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tai-xiu-selection-guide__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tai-xiu-selection-guide__card {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources-tai-xiu-selection-guide__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-tai-xiu-selection-guide__card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-resources-tai-xiu-selection-guide__card .highlight {
    color: var(--secondary-color);
}

.page-resources-tai-xiu-selection-guide__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
    text-align: center;
}

.page-resources-tai-xiu-selection-guide__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-tai-xiu-selection-guide__btn-primary:hover {
    background-color: #d1a504;
    border-color: #d1a504;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-selection-guide__btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-resources-tai-xiu-selection-guide__btn-secondary:hover {
    background-color: #081b49;
    border-color: #081b49;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-selection-guide__strategy-card {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
}

.page-resources-tai-xiu-selection-guide__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* FAQ styles */
.page-resources-tai-xiu-selection-guide__faq-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-resources-tai-xiu-selection-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources-tai-xiu-selection-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-resources-tai-xiu-selection-guide__faq-item.active .page-resources-tai-xiu-selection-guide__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-resources-tai-xiu-selection-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark);
}

.page-resources-tai-xiu-selection-guide__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-tai-xiu-selection-guide__faq-question:active {
    background: #eeeeee;
}

.page-resources-tai-xiu-selection-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: inherit;
}

.page-resources-tai-xiu-selection-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-tai-xiu-selection-guide__faq-item.active .page-resources-tai-xiu-selection-guide__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-tai-xiu-selection-guide__main-title {
        font-size: 38px;
    }
    .page-resources-tai-xiu-selection-guide__section-title {
        font-size: 30px;
    }
    .page-resources-tai-xiu-selection-guide__grid,
    .page-resources-tai-xiu-selection-guide__grid-2-col {
        grid-template-columns: 1fr;
    }
    .page-resources-tai-xiu-selection-guide__card,
    .page-resources-tai-xiu-selection-guide__strategy-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-resources-tai-xiu-selection-guide__hero-banner {
        padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
        padding-bottom: 30px;
    }
    .page-resources-tai-xiu-selection-guide__introduction-section,
    .page-resources-tai-xiu-selection-guide__criteria-section,
    .page-resources-tai-xiu-selection-guide__strategy-section,
    .page-resources-tai-xiu-selection-guide__comparison-section,
    .page-resources-tai-xiu-selection-guide__faq-section,
    .page-resources-tai-xiu-selection-guide__conclusion-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .page-resources-tai-xiu-selection-guide__container {
        padding: 0 15px;
    }
    .page-resources-tai-xiu-selection-guide__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-tai-xiu-selection-guide__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-tai-xiu-selection-guide__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .page-resources-tai-xiu-selection-guide__text-block {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .page-resources-tai-xiu-selection-guide__card-title {
        font-size: 20px;
    }
    .page-resources-tai-xiu-selection-guide__card p {
        font-size: 15px;
    }
    .page-resources-tai-xiu-selection-guide__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        margin-top: 25px;
    }
    
    /* Mobile image responsive */
    .page-resources-tai-xiu-selection-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-tai-xiu-selection-guide__section,
    .page-resources-tai-xiu-selection-guide__card,
    .page-resources-tai-xiu-selection-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-tai-xiu-selection-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-tai-xiu-selection-guide__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-tai-xiu-selection-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-tai-xiu-selection-guide__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-tai-xiu-selection-guide__faq-item.active .page-resources-tai-xiu-selection-guide__faq-answer {
        padding: 15px !important;
    }
}