/* style/resources-what-is-tai-xiu-link.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark-color: #333333;
    --text-light-color: #ffffff;
    --black-color: #000000;
}

.page-resources-what-is-tai-xiu-link {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark-color); /* Default text color for light backgrounds */
    background-color: var(--background-color); /* Default page background */
}

/* Ensure main content has correct padding-top for fixed header */
.page-resources-what-is-tai-xiu-link__hero-section,
.page-resources-what-is-tai-xiu-link__introduction {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-resources-what-is-tai-xiu-link__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-what-is-tai-xiu-link__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.page-resources-what-is-tai-xiu-link__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Hero Section */
.page-resources-what-is-tai-xiu-link__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light-color);
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.page-resources-what-is-tai-xiu-link__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-resources-what-is-tai-xiu-link__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-resources-what-is-tai-xiu-link__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-resources-what-is-tai-xiu-link__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-what-is-tai-xiu-link__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.8); /* Allowed for darkening, not color change */
}

/* Buttons */
.page-resources-what-is-tai-xiu-link__btn-primary,
.page-resources-what-is-tai-xiu-link__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.page-resources-what-is-tai-xiu-link__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light-color);
    border: 2px solid var(--login-color);
}

.page-resources-what-is-tai-xiu-link__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

.page-resources-what-is-tai-xiu-link__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-what-is-tai-xiu-link__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light-color);
}

/* Sections */
.page-resources-what-is-tai-xiu-link__introduction,
.page-resources-what-is-tai-xiu-link__importance-section,
.page-resources-what-is-tai-xiu-link__risks-section,
.page-resources-what-is-tai-xiu-link__conclusion-section {
    padding: 80px 0;
    color: var(--text-dark-color);
}

.page-resources-what-is-tai-xiu-link__what-is-section,
.page-resources-what-is-tai-xiu-link__how-to-choose-section,
.page-resources-what-is-tai-xiu-link__benefits-section,
.page-resources-what-is-tai-xiu-link__faq-section {
    padding: 80px 0;
    color: var(--text-light-color);
}

.page-resources-what-is-tai-xiu-link__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark-color);
}

.page-resources-what-is-tai-xiu-link__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light-color);
}

.page-resources-what-is-tai-xiu-link__dark-bg .page-resources-what-is-tai-xiu-link__section-title {
    color: var(--secondary-color);
}

.page-resources-what-is-tai-xiu-link__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-resources-what-is-tai-xiu-link__grid-layout--reverse {
    grid-template-areas: "image content";
}

.page-resources-what-is-tai-xiu-link__grid-layout--reverse .page-resources-what-is-tai-xiu-link__content-block {
    grid-area: content;
}

.page-resources-what-is-tai-xiu-link__grid-layout--reverse .page-resources-what-is-tai-xiu-link__image-block {
    grid-area: image;
}

.page-resources-what-is-tai-xiu-link__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-what-is-tai-xiu-link__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-what-is-tai-xiu-link__list-item {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-resources-what-is-tai-xiu-link__list-item::before {
    content: '✓';
    color: var(--login-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-resources-what-is-tai-xiu-link__list-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.page-resources-what-is-tai-xiu-link__list-description {
    font-size: 1em;
}

/* Video Section */
.page-resources-what-is-tai-xiu-link__video-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-dark-color);
}

.page-resources-what-is-tai-xiu-link__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-what-is-tai-xiu-link__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-resources-what-is-tai-xiu-link__btn-video-cta {
    margin-top: 30px;
}

/* FAQ Section */
.page-resources-what-is-tai-xiu-link__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light-color);
}

.page-resources-what-is-tai-xiu-link__faq-list {
    margin-top: 40px;
}

.page-resources-what-is-tai-xiu-link__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-what-is-tai-xiu-link__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-what-is-tai-xiu-link__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-what-is-tai-xiu-link__faq-question h3 {
    margin: 0;
    color: var(--text-light-color);
}

