/* style/resources.css */

/* General page styling */
.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 for fixed header */
}

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

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

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
}

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

.page-resources__hero-cta-button,
.page-resources__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-cta-button:hover,
.page-resources__cta-button:hover {
    background-color: #e0a53a; /* Slightly darker on hover */
    transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.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;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-content {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
}

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

.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 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

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

.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: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to grow */
}

.page-resources__read-more-button {
    display: inline-block;
    background-color: #000000; /* Black button */
    color: #FFFFFF; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start; /* Align button to start of content */
}

.page-resources__read-more-button:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Introduction and Explore More Sections */
.page-resources__introduction-section,
.page-resources__explore-more-section {
    padding: 60px 0;
}

.page-resources__explore-more-section {
    background-color: #F0F0F0;
    text-align: center;
}

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

.page-resources__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
    cursor: pointer; /* Indicate it's clickable */
}

.page-resources__faq-question.active {
    color: #FCBC45; /* Highlight active question */
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #444444;
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 10px; /* Space between question and answer */
}

.page-resources__faq-answer a {
    color: #FCBC45; /* Link color */
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__article-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-resources__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-button,
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 200px; /* Adjust image height for smaller screens */
    }
    .page-resources__card-content {
        padding: 20px;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    /* CRITICAL: Mobile content image overflow prevention */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no content causes horizontal scroll */
    .page-resources {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.5em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.4em;
    }
    .page-resources__article-title {
        font-size: 1.1em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        font-size: 0.9em;
    }
}