/* style/resources.css */
/* Main page container styling */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text on light background as per body background analysis */
    line-height: 1.6;
    background-color: #f8f8f8; /* Slightly off-white background for the main content area */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #ffffff; /* Light text for hero section */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Ensure hero section has a minimum height */
    padding: 40px 20px;
}

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

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
    padding: 30px;
    border-radius: 8px;
}

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #E0B342; /* Gold button */
    color: #0A2463; /* Dark blue text */
    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;
    border: none;
    cursor: pointer;
}

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

/* Content Area */
.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* White background for content block */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: -60px; /* Overlap with hero section slightly */
    position: relative;
    z-index: 2;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Main dark blue color */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-resources__sub-section-title {
    font-size: 1.8em;
    color: #E0B342; /* Gold accent color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #E0B342; /* Gold accent */
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444444;
    border-radius: 4px;
}

.page-resources__list-item strong {
    color: #0A2463;
}

.page-resources__link {
    color: #0A2463; /* Dark blue for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__link:hover {
    color: #E0B342; /* Gold on hover */
    text-decoration: underline;
}

/* Articles Grid */
.page-resources__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
    font-size: 1.4em;
    color: #0A2463;
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: #0A2463;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    color: #E0B342;
    text-decoration: underline;
}

.page-resources__card-summary {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allows summary to take available space */
}

.page-resources__card-button {
    display: inline-block;
    background-color: #E0B342;
    color: #0A2463;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start */
}

.page-resources__card-button:hover {
    background-color: #f5c862;
}

/* Call to Action Sections */
.page-resources__cta-section {
    background-color: #0A2463; /* Dark blue background */
    color: #ffffff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 50px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources__cta-text {
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: bold;
    color: #f0f0f0;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #E0B342; /* Gold button */
    color: #0A2463; /* Dark blue text */
    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;
    border: none;
    cursor: pointer;
}

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

.page-resources__button-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #0A2463;
    color: #0A2463;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__button-secondary:hover {
    background-color: #0A2463;
    color: #ffffff;
}

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

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

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

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

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

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

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

    .page-resources__content-area {
        padding: 30px 15px;
        margin-top: -40px;
    }

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

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

    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__card-summary {
        font-size: 0.95em;
    }

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

    .page-resources__card-image {
        height: 200px; /* Adjust height for smaller screens */
    }

    .page-resources__cta-text {
        font-size: 1.2em;
    }

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

    /* Ensure images in content area are responsive and not smaller than 200px */
    .page-resources__content-area img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Minimum width for content images */
        min-height: 200px; /* Minimum height for content images */
        object-fit: cover;
    }

    .page-resources__card-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Minimum width for card images */
        min-height: 200px; /* Minimum height for card images */
        object-fit: cover;
    }
}

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

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

    .page-resources__hero-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

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

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

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

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