.page-resources-what-is-tai-xiu-link__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-resources-what-is-tai-xiu-link__faq-item.active .page-resources-what-is-tai-xiu-link__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-what-is-tai-xiu-link__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.page-resources-what-is-tai-xiu-link__faq-item.active .page-resources-what-is-tai-xiu-link__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

/* Conclusion Section */
.page-resources-what-is-tai-xiu-link__btn-conclusion-cta {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-what-is-tai-xiu-link__hero-title {
        font-size: 2.8em;
    }

    .page-resources-what-is-tai-xiu-link__hero-description {
        font-size: 1.1em;
    }

    .page-resources-what-is-tai-xiu-link__section-title {
        font-size: 2em;
    }

    .page-resources-what-is-tai-xiu-link__grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-resources-what-is-tai-xiu-link__grid-layout--reverse {
        grid-template-areas: unset;
    }

    .page-resources-what-is-tai-xiu-link__grid-layout .page-resources-what-is-tai-xiu-link__image-block,
    .page-resources-what-is-tai-xiu-link__grid-layout .page-resources-what-is-tai-xiu-link__content-block {
        grid-area: unset;
    }
}

@media (max-width: 768px) {
    .page-resources-what-is-tai-xiu-link {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-what-is-tai-xiu-link__hero-section,
    .page-resources-what-is-tai-xiu-link__introduction,
    .page-resources-what-is-tai-xiu-link__what-is-section,
    .page-resources-what-is-tai-xiu-link__importance-section,
    .page-resources-what-is-tai-xiu-link__how-to-choose-section,
    .page-resources-what-is-tai-xiu-link__risks-section,
    .page-resources-what-is-tai-xiu-link__benefits-section,
    .page-resources-what-is-tai-xiu-link__video-section,
    .page-resources-what-is-tai-xiu-link__faq-section,
    .page-resources-what-is-tai-xiu-link__conclusion-section {
        padding: 40px 0;
    }

    .page-resources-what-is-tai-xiu-link__hero-title {
        font-size: 2.2em;
    }

    .page-resources-what-is-tai-xiu-link__hero-description {
        font-size: 1em;
    }

    .page-resources-what-is-tai-xiu-link__section-title {
        font-size: 1.8em;
    }

    .page-resources-what-is-tai-xiu-link__btn-primary,
    .page-resources-what-is-tai-xiu-link__btn-secondary,
    .page-resources-what-is-tai-xiu-link a[class*="button"],
    .page-resources-what-is-tai-xiu-link a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px; /* Add margin for stacked buttons */
    }
    
    .page-resources-what-is-tai-xiu-link__hero-content .page-resources-what-is-tai-xiu-link__btn-primary {
        margin-bottom: 0;
    }

    .page-resources-what-is-tai-xiu-link__cta-buttons,
    .page-resources-what-is-tai-xiu-link__button-group,
    .page-resources-what-is-tai-xiu-link__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-resources-what-is-tai-xiu-link img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-what-is-tai-xiu-link__section,
    .page-resources-what-is-tai-xiu-link__card,
    .page-resources-what-is-tai-xiu-link__container,
    .page-resources-what-is-tai-xiu-link__image-block,
    .page-resources-what-is-tai-xiu-link__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-resources-what-is-tai-xiu-link video,
    .page-resources-what-is-tai-xiu-link__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-what-is-tai-xiu-link__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-what-is-tai-xiu-link__video-section,
    .page-resources-what-is-tai-xiu-link__video-container,
    .page-resources-what-is-tai-xiu-link__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-what-is-tai-xiu-link__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-what-is-tai-xiu-link__faq-answer {
        padding: 0 20px;
    }
    
    .page-resources-what-is-tai-xiu-link__faq-item.active .page-resources-what-is-tai-xiu-link__faq-answer {
        padding: 10px 20px 15px;
    }
}