/* style/resources.css */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    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-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    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-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.page-resources__btn--primary {
    background-color: #FFD700;
    color: #1A1A2E;
    border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A1A2E;
}

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

.page-resources__articles-section {
    padding: 60px 0;
    background-color: #1A1A2E;
}

.page-resources__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 25px;
}

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

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

.page-resources__article-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-10px);
}

.page-resources__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #FFD700;
}

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

.page-resources__article-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-resources__article-summary {
    font-size: 0.95em;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn--link {
    background-color: #FFD700;
    color: #1A1A2E;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    align-self: flex-start;
}

.page-resources__btn--link:hover {
    background-color: #e6c200;
}

.page-resources__closing-statement {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 900px;
    margin: 60px auto 0 auto;
    text-align: justify;
    color: #e0e0e0;
}

.page-resources__cta-section {
    background-color: #000;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding: 40px 20px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-resources__btn {
        padding: 10px 20px;
        width: 100%;
    }

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

    .page-resources__section-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-image {
        height: 200px;
    }

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

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

    .page-resources__closing-statement {
        font-size: 1em;
    }

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

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

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

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

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