/* style/resources.css */

/* Base styles for the resources page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white for content area */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

/* Ensure no horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-resources {
        overflow-x: hidden;
    }
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #ffffff; /* Light text for hero content over dark image/overlay */
    text-align: center;
}

.page-resources__hero-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.page-resources__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image slightly for text readability, NO color filters */
}

.page-resources__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #E0B700; /* Accent color for hero title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #E0B700; /* Accent color for button */
    color: #0A1931; /* Main color for button text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #f5d400; /* Lighter accent on hover */
}

/* Articles Section */
.page-resources__articles-section {
    padding: 60px 20px;
    background-color: #ffffff; /* White background for this section */
}

.page-resources__articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A1931; /* Main color for section titles */
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-resources__article-card {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__article-content {
    padding: 25px;
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0A1931; /* Main color for article titles */
}

.page-resources__article-title a {
    text-decoration: none;
    color: #0A1931; /* Main color for article title links */
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #E0B700; /* Accent color on hover */
}

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

.page-resources__article-link {
    display: inline-block;
    color: #E0B700; /* Accent color for "Read More" link */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.page-resources__article-link:hover {
    border-color: #E0B700;
    color: #f5d400;
}

/* Call to Action */
.page-resources__call-to-action {
    background-color: #0A1931; /* Main color for CTA background */
    color: #ffffff;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
}

.page-resources__call-to-action-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #E0B700; /* Accent color for CTA title */
}

.page-resources__call-to-action-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__call-to-action-button {
    display: inline-block;
    background-color: #E0B700; /* Accent color for CTA button */
    color: #0A1931; /* Main color for CTA button text */
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__call-to-action-button:hover {
    background-color: #f5d400;
    transform: translateY(-3px);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.page-resources__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #0A1931; /* Main color for FAQ questions */
    margin-bottom: 10px;
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #555555;
}

.page-resources__faq-answer a {
    color: #E0B700; /* Accent color for links in FAQ answers */
    text-decoration: none;
    font-weight: bold;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@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__article-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-content {
        max-width: 90%;
        padding: 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__articles-section,
    .page-resources__faq-section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 200px; /* Min height 200px for card images on mobile */
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__call-to-action-title {
        font-size: 1.8em;
    }
    .page-resources__call-to-action-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Ensure all content area images are at least 200px in display size and responsive */
    .page-resources img {
        min-width: 200px;
        min-height: 200px;
        width: auto;
        height: auto;
        max-width: 100%;
    }
    /* Specific override for article images to fill container while maintaining min-height */
    .page-resources__article-image {
        width: 100%;
        height: 200px; /* Ensure fixed height is at least 200px */
    }
}

/* Ensure no filter properties are used on images for color change */
.page-resources img {
    filter: none !important; /* Explicitly ensure no color filters */
}

/* Heading and paragraph colors for contrast */
.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
    color: #0A1931; /* Darker color for headings on light backgrounds */
}

.page-resources p {
    color: #333333; /* Standard dark text for paragraphs */
}