/* style/resources.css */
/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure body padding-top is handled by shared.css or hero-section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #FFFFFF; /* White text for brand primary background */
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: none; /* Ensure no color filters */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-resources__section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
}

.page-resources__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
    color: #FFFFFF;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand primary color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources__dark-section .page-resources__section-text {
    color: #F0F0F0;
}

.page-resources__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-resources__dark-section .page-resources__list {
    color: #F0F0F0;
}

.page-resources__list--ordered {
    list-style: decimal;
}

.page-resources__list-item {
    margin-bottom: 10px;
}

.page-resources__btn-primary,
.page-resources__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;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #26A9E0;
}

.page-resources__btn--center {
    display: block;
    margin: 30px auto;
    text-align: center;
    max-width: 300px; /* Limit button width */
}

.page-resources__btn--inline {
    margin-right: 15px;
    margin-bottom: 15px;
}

.page-resources__btn--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-resources__grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__card {
    background-color: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no color filters */
}

.page-resources__card-title {
    font-size: 1.3em;
    padding: 15px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: #26A9E0; /* Brand primary color for link */
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 0.95em;
    padding: 0 15px 15px;
    color: #555555;
}

.page-resources__image-left,
.page-resources__image-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-resources__image-left .page-resources__image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no color filters */
}

.page-resources__image-right .page-resources__image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no color filters */
}

.page-resources__image-left .page-resources__text-content,
.page-resources__image-right .page-resources__text-content {
    flex: 1;
}

.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333; /* Darker text for better contrast */
    cursor: pointer;
    background-color: #F8F8F8; /* Light background */
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #e0f2f7;
}

.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); /* Change + to X or similar */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 20px;
}

.page-resources__section-text--cta {
    font-size: 1.2em;
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
    color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__image-left,
    .page-resources__image-right {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__image-left .page-resources__image,
    .page-resources__image-right .page-resources__image {
        max-width: 100%;
        flex: 1 0 100%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-left .page-resources__image,
    .page-resources__image-right .page-resources__image {
        max-width: 100%;
        width: 100%;
    }
    
    /* Content area image CSS dimensions lower bound */
    .page-resources__section img,
    .page-resources__card-image {
        min-width: 200px;
        min-
    }
    
    /* Mobile button responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources 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-left: 0 !important; /* Remove inline margins */
        margin-right: 0 !important; /* Remove inline margins */
        margin-bottom: 15px !important; /* Add space between stacked buttons */
    }
    .page-resources__btn--center {
        max-width: 100%;
        width: 100%;
    }
    .page-resources__btn--inline {
        margin-right: 0;
    }
    .page-resources__button-group { /* If there's a group of buttons */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Container for mobile padding and overflow */
    .page-resources__container,
    .page-resources__section,
    .page-resources__card,
    .page-resources__grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 15px; /* Adjust padding for mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
}