/* style/resources.css */
.page-resources {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #003366; /* Primary brand color */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFCC00; /* Secondary brand color */
    color: #003366; /* Primary brand color for contrast */
    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 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

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

.page-resources__articles-section,
.page-resources__deep-content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #003366;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFCC00;
    border-radius: 2px;
}

.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: 12px;
    box-shadow: 0 8px 25px 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(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

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

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

.page-resources__article-title a:hover {
    color: #FFCC00;
}

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

.page-resources__read-more-button {
    display: inline-block;
    background-color: #003366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__read-more-button:hover {
    background-color: #004488;
}

.page-resources__text-block {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #444444;
    text-align: justify;
}

.page-resources__text-block p {
    margin-bottom: 20px;
}

.page-resources__feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.page-resources__feature-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources__feature-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
}

.page-resources__feature-title {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 15px;
}

.page-resources__feature-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

.page-resources__cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background-color: #FFCC00;
    color: #003366;
    padding: 18px 35px;
    border-radius: 10px;
    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.2);
}

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

/* Responsive Design */
@media (min-width: 769px) {
    .page-resources__feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-resources__feature-card {
        text-align: left;
        align-items: flex-start;
    }

    .page-resources__feature-image {
        max-width: 100%;
    }
}

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

    .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__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__articles-section,
    .page-resources__deep-content-section {
        padding: 40px 15px;
    }

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

    .page-resources__article-image-wrapper {
        height: 180px;
    }

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

    .page-resources__read-more-button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .page-resources__text-block {
        font-size: 0.95em;
    }

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

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

    /* Ensure content area images are responsive and don't overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-button {
        font-size: 1em;
        padding: 15px 25px;
    }
}