/* style/resources.css */
.page-resources {
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-resources__section {
    padding: 60px 0;
    position: relative;
}

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

.page-resources__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

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

.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: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-resources__hero-cta {
    margin-top: 30px;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

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

/* Content Grid Layout */
.page-resources__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Reverse content order */
}

.page-resources__content-grid--reverse > div {
    direction: ltr; /* Reset text direction */
}

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

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Background Sections */
.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__section-title {
    color: #017439; /* Brand color for titles on dark background */
}
.page-resources__dark-bg .page-resources__text-block {
    color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__sub-title {
    color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-item summary {
    list-style: none; /* Remove default marker for details */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #0a0a0a; /* Ensure dark background */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* Subtle background image */
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-resources__btn-cta {
    min-width: 200px;
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__content-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__content-grid--reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for mobile */
    }
    .page-resources__image-wrapper {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }
    .page-resources__text-block {
        font-size: 1em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__cta-buttons .page-resources__btn-cta {
        width: 100%; /* Ensure buttons take full width */
        max-width: 100%;
    }

    /* Mobile image and container specific rules */
    .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-wrapper,
    .page-resources__content-grid > div { /* Target all divs within grid too */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources__hero-content {
        padding: 15px;
    }
    .page-resources__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}

/* Ensure no filter on images */
.page-resources img {
    filter: none;
}