/* style/resources.css */
.page-resources {
    background-color: #FFFFFF; /* Explicitly set as per instructions */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Space below hero content */
}

.page-resources__hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-resources__hero-content {
    max-width: 800px;
    margin-top: -150px; /* Overlap with image for visual interest */
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
    color: #FFFFFF; /* Light text on dark overlay */
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

.page-resources__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, transform 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
}

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

.page-resources__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

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

.page-resources__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

/* Articles Section */
.page-resources__articles-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Slightly off-white for contrast */
}

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

.page-resources__section-description {
    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: #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 {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.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;
    color: #000000;
    flex-grow: 0;
}

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

.page-resources__article-title a:hover {
    color: #FCBC45; /* Login color for hover */
}

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

.page-resources__button--read-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    align-self: flex-start;
}

.page-resources__button--read-more:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
}

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

.page-resources__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-resources__cta-image {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Match HTML width */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__cta-title {
    font-size: 2.5em;
    color: #FCBC45; /* Login color for emphasis */
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

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

.page-resources__button--claim-bonus:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

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

.page-resources__button--sign-up:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* About Section */
.page-resources__about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-resources__about-actions {
    text-align: center;
    margin-top: 40px;
}

.page-resources__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
}

.page-resources__button--learn-more:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
}

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

@media (max-width: 768px) {
    .page-resources__hero-content {
        margin-top: -100px;
        padding: 30px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions,
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__articles-section,
    .page-resources__cta-section,
    .page-resources__about-section {
        padding: 50px 0;
    }

    /* Mobile content area images must use max-width: 100%; height: auto; */
    .page-resources__hero-image,
    .page-resources__article-image,
    .page-resources__cta-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-content {
        margin-top: -70px;
        padding: 20px;
    }
    .page-resources__hero-title {
        font-size: 1.5em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__cta-title {
        font-size: 1.5em;
    }
    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}