.page-resources {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources__hero-section {
    background-color: #1a1a1a; /* Dark background for hero to make golden text pop */
    color: #FFD700; /* Golden text for contrast */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Primary color for title */
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0; /* Lighter text for description */
}

.page-resources__button {
    display: inline-block;
    background-color: #FFD700; /* Primary color for buttons */
    color: #1a1a1a; /* Dark text on golden button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-resources__button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-resources__latest-articles {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

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

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

.page-resources__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

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

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-resources__article-title a:hover {
    color: #0056b3; /* Darker blue on hover */
}

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

.page-resources__article-button {
    align-self: flex-start; /* Align button to start */
    background-color: #FFD700;
    color: #1a1a1a;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-resources__article-button:hover {
    background-color: #e6c200;
}

.page-resources__deep-dive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-resources__deep-dive-content p {
    margin-bottom: 1.5em;
    font-size: 1.05em;
    color: #444444;
}

.page-resources__deep-dive-content a {
    color: #1E90FF;
    text-decoration: none;
    font-weight: bold;
}

.page-resources__deep-dive-content a:hover {
    text-decoration: underline;
}

.page-resources__sub-section-title {
    font-size: 1.8em;
    color: #1E90FF;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

.page-resources__cta-section {
    background-color: #1E90FF; /* Auxiliary color for CTA background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Primary color for CTA title */
}

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

.page-resources__cta-button {
    background-color: #FFD700;
    color: #1a1a1a;
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
    }

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

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

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

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

    .page-resources__article-image,
    .page-resources__deep-dive-content img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

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

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

    /* Enforce min-width for all images in .page-resources */
    .page-resources img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

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

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

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

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