.page-resources {
    color: #ffffff; /* Body background is dark, so text should be light */
    background-color: #121212; /* Ensure consistent dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.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);
    z-index: -1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.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;
    margin: 10px;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #cccccc;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

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

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

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

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

.page-resources__card-text {
    padding: 0 20px 20px 20px;
    color: #cccccc;
    flex-grow: 1;
}

.page-resources__card .page-resources__btn-secondary {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}

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

.page-resources__dark-section .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__feature-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #ffffff;
}

.page-resources__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-resources__feature-text {
    color: #cccccc;
}

.page-resources__promo-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-resources__promo-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.page-resources__promo-title {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    color: #ffffff;
}

.page-resources__promo-text {
    padding: 0 20px 20px 20px;
    color: #cccccc;
}

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

.page-resources__content-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-resources__content-subtitle {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #017439;
}

.page-resources__content-text {
    margin-bottom: 20px;
    color: #cccccc;
}

.page-resources__faq-section {
    background-color: #1a1a1a;
}

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

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

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

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

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

.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;
    color: #cccccc;
}

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

.page-resources__cta-section {
    text-align: center;
    padding: 80px 0;
}

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

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Mobile adaptations */
@media (max-width: 768px) {
    .page-resources__main-title {
        font-size: 2.2em;
    }

    .page-resources__intro-text {
        font-size: 1em;
    }

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

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

    .page-resources__cards-grid,
    .page-resources__features-grid,
    .page-resources__promo-grid,
    .page-resources__content-grid {
        grid-template-columns: 1fr;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-resources__container {
        padding: 0 15px;
    }

    /* Enforce image and container responsiveness for mobile */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__promo-item,
    .page-resources__feature-item,
    .page-resources__content-block,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    /* Ensure content area images are not smaller than 200px (desktop rule, but ensure no accidental shrinking here) */
    .page-resources__card-image,
    .page-resources__promo-image,
    .page-resources__feature-icon {
        min-width: 200px;
        min-height: 200px;
    }

    /* Specific override for feature icons to ensure minimum size on mobile */
    .page-resources__feature-icon {
        width: 100% !important; /* Will scale to container width */
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}