/* style/resources.css */

/* Base styles for the resources page content */
.page-resources {
    background-color: #FFFFFF; /* Light background for the page content */
    color: #333333; /* Dark text for contrast on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    text-align: center;
    padding: 60px 20px 80px; /* Adjust padding for visual balance */
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-resources__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure text is above image */
}

.page-resources__hero-title {
    font-size: 2.8em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire hero section */
    display: block;
    filter: brightness(0.6); /* Slightly darken image for text readability, not changing color */
}

.page-resources__download-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for download CTA */
    color: #000000; /* Dark text for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
    border: 2px solid #FCBC45;
}

.page-resources__download-button:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* Articles Section */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Slightly different background for section separation */
}

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

.page-resources__section-title,
.page-resources__deep-content-title,
.page-resources__deep-content-subtitle,
.page-resources__cta-title {
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

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

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

.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: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FCBC45;
}

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

.page-resources__card-button {
    display: inline-block;
    background-color: #000000; /* Primary color for card buttons */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

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

/* Deep Content Section */
.page-resources__deep-content-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-resources__deep-content-title {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.page-resources__deep-content-subtitle {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #000000;
    text-align: left;
}

.page-resources__deep-content-paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

.page-resources__deep-content-paragraph a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources__deep-content-paragraph a:hover {
    color: #FCBC45;
}

/* Call to Action Section */
.page-resources__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f0f0f0; /* Light grey background for CTA */
    border-radius: 10px;
    margin-top: 60px;
}

.page-resources__cta-title {
    font-size: 2.2em;
    margin-bottom: 25px;
}

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

.page-resources__cta-button {
    margin: 0 10px 20px; /* Spacing between buttons and bottom margin */
    min-width: 200px;
}

.page-resources__register-button {
    display: inline-block;
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #000000; /* Black border for register button */
}

.page-resources__register-button:hover {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.4em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__deep-content-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 40px 15px 60px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__download-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__articles-section {
        padding: 40px 0;
    }
    .page-resources__content-wrapper {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-resources__card-image {
        height: 200px; /* Slightly smaller image height on mobile */
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__card-summary {
        font-size: 0.9em;
    }

    .page-resources__deep-content-section {
        padding: 50px 0;
    }
    .page-resources__deep-content-title {
        font-size: 2em;
    }
    .page-resources__deep-content-subtitle {
        font-size: 1.5em;
    }
    .page-resources__deep-content-paragraph {
        font-size: 0.95em;
    }

    .page-resources__cta-section {
        padding: 40px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-button {
        display: block; /* Stack buttons on mobile */
        margin: 0 auto 15px;
        width: 100%;
        max-width: 280px; /* Limit button width */
    }

    /* Ensure content images are responsive and don't overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__hero-image img {
        width: 100%;
        height: 100%; /* Keep height 100% for hero background */
    }
    .page-resources__card-image {
        max-width: 100%;
        height: auto; /* Allow height to adjust while maintaining ratio */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__deep-content-title {
        font-size: 1.8em;
    }
    .page-resources__deep-content-subtitle {
        font-size: 1.3em;
    }
}

/* Content area images CSS dimensions lower bound check */
/* Ensure all images within .page-resources are at least 200px wide/high */
.page-resources__content-wrapper img {
    min-width: 200px; 
    min-height: 200px;
}
.page-resources__hero-image img {
    min-width: 200px;
    min-height: 200px;
}
/* No filter property for color change (brightness is for luminance, not color) */
.page-resources img {
    filter: none; 
}
.page-resources__hero-image img {
    filter: brightness(0.6); /* Allowed for readability */
}