/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    color: #333333; /* Dark text for light body background #F8F8F8 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    text-align: center;
    color: #ffffff; /* White text for dark hero background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    overflow: hidden;
    min-height: 450px; /* Ensure hero section has a minimum height */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5); /* Darken image slightly for text readability, NO COLOR CHANGE */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
}

.page-resources__hero-button--register {
    background-color: #FFD700; /* Gold button */
    color: #0A192F; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

.page-resources__hero-button--login {
    background-color: #0A192F; /* Dark blue button */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

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

/* Section Titles and Descriptions */
.page-resources__section-title {
    font-size: 2.5em;
    color: #0A192F;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

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

.page-resources__sub-section-title {
    font-size: 2em;
    color: #0A192F;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

/* Article Grid */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #f0f0f0; /* Light background for article cards */
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0A192F;
}

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

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

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

.page-resources__article-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #0A192F;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

/* Deep Dive Section */
.page-resources__deep-dive-section {
    padding: 60px 0;
}

.page-resources__deep-dive-section p {
    margin-bottom: 20px;
    color: #444444;
}

.page-resources__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    color: #444444;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0A192F;
    color: #FFD700;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* CTA Banner */
.page-resources__cta-banner {
    position: relative;
    background-color: #0A192F; /* Dark blue background for banner */
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
}

.page-resources__cta-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-resources__cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.page-resources__cta-banner-title {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__cta-banner-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.page-resources__cta-banner-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700;
    color: #0A192F;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
}

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


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

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

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

    .page-resources__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-resources__cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .page-resources__cta-banner-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

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

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px); /* Mobile padding for header offset */
    }

    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 350px;
    }

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

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

    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__hero-button {
        width: 100%;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }

    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

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

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

    .page-resources__article-summary {
        font-size: 0.9em;
    }

    .page-resources__cta-button {
        width: 100%;
        margin-right: 0;
    }

    .page-resources__cta-banner {
        padding: 25px;
    }

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

    .page-resources__cta-banner-description {
        font-size: 0.95em;
    }

    .page-resources__cta-banner-button {
        width: 100%;
    }

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

    /* Ensure all content area images are at least 200px wide for mobile if they are not already */
    .page-resources__article-image {
        min-width: 200px; /* Enforce minimum width for article images on mobile */
        height: auto; /* Allow height to adjust */
    }

    .page-resources__cta-banner-image {
        min-width: 200px; /* Enforce minimum width for banner image on mobile */
        height: auto; /* Allow height to adjust */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__sub-section-title {
        font-size: 1.3em;
    }
    .page-resources__hero-section {
        padding: 40px 10px;
        min-height: 300px;
    }
    .page-resources__container {
        padding: 0 10px;
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
}