.page-resources {
    color: #ffffff; /* Dark body background, so light text */
    background-color: #000000; /* Assuming body is black */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

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

.page-resources__dark-bg {
    background-color: #000000; /* Explicitly dark background for sections */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #f8f9fa; /* Lighter background for contrast sections */
    color: #333333; /* Dark text for light background */
}

.page-resources__dark-text {
    color: #333333; /* For text on light backgrounds */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no CSS filters */
}

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff; /* Default for dark sections */
}

.page-resources__light-bg .page-resources__section-title {
    color: #017439; /* Brand color for titles on light background */
}

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

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #ffffff; /* Default for dark sections */
}

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

.page-resources__highlight {
    color: #FFFF00; /* Highlight color for keywords */
    font-weight: bold;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.page-resources__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-resources__btn-primary:hover {
    background-color: #02a050; /* Slightly darker/lighter hover */
}

.page-resources__btn-secondary {
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
    background-color: #d81c1c; /* Slightly darker hover */
    color: #ffffff;
}

.page-resources__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-resources__grid-layout--reverse {
    grid-template-areas: "image content";
}

.page-resources__grid-layout--reverse .page-resources__content-block {
    grid-area: content;
}

.page-resources__grid-layout--reverse .page-resources__image-block {
    grid-area: image;
}

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

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no CSS filters */
}

.page-resources__list,
.page-resources__ordered-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__list {
    list-style: disc;
}

.page-resources__ordered-list {
    list-style: decimal;
}

.page-resources__light-bg .page-resources__list,
.page-resources__light-bg .page-resources__ordered-list {
    color: #333333;
}

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

.page-resources__light-bg .page-resources__list-item {
    color: #333333;
}

.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__resource-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    filter: none; /* Ensure no CSS filters */
}

.page-resources__card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #017439;
}

.page-resources__card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-resources__card-description {
    padding: 0 15px 15px;
    font-size: 0.95em;
    flex-grow: 1;
    color: #333333;
}

.page-resources__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    margin-top: auto; /* Push to bottom */
    transition: background-color 0.3s ease;
}

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

.page-resources__cta-buttons--centered {
    text-align: center;
    margin-top: 40px;
}

.page-resources__faq-section {
    padding: 60px 20px;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 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: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__cta-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #017439; /* Use primary brand color for bottom CTA */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
}

.page-resources__cta-bottom .page-resources__section-title {
    color: #ffffff;
}

.page-resources__cta-bottom .page-resources__paragraph {
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-resources__image-block-cta {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.page-resources__cta-bottom .page-resources__image {
    max-width: 100%;
    height: auto;
    filter: none; /* Ensure no CSS filters */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-resources__grid-layout--reverse {
        grid-template-areas: unset; /* Reset grid area for single column */
    }
    .page-resources__grid-layout--reverse .page-resources__content-block {
        grid-area: unset;
    }
    .page-resources__grid-layout--reverse .page-resources__image-block {
        grid-area: unset;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding-top: 0 !important; /* Avoid double padding if body already handles it */
        height: auto;
        min-height: 300px;
    }
    .page-resources__hero-content {
        padding: 40px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__hero-cta-buttons,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }
    .page-resources__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px;
    }

    /* Images and Videos responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important;
    }
    .page-resources__image-block,
    .page-resources__image-block-cta,
    .page-resources__resource-card,
    .page-resources__container,
    .page-resources__resource-card .page-resources__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video specific responsive rules (if any video is added) */
    .page-resources video,
    .page-resources__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}