/* style/resources-tai-xiu-strategies-and-tips.css */

/* Variables (if not already in shared.css) */
:root {
    --primary-color: #0A2239; /* Dark Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
}

/* Page-specific styling for resources-tai-xiu-strategies-and-tips */
.page-resources-tai-xiu-strategies-and-tips {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background: var(--bg-light); /* Assuming body background is light */
    padding-top: 120px; /* Fixed nav bar desktop padding */
}

/* Ensure content contrast for the entire page body if dark-bg-1 is dark */
.page-resources-tai-xiu-strategies-and-tips.page-content {
    /* If body is dark-bg-1, then its text should be light.
       However, most sections here have explicit light backgrounds,
       so their text will be dark. This is a general fallback. */
    color: var(--text-dark); /* Default for light sections */
}

/* General Container */
.page-resources-tai-xiu-strategies-and-tips__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Styling */
.page-resources-tai-xiu-strategies-and-tips__intro-section,
.page-resources-tai-xiu-strategies-and-tips__strategy-section,
.page-resources-tai-xiu-strategies-and-tips__tips-section,
.page-resources-tai-xiu-strategies-and-tips__platform-selection-section,
.page-resources-tai-xiu-strategies-and-tips__faq-section {
    padding: 60px 0;
    background-color: var(--text-light); /* Light background for content sections */
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.page-resources-tai-xiu-strategies-and-tips__cta-section {
    padding: 80px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Dark background for CTA section */
.page-resources-tai-xiu-strategies-and-tips__dark-bg {
    background-color: var(--primary-color); /* Dark Blue background */
    color: var(--text-light); /* White text */
}

.page-resources-tai-xiu-strategies-and-tips__dark-bg .page-resources-tai-xiu-strategies-and-tips__section-title,
.page-resources-tai-xiu-strategies-and-tips__dark-bg .page-resources-tai-xiu-strategies-and-tips__cta-description {
    color: var(--text-light); /* Ensure white text on dark background */
}

/* Titles */
.page-resources-tai-xiu-strategies-and-tips__main-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-tai-xiu-strategies-and-tips__section-title {
    font-size: 28px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 35px;
    font-weight: bold;
    line-height: 1.4;
}

.page-resources-tai-xiu-strategies-and-tips__intro-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-resources-tai-xiu-strategies-and-tips__intro-text a,
.page-resources-tai-xiu-strategies-and-tips__cta-text a,
.page-resources-tai-xiu-strategies-and-tips__cta-description a,
.page-resources-tai-xiu-strategies-and-tips__faq-answer a {
    color: var(--primary-color); /* Links in body text */
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-tai-xiu-strategies-and-tips__intro-text a:hover,
.page-resources-tai-xiu-strategies-and-tips__cta-text a:hover,
.page-resources-tai-xiu-strategies-and-tips__cta-description a:hover,
.page-resources-tai-xiu-strategies-and-tips__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Images */
.page-resources-tai-xiu-strategies-and-tips__intro-image,
.page-resources-tai-xiu-strategies-and-tips__strategy-image,
.page-resources-tai-xiu-strategies-and-tips__tips-image,
.page-resources-tai-xiu-strategies-and-tips__platform-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Strategy Cards */
.page-resources-tai-xiu-strategies-and-tips__strategy-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-resources-tai-xiu-strategies-and-tips__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Tips List */
.page-resources-tai-xiu-strategies-and-tips__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-tai-xiu-strategies-and-tips__tips-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-resources-tai-xiu-strategies-and-tips__item-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Criteria List */
.page-resources-tai-xiu-strategies-and-tips__criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-resources-tai-xiu-strategies-and-tips__criteria-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

/* CTA Section */
.page-resources-tai-xiu-strategies-and-tips__cta-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light); /* White text on dark background */
}

.page-resources-tai-xiu-strategies-and-tips__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark blue text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none;
}

