/* style/resources.css */
.page-resources {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    background-color: #000000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-resources__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

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

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

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

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

.page-resources__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
    transform: translateY(-2px);
}

.page-resources__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

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

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

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

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

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

.page-resources__article-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    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: 250px;
    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.5em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-resources__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.page-resources__read-more-button:hover {
    background-color: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-resources__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-resources__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__pagination-link--active {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}

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

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FCBC45;
    margin-bottom: 25px;
}

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

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

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

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

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

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

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

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

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

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

    .page-resources__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .page-resources__articles-section {
        padding: 40px 0;
    }

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

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

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

    .page-resources__article-image {
        height: 200px;
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }

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

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

    .page-resources__cta-section {
        padding: 60px 0;
    }

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

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

    .page-resources__cta-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    /* Ensure all content area images are responsive and not too small */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__article-card img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min-width */
        min-height: 200px; /* Enforce min-height */
    }
}

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

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

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

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