/* style/resources.css */

/* Base Styles for .page-resources */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensures consistency with body background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text for hero content */
    text-align: center;
    padding: 0;
    min-height: 500px; /* Minimum height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.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;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Assuming shared.css handles body padding for header offset */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay for readability */
    border-radius: 8px;
    margin: 60px 20px; /* Add margin to prevent content from touching edges */
}

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

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

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

/* General Button Styling */
.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;
    cursor: pointer;
    font-size: 1em;
    border: none;
}

.page-resources__btn--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
}

.page-resources__btn--register:hover {
    background-color: #e0e0e0;
}

.page-resources__btn--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
}

.page-resources__btn--login:hover {
    background-color: #e6a73a;
}

.page-resources__btn--read-more {
    background-color: #000000; /* Primary color for read more */
    color: #FFFFFF;
}

.page-resources__btn--read-more:hover {
    background-color: #333333;
}

.page-resources__btn--explore {
    background-color: #FCBC45; /* Login button color for explore */
    color: #000000;
}

.page-resources__btn--explore:hover {
    background-color: #e6a73a;
}


/* Content Area */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, will be adjusted by object-fit */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__article-content {
    padding: 25px;
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
    font-weight: bold;
}

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

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

.page-resources__article-summary {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    min-height: 100px; /* Ensure consistent height for summaries */
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #f8f8f8; /* Light grey background for contrast */
    padding: 60px 0;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #555555;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #000000; /* Dark background for strong CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

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

.page-resources__cta-section .page-resources__section-description {
    color: #e0e0e0;
    margin-bottom: 30px;
}

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

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

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

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

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

@media (max-width: 768px) {
    /* Mobile content area images must use max-width: 100%; height: auto; */
    .page-resources__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-resources__article-image {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no horizontal scroll */
    .page-resources {
        overflow-x: hidden;
    }

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

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

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

    .page-resources__btn {
        width: 100%;
        max-width: 250px;
    }

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

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

    .page-resources__article-summary {
        min-height: auto; /* Allow height to adjust on mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-content {
        margin: 30px 15px;
        padding: 25px 15px;
    }

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

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

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

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

    .page-resources__article-content {
        padding: 15px;
    }

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

    .page-resources__faq-question {
        font-size: 1.1em;
    }
}