.page-resources-tai-xiu-strategies-and-tips__cta-button:hover {
    background: #e0b800; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* FAQ Styling */
.page-resources-tai-xiu-strategies-and-tips__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-resources-tai-xiu-strategies-and-tips__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-strategies-and-tips__faq-item.active .page-resources-tai-xiu-strategies-and-tips__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark); /* Ensure dark text on light background */
}

.page-resources-tai-xiu-strategies-and-tips__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;
}

.page-resources-tai-xiu-strategies-and-tips__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-tai-xiu-strategies-and-tips__faq-question:active {
    background: #eeeeee;
}

.page-resources-tai-xiu-strategies-and-tips__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color); /* FAQ question color */
}

.page-resources-tai-xiu-strategies-and-tips__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-strategies-and-tips__faq-item.active .page-resources-tai-xiu-strategies-and-tips__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Inline links within content */
.page-resources-tai-xiu-strategies-and-tips__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-tai-xiu-strategies-and-tips__inline-link:hover {
    color: var(--secondary-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-tai-xiu-strategies-and-tips__main-title {
        font-size: 32px;
    }
    .page-resources-tai-xiu-strategies-and-tips__section-title {
        font-size: 26px;
    }
    .page-resources-tai-xiu-strategies-and-tips__strategy-card,
    .page-resources-tai-xiu-strategies-and-tips__tips-item,
    .page-resources-tai-xiu-strategies-and-tips__criteria-item {
        padding: 25px;
    }
    .page-resources-tai-xiu-strategies-and-tips__card-title,
    .page-resources-tai-xiu-strategies-and-tips__item-title {
        font-size: 20px;
    }
    .page-resources-tai-xiu-strategies-and-tips__cta-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-resources-tai-xiu-strategies-and-tips {
        padding-top: 100px !important; /* Fixed nav bar mobile padding */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-tai-xiu-strategies-and-tips__container {
        padding: 0 15px;
    }

    .page-resources-tai-xiu-strategies-and-tips__intro-section,
    .page-resources-tai-xiu-strategies-and-tips__strategy-section,
    .page-resources-tai-xiu-strategies-and-tips__tips-section,
    .page-resources-tai-xiu-strategies-and-tips__platform-selection-section,
    .page-resources-tai-xiu-strategies-and-tips__faq-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-resources-tai-xiu-strategies-and-tips__cta-section {
        padding: 60px 0;
        margin-bottom: 20px;
    }

    .page-resources-tai-xiu-strategies-and-tips__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-resources-tai-xiu-strategies-and-tips__section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .page-resources-tai-xiu-strategies-and-tips__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-resources-tai-xiu-strategies-and-tips__strategy-card,
    .page-resources-tai-xiu-strategies-and-tips__tips-item,
    .page-resources-tai-xiu-strategies-and-tips__criteria-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-resources-tai-xiu-strategies-and-tips__card-title,
    .page-resources-tai-xiu-strategies-and-tips__item-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-resources-tai-xiu-strategies-and-tips__strategy-card p,
    .page-resources-tai-xiu-strategies-and-tips__tips-item p,
    .page-resources-tai-xiu-strategies-and-tips__criteria-item p {
        font-size: 15px;
    }

    .page-resources-tai-xiu-strategies-and-tips__criteria-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-resources-tai-xiu-strategies-and-tips__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-resources-tai-xiu-strategies-and-tips__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* FAQ Mobile */
    .page-resources-tai-xiu-strategies-and-tips__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-tai-xiu-strategies-and-tips__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-tai-xiu-strategies-and-tips__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-tai-xiu-strategies-and-tips__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-tai-xiu-strategies-and-tips__faq-item.active .page-resources-tai-xiu-strategies-and-tips__faq-answer {
        padding: 15px !important;
    }

    /* All images and containers must be responsive */
    .page-resources-tai-xiu-strategies-and-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-tai-xiu-strategies-and-tips__section,
    .page-resources-tai-xiu-strategies-and-tips__card,
    .page-resources-tai-xiu-strategies-and-tips__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}