/* style/resources.css */
/* Ensure the main content area has top padding to clear the fixed header */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS if header is dynamic */
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set page background to white */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF; /* White text over dark/rich image */
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

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

.page-resources__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color 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: #FFFFFF;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    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: #FFD700; /* Gold hover */
}

/* Intro Section */
.page-resources__intro-section {
    padding: 60px 0;
    background-color: #F8F8F8; /* Light grey background for contrast */
    text-align: center;
}

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

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

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

.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: #F8F8F8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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 {
    width: 100%;
    height: 300px; /* Match HTML width/height aspect for CLS */
    object-fit: cover;
    display: block;
}

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

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #000000;
}

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

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

.page-resources__article-category {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

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

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

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

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #FCBC45;
}

.page-resources__cta-section .page-resources__section-text {
    color: #FFFFFF;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    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;
}

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

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

.page-resources__deep-dive-section .page-resources__section-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-resources__subsection-title {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-resources__subsection-text {
    font-size: 1.05em;
    color: #333333;
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__section-text {
        font-size: 1em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 250px; /* Adjust height for smaller screens, maintain min 200px */
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
    .page-resources__subsection-title {
        font-size: 1.6em;
    }

    /* Mobile content area images must be responsive */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        padding: 40px 0;
        min-height: 300px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.4em;
    }
    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}