/* style/resources.css */

.page-resources {
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    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: 0;
    background-color: #000000; /* Ensure a dark background for hero content if image doesn't cover */
}

.page-resources__hero-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 8px;
    max-width: 800px;
}

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

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

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

.page-resources__button {
    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;
    white-space: nowrap;
}

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

.page-resources__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

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

.page-resources__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

/* Articles Section */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

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

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

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

.page-resources__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-resources__article-title a {
    color: #FCBC45; /* Highlight article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources__article-category {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #e0e0e0;
    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;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
    font-size: 1.4em;
    color: #FCBC45;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-resources__faq-question::after {
    content: '+';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding-top: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    padding-top: 15px;
}

.page-resources__faq-answer a {
    color: #FCBC45;
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: #FFFFFF;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

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

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

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

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

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

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

    .page-resources__button {
        width: 100%;
    }

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

    .page-resources__section-description,
    .page-resources__cta-description {
        font-size: 0.9em;
    }

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

    .page-resources__article-image {
        height: 200px;
    }

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

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

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

    /* Ensure all images in content area are responsive and not smaller than 200px */
    .page-resources img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

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

    .page-resources__hero-content {
        padding: 20px 15px;
    }

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

    .page-resources__articles-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 30px 0;
    }
}