/* style/resources.css */
.page-resources {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
    background-color: var(--secondary-color); /* Matches body background if needed, but shared.css sets body */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    padding: 80px 20px 40px; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    filter: brightness(0.4); /* Darken image for text readability */
    display: block;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for CTA */
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #e0a53a;
}

/* Intro Section */
.page-resources__intro-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

.page-resources__intro-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
}

.page-resources__intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
}

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

.page-resources__articles-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

.page-resources__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
}

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

.page-resources__article-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__article-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-link:hover {
    color: #FCBC45;
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take available space */
}

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

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

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

.page-resources__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources__deep-content-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-resources__sub-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #FCBC45;
    padding-left: 15px;
}

.page-resources__cta-wrapper {
    text-align: center;
    background-color: #000000;
    color: #FFFFFF;
    padding: 50px 30px;
    border-radius: 10px;
    margin-top: 60px;
}

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

.page-resources__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for CTA */
    color: #000000;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-resources__cta-button:hover {
    background-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__intro-title,
    .page-resources__articles-title,
    .page-resources__deep-content-title {
        font-size: 2.2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__cta-text {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* Mobile content area images must not overflow */
    .page-resources__hero-image,
    .page-resources__article-image {
        max-width: 100%;
        height: auto; /* Ensure images scale down */
    }

    .page-resources__hero-section {
        padding: 60px 15px 30px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-resources__intro-title,
    .page-resources__articles-title,
    .page-resources__deep-content-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__article-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .page-resources__article-image-wrapper {
        height: 200px; /* Smaller height for mobile cards */
    }

    .page-resources__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-resources__cta-wrapper {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .page-resources__cta-text {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__intro-title,
    .page-resources__articles-title,
    .page-resources__deep-content-title {
        font-size: 1.8em;
    }
    .page-resources__article-heading {
        font-size: 1.3em;
    }
    .page-resources__sub-title {
        font-size: 1.2em;
    }
}