/* style/resources.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --background-white: #FFFFFF;
    --black-color: #000000;
    --border-light: #e0e0e0;
    --background-light-grey: #f9f9f9;
    --primary-color-darker: #2095CC; /* Derived from #26A9E0 */
}

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light body background */
    line-height: 1.6;
    padding-bottom: 60px; /* General padding at the bottom */
}

/* Fixed header offset - applied to the main content wrapper or hero */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* 淡蓝色配色方案 */
    overflow: hidden;
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px 0;
}

.page-resources__main-title {
    font-size: 48px;
    color: var(--text-dark); /* Ensure contrast on gradient background */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-resources__intro-text {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__cta-button,
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__btn-center {
    display: block;
    margin: 40px auto 20px auto;
    width: fit-content;
}

/* General section styles */
.page-resources__section {
    padding: 60px 20px;
    background: var(--background-white);
    text-align: center;
}

.page-resources__section:nth-of-type(even) {
    background: var(--background-light-grey); /* Slight alternating background for readability */
}

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

.page-resources__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__subsection-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-resources__paragraph {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* List styles */
.page-resources__step-list,
.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-resources__step-list .page-resources__list-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__step-list .page-resources__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__list-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-resources__list-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 0;
}

.page-resources__list .page-resources__list-item {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-resources__list .page-resources__list-item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-resources__faq-section {
    background: var(--background-light-grey);
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
    position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}