.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-faq__hero-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

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

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for title, good contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2f;
    transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2; /* Subtle background image */
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-faq__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-faq__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlight title */
}

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

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #017439; /* Brand primary color for questions */
    font-weight: bold;
    font-size: 1.15em;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq__faq-question h3 {
    margin: 0;
    color: #017439;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: #C30808; /* Toggle color when active */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Dark text for light background */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Ensure content expands fully */
    padding: 20px 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.page-faq__faq-answer ol li {
    list-style-type: decimal;
}

.page-faq__faq-answer strong {
    color: #017439;
}

.page-faq__faq-answer a {
    color: #C30808; /* Link color for internal links */
    text-decoration: underline;
}

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

.page-faq__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-section {
    background-color: #FFFFFF; /* Auxiliary color or light background */
    color: #333333;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.page-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #017439;
}

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

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

/* --- Responsive styles --- */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__hero-section {
        padding: 40px 15px;
    }
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 1em;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__faq-answer ul,
    .page-faq__faq-answer ol {
        padding-left: 20px;
    }
}