.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Ensure this matches shared.css body background */
}

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

.page-resources__dark-section {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles in light sections */
}

.page-resources__dark-section .page-resources__section-title {
    color: #FFFF00; /* Yellow for titles in dark sections */
}

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards in dark sections */
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__light-bg .page-resources__card {
    background-color: #f8f8f8;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
    color: #FFFF00; /* Yellow for card titles in dark sections */
}

.page-resources__light-bg .page-resources__card-title {
    color: #017439; /* Primary color for card titles in light sections */
}

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

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

.page-resources__card-description {
    font-size: 1em;
    margin: 0 15px 15px;
    flex-grow: 1;
}

.page-resources__read-more {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 15px 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-resources__read-more:hover {
    background-color: #005f2c;
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-resources__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Primary color for sub-titles in light sections */
}

.page-resources__dark-section .page-resources__sub-title {
    color: #FFFF00; /* Yellow for sub-titles in dark sections */
}

.page-resources__sub-title a {
    color: inherit;
    text-decoration: none;
}

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

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

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

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

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-resources__faq-answer p {
    margin: 0;
}

.page-resources__video-section {
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-resources__video-caption {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333333;
}

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

.page-resources__cta-section {
    text-align: center;
}

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

/* Button styles */
.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, border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping by default */
}

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

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

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

.page-resources__dark-section .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }

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

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

    .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-resources__text-content, .page-resources__image-wrapper {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__container {
        padding: 15px;
    }

    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

    .page-resources__sub-title {
        font-size: 1.3em;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
    }

    .page-resources__card {
        padding: 15px;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-resources__image-wrapper,
    .page-resources__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsiveness */
    .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;
    }

    /* 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;
    }

    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}