.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa; /* Light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #0A2342; /* Dark blue background for hero */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

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

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

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #E0B400; /* Gold for emphasis */
    line-height: 1.2;
}

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

.page-resources__btn-primary {
    display: inline-block;
    background-color: #E0B400; /* Gold button */
    color: #0A2342; /* Dark blue text for gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-resources__btn-primary:hover {
    background-color: #cc9900; /* Darker gold on hover */
}

.page-resources__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__section--dark {
    background-color: #0A2342;
    color: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

.page-resources__section--dark .page-resources__section-title {
    color: #E0B400;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2342;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-resources__content-block {
    line-height: 1.7;
    font-size: 1.1em;
}

.page-resources__content-block p {
    margin-bottom: 20px;
}

.page-resources__content-block--center {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
}

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

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

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

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card look */
    object-fit: cover;
    display: block;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-resources__card-title a {
    color: #0A2342;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #E0B400;
}

.page-resources__card-description {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-block;
    color: #E0B400;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    transition: text-decoration 0.3s ease;
}

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

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

.page-resources__list-item {
    background-color: #f0f2f5;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
    color: #0A2342;
}

.page-resources__list-item::before {
    content: '✔';
    color: #E0B400;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.7;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #0A2342;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #E0B400;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    line-height: 1.6;
    font-size: 1em;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px;
}

.page-resources__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #0A2342;
    color: #ffffff;
    margin-top: 30px;
}

.page-resources__cta-title {
    font-size: 2.2em;
    color: #E0B400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-resources__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #E0B400;
    border: 2px solid #E0B400;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.page-resources__btn-secondary:hover {
    background-color: #E0B400;
    color: #0A2342;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header */
    }

    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 350px;
    }
    .page-resources__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-resources__section {
        padding: 40px 15px;
        margin: 20px auto;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-resources__card {
        margin: 0 auto;
        max-width: 400px;
    }

    .page-resources__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .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__cta-section, 
    .page-resources__cta-buttons,
    .page-resources__faq-list,
    .page-resources__content-block {
        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__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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; /* Ensure text padding */
        padding-right: 15px; /* Ensure text padding */
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-resources__list-item {
        font-size: 1em;
    }
}