/* style/resources-faq.css */

/* Base Styles */
.page-resources-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources-faq__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
}

.page-resources-faq__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(0, 0, 0, 0.6)); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-resources-faq__hero-section .page-resources-faq__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-resources-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-faq__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-resources-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap for buttons */
    word-wrap: break-word; /* Allow text wrap for buttons */
    text-align: center;
}

.page-resources-faq__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #ffffff; /* Adjusted for WCAG AA contrast on #C30808 background */
    border: 2px solid #C30808;
}

.page-resources-faq__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-resources-faq__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #C30808;
}

/* Content Area */
.page-resources-faq__content-area {
    padding: 60px 0;
    background-color: #121212; /* Matches body background, ensures consistent dark theme */
    color: #ffffff; /* Light text for dark background */
}

.page-resources-faq__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-faq__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-faq__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources-faq__list {
    list-style: disc inside;
    margin-bottom: 15px;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-resources-faq__list-item {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.page-resources-faq__list-item strong {
    color: #ffffff; /* Ensure strong text is clearly visible */
}

.page-resources-faq__list--ordered {
    list-style: decimal inside;
}

.page-resources-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ List */
.page-resources-faq__faq-list {
    margin-top: 50px;
}

.page-resources-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-faq__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    user-select: none;
}

.page-resources-faq__faq-title {
    margin: 0;
    font-size: 1.2em; /* Ensure title within question is readable */
    color: #ffffff;
}

.page-resources-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px 25px;
}

.page-resources-faq__faq-answer .page-resources-faq__paragraph,
.page-resources-faq__faq-answer .page-resources-faq__list {
    font-size: 1em; /* Slightly smaller in answer for hierarchy */
    margin-bottom: 10px;
}
.page-resources-faq__faq-answer .page-resources-faq__list-item {
    font-size: 1em;
}

/* CTA Section at bottom */
.page-resources-faq__cta-section {
    background-color: #017439; /* Brand color */
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 60px;
    color: #ffffff;
}

.page-resources-faq__cta-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Links within content */
.page-resources-faq__content-area a {
    color: #00bfff; /* A distinct, high-contrast color for links */
    text-decoration: underline;
}

.page-resources-faq__content-area a:hover {
    color: #008fcc;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-faq__main-title {
        font-size: 2.8em;
    }
    .page-resources-faq__section-title {
        font-size: 2em;
    }
    .page-resources-faq__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-faq__hero-section {
        padding-bottom: 60px;
    }
    .page-resources-faq__hero-section .page-resources-faq__container {
        padding: 0 15px;
    }
    .page-resources-faq__main-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-resources-faq__intro-text {
        font-size: 1em;
    }
    .page-resources-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-faq__content-area {
        padding: 40px 0;
    }
    .page-resources-faq__container {
        padding: 0 15px;
    }
    .page-resources-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-faq__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources-faq__paragraph,
    .page-resources-faq__list-item {
        font-size: 1em;
    }
    .page-resources-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources-faq__faq-title {
        font-size: 1.1em;
    }
    .page-resources-faq__faq-answer {
        padding: 0 20px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-resources-faq__cta-section {
        padding: 40px 15px;
    }
    .page-resources-faq__cta-title {
        font-size: 1.8em;
    }
    .page-resources-faq__cta-description {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Mobile container responsiveness */
    .page-resources-faq__section,
    .page-resources-faq__card,
    .page-resources-faq__container,
    .page-resources-faq__hero-section,
    .page-resources-faq__content-area,
    .page-resources-faq__faq-item,
    .page-resources-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    /* Specific padding for content containers to prevent overflow */
    .page-resources-faq__hero-section .page-resources-faq__container,
    .page-resources-faq__content-area .page-resources-faq__container,
    .page-resources-faq__cta-section .page-resources-faq__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-resources-faq img {
    filter: none !important;
}

/* Ensure content area images are not too small */
.page-resources-faq__content-area img {
    min-width: 200px;
    min-height: 200px;
}