.page-resources {
    color: #333333; /* Deep text color for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #FFFFFF; /* Light text for hero section */
    background-color: #000000; /* Dark background for hero */
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5; /* Slightly opaque to let text stand out */
}

.page-resources__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-resources__articles-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-resources__articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__articles-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-resources__articles-intro {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources__articles-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-resources__filter-button {
    background-color: #f0f0f0;
    color: #000000;
    border: 1px solid #cccccc;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__filter-button:hover,
.page-resources__filter-button--active {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 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 8px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__article-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.3;
}

.page-resources__article-heading a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-heading a:hover {
    color: #FCBC45; /* Highlight on hover */
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows summary to take up available space */
}

.page-resources__article-link {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to the start */
}

.page-resources__article-link:hover {
    background-color: #333333;
}

.page-resources__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-resources__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cccccc;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled),
.page-resources__pagination-link--active {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.page-resources__pagination-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

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

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

.page-resources__cta-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

.page-resources__deep-dive-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    color: #333333;
}

.page-resources__deep-dive-title {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}

.page-resources__deep-dive-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-resources__deep-dive-intro strong {
    color: #FCBC45;
}

.page-resources__deep-dive-subtitle {
    font-size: 1.8em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 5px;
}

.page-resources__deep-dive-section p {
    margin-bottom: 1em;
    line-height: 1.7;
    color: #444444;
}

.page-resources__deep-dive-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__deep-dive-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

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

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

    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__articles-section {
        margin: 30px auto;
        padding: 15px;
    }

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

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

    .page-resources__article-image {
        max-width: 100%;
        height: auto; /* Allow height to adjust naturally */
    }

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

    .page-resources__cta-section {
        padding: 60px 15px;
    }

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

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

    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-resources__deep-dive-section {
        margin: 40px auto;
        padding: 15px;
    }

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

    .page-resources__deep-dive-subtitle {
        font-size: 1.5em;
    }

    /* Mobile image constraint */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area doesn't cause horizontal scrolling on mobile */
@media (max-width: 768px) {
    .page-resources {
        overflow-x: hidden;
    }
    .page-resources__articles-grid {
        padding: 0 10px; /* Small padding to prevent edge overflow */
    }
}