.page-resources-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #1A202C; /* Dark brand color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-resources-faq__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-resources-faq__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary brand color for title */
    font-weight: bold;
    line-height: 1.2;
}

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

.page-resources-faq__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary,
.page-resources-faq__btn-link {
    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;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-resources-faq__btn-primary {
    background-color: #FFD700; /* Gold/yellow for primary action */
    color: #1A202C; /* Dark text for light background */
    border: 2px solid #FFD700;
}

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

.page-resources-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold/yellow text for secondary action */
    border: 2px solid #FFD700;
}

.page-resources-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-resources-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-resources-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: brightness(0.7); /* Darken image slightly */
}

.page-resources-faq__introduction-section,
.page-resources-faq__faq-section,
.page-resources-faq__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-faq__dark-section {
    background-color: #1A202C; /* Dark background for sections */
    color: #ffffff;
}

.page-resources-faq__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources-faq__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: bold;
}

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

.page-resources-faq__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-faq__image-bottom {
    margin-top: 60px;
}

.page-resources-faq__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-resources-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.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: #FFD700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-question {
    border-bottom: none;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-resources-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.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-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-resources-faq__faq-answer p {
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-faq__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-resources-faq__faq-answer a:hover {
    color: #e6c200;
}

.page-resources-faq__cta-section {
    background-color: #1A202C;
    color: #ffffff;
    padding: 80px 20px;
}

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

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

.page-resources-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-faq__hero-title {
        font-size: 2.8em;
    }
    .page-resources-faq__section-title {
        font-size: 2.2em;
    }
    .page-resources-faq__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources-faq {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-resources-faq__hero-section {
        padding: 60px 15px;
    }

    .page-resources-faq__hero-title {
        font-size: 2.2em;
    }

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

    .page-resources-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary,
    .page-resources-faq__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-resources-faq__introduction-section,
    .page-resources-faq__faq-section,
    .page-resources-faq__cta-section {
        padding: 40px 15px;
    }

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

    .page-resources-faq__section-description {
        font-size: 0.95em;
    }

    .page-resources-faq__faq-question {
        padding: 15px 20px;
        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 15px;
    }

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

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

    /* Images and containers responsiveness for mobile */
    .page-resources-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-faq__hero-image-wrapper,
    .page-resources-faq__container,
    .page-resources-faq__introduction-section,
    .page-resources-faq__faq-section,
    .page-resources-faq__cta-section,
    .page-resources-faq__hero-content,
    .page-resources-faq__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
    }
    .page-resources-faq__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-faq__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}