/* style/resources.css */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
    background-color: #ffffff; /* Default light background */
    color: #333333; /* Dark text for readability on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-resources__hero-section {
    position: relative;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-bottom: 50px;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Fallback gradient for hero background */
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Burgundy text on gold */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-resources__introduction-heading,
.page-resources__articles-heading,
.page-resources__cta-heading,
.page-resources__footer-heading {
    font-size: 2.5em;
    color: #8B0000; /* Burgundy for headings */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__introduction-text,
.page-resources__articles-intro,
.page-resources__cta-text,
.page-resources__footer-text {
    font-size: 1.1em;
    color: #333333;
    text-align: justify;
    margin-bottom: 20px;
}

.page-resources__articles-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__article-card {
    background-color: #fdfdfd;
    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;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.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;
    font-weight: bold;
    color: #8B0000; /* Burgundy for article titles */
}

.page-resources__article-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

.page-resources__article-button {
    display: inline-block;
    background-color: #8B0000; /* Burgundy button */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

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

.page-resources__cta-section {
    background-color: #8B0000; /* Burgundy background for CTA */
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
}

.page-resources__cta-heading {
    color: #FFD700; /* Gold for CTA heading */
    font-size: 3em;
    margin-bottom: 25px;
}

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

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

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 35px;
    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 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #8B0000;
}

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

.page-resources__cta-button--secondary {
    background-color: #f0f0f0; /* Light secondary button */
    color: #8B0000;
}

.page-resources__cta-button--secondary:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

.page-resources__footer-content {
    padding: 60px 0;
    background-color: #f8f8f8;
}

@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__introduction-heading,
    .page-resources__articles-heading,
    .page-resources__cta-heading,
    .page-resources__footer-heading {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-container {
        padding: 80px 20px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__introduction-section,
    .page-resources__articles-section,
    .page-resources__cta-section,
    .page-resources__footer-content {
        padding: 40px 0;
    }
    .page-resources__introduction-heading,
    .page-resources__articles-heading,
    .page-resources__cta-heading,
    .page-resources__footer-heading {
        font-size: 1.8em;
    }
    .page-resources__introduction-text,
    .page-resources__articles-intro,
    .page-resources__cta-text,
    .page-resources__footer-text {
        font-size: 0.95em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 200px;
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
    .page-resources__cta-heading {
        font-size: 2.5em;
    }
    .page-resources__cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    /* Mobile content area image rules */
    .page-resources__article-image {
        max-width: 100%;
        height: auto;
    }
    .page-resources__content-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-container {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__cta-heading {
        font-size: 2em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 80%;
        max-width: 300px;
    }
}