/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.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;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand green */
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-resources__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources__container--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block {
    flex: 1;
}

.page-resources__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark body background */
}

/* Light background sections */
.page-resources__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-resources__light-bg .page-resources__section-title {
    color: #017439; /* Brand green */
}

.page-resources__light-bg .page-resources__section-title::after {
    background-color: #017439;
}

.page-resources__light-bg .page-resources__text-block {
    color: #333333; /* Dark text */
}

.page-resources__light-bg .page-resources__list-item {
    color: #333333; /* Dark text */
}

/* Dark background sections */
.page-resources__dark-section {
    background-color: #1a1a2e; /* Inherit from body or specific dark color */
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title::after {
    background-color: #017439;
}

/* List styles */
.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources__list-item {
    font-size: 1.05em;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #f0f0f0; /* Light text for dark background */
}

.page-resources__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #017439; /* Brand green */
    font-weight: bold;
}

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

.page-resources__btn-primary {
    background-color: #017439; /* Brand green */
    color: #ffffff;
    border: 2px solid #017439;
    margin-right: 15px;
}

.page-resources__btn-primary:hover {
    background-color: #005f2f; /* Darker green */
    border-color: #005f2f;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-resources__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand green for question background */
    transition: background-color 0.3s ease;
}

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

.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 25px;
    background-color: #f8f8f8; /* Light background for answer */
    color: #333333; /* Dark text for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    color: #333333;
}

.page-resources__faq-image {
    display: block;
    margin-top: 40px;
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-resources__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-resources__cta-container .page-resources__section-title {
    color: #017439;
}

.page-resources__cta-container .page-resources__text-block {
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

    .page-resources__hero-description {
        font-size: 1.2em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__container--flex {
        flex-direction: column;
    }

    .page-resources__container--reverse {
        flex-direction: column;
    }

    .page-resources__image-block {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-question-text {
        font-size: 0.95em;
    }

    .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;
        margin-right: 0 !important; /* Remove right margin for stacking */
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-resources__container,
    .page-resources__faq-list,
    .page-resources__cta-container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers responsive */
    .page-resources__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px;
    }

    /* FAQ item padding for mobile */
    .page-resources__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        height: 400px;
    }

    .page-resources__hero-title {
        font-size: 1.8em;
    }

    .page-resources__hero-description {
        font-size: 0.9em;
    }

    .page-resources__section-title {
        font-size: 1.5em;
    }
}