.page-resources {
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
}

.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #1E90FF; /* Auxiliary blue background for hero section */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-resources__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    max-width: 900px;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.8;
}

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

.page-resources__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-resources__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #1E90FF; /* Blue text for gold button */
    border: 2px solid #FFD700;
}

.page-resources__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text for secondary button */
    border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

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

.page-resources__articles-section,
.page-resources__benefits-section,
.page-resources__cta-section {
    padding: 60px 0;
}

.page-resources__section-title,
.page-resources__cta-title {
    font-size: 2.5em;
    color: #1E90FF; /* Blue for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: #1E90FF; /* Blue for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-resources__article-category {
    font-size: 0.9em;
    color: #FFD700; /* Gold for category */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__button--read-more {
    background-color: #1E90FF; /* Blue read more button */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    align-self: flex-start;
}

.page-resources__button--read-more:hover {
    background-color: #1565b3;
    transform: translateY(-2px);
}

.page-resources__benefits-section {
    background-color: #f8f8f8;
}

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

.page-resources__benefit-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__benefit-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold for benefit titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__benefit-description {
    font-size: 1em;
    color: #666666;
}

.page-resources__cta-section {
    background: linear-gradient(135deg, #1E90FF, #0028ff); /* Blue gradient CTA background */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 40px auto;
    line-height: 1.7;
}

.page-resources__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

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

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

    .page-resources__article-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    }

    .page-resources__hero-container {
        padding: 60px 15px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
        line-height: 1.2;
    }

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

    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__button {
        width: 100%;
        max-width: 300px; /* Constrain button width on small screens */
    }

    .page-resources__articles-section,
    .page-resources__benefits-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }

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

    .page-resources__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-resources__article-image {
        height: 200px;
    }

    .page-resources__article-content {
        padding: 20px;
    }

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

    .page-resources__button--read-more {
        width: auto; /* Allow read more button to size naturally */
    }

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

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

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

    /* Ensure all images within .page-resources are responsive and do not cause overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }

    /* Specific override for card images to ensure min size is not violated by general img rule, if needed */
    .page-resources__article-image {
        min-width: 200px;
        min-height: 200px;
        height: auto; /* Let auto height maintain aspect ratio */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title,
    .page-resources__cta-title {
        font-size: 1.5em;
    }
    .page-resources__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}