/* style/resources.css */

.page-resources {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FCBC45; /* Highlight title with accent color */
    font-weight: bold;
}

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

.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    min-width: 150px;
    text-align: center;
}

.page-resources__hero-button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-resources__hero-button--register:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.page-resources__hero-button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__hero-button--login:hover {
    background-color: #e6a73c;
    color: #000000;
}

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

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources__section-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-resources__article-card {
    background-color: #f8f8f8;
    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 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.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-summary {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

/* Pagination */
.page-resources__pagination {
    text-align: center;
    margin-top: 50px;
}

.page-resources__pagination-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.page-resources__pagination-link--active:hover {
    background-color: #e6a73c;
}

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

.page-resources__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #FCBC45;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 0 15px;
    min-width: 200px;
    text-align: center;
}

.page-resources__cta-button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__cta-button--primary:hover {
    background-color: #e6a73c;
    border-color: #e6a73c;
}

.page-resources__cta-button--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-resources__cta-button--secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
    }

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

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

    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 0 5px 15px 5px;
        width: 100%;
        max-width: 280px;
    }

    .page-resources__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .page-resources__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-resources__article-image {
        height: auto;
        min-height: 200px; /* Ensure content images are never rendered smaller than 200px */
    }

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

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

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

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

    .page-resources__cta-button {
        padding: 15px 25px;
        font-size: 1em;
        margin: 0 5px 15px 5px;
        width: 100%;
        max-width: 280px;
    }

    .page-resources img {
        max-width: 100%;
        height: auto;
    }

    .page-resources {
        overflow-x: hidden;
    }
}

/* Ensure no image filters are applied */
.page-resources img {
    filter: none !important;
}