/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Page Styles */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default page background */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439; /* Brand color for sub-titles */
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
}

/* Color Schemes */
.page-resources__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF; /* White text for dark backgrounds */
}

.page-resources__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light backgrounds */
}

.page-resources__light-bg-text {
    color: #FFFFFF; /* Explicitly white text for elements on dark backgrounds */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Below overlay */
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-resources__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow text for contrast */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #C30808; /* Red text for secondary action */
    border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
}

.page-resources__conclusion-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Video Section */
.page-resources__video-section {
    padding-top: 60px; /* Base padding */
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.page-resources__video-link {
    display: block; /* Make the whole video wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%; /* Ensure video does not overflow */
    object-fit: cover;
    cursor: pointer;
}

/* Image Layouts */
.page-resources__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-resources__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    display: block; /* For proper sizing and responsiveness */
}

.page-resources__content-image--center {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources__text-content {
    flex: 1;
    text-align: left;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: #FFFFFF; /* White text for FAQ questions on dark background */
    background-color: rgba(0, 0, 0, 0.2); /* Darker background for question */
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFFFFF; /* White text for FAQ answers */
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust padding to look continuous */
}

/* Links within content */
.page-resources__paragraph a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-resources__paragraph a:hover {
    color: #e0e000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__image-text-layout {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__image-text-layout--reverse {
        flex-direction: column;
    }
    .page-resources__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: auto;
        min-height: 50vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered */
    }
    .page-resources__hero-content {
        padding: 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn-primary,
    .page-resources__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;
        padding-right: 15px;
    }
    .page-resources__conclusion-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    /* Video responsiveness */
    .page-resources__video-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__image-text-layout,
    .page-resources__text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__content-image {
        min-width: unset; /* Allow smaller on mobile if needed, but max-width 100% will control */
        min-height: unset;
    }

    .page-resources__faq-item {
        margin: 0 15px 15px 15px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}