.page-faq {
    color: #333333; /* Dark text on default light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #000000; /* Main color for hero background */
    color: #FFFFFF; /* White text for contrast */
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-faq__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

.page-faq__hero-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    min-width: 150px;
    text-align: center;
}

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

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

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

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

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

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

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

.page-faq__accordion-group {
    margin-top: 30px;
}

.page-faq__accordion-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-header {
    background-color: #f9f9f9;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-faq__accordion-header.active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-faq__accordion-header:hover {
    background-color: #f0f0f0;
}

.page-faq__accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #FFFFFF;
    color: #333333;
}

.page-faq__accordion-content.active {
    max-height: 500px; /* Adjust based on expected content height */
    padding: 20px 25px;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-faq__accordion-content p:last-child {
    margin-bottom: 0;
}

.page-faq__accordion-content a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-faq__accordion-content a:hover {
    text-decoration: underline;
}

.page-faq__button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FCBC45;
}

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

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

.page-faq__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
    margin-top: 50px;
    border-radius: 10px;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    min-width: 180px;
    text-align: center;
}

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

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

.page-faq__cta-button--contact {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__cta-button--contact:hover {
    background-color: transparent;
    color: #FCBC45;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-faq__hero-title {
        font-size: 2em;
    }

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

    .page-faq__hero-button {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 250px;
    }

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

    .page-faq__accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-content {
        padding: 0 20px;
    }

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

    .page-faq__button {
        width: 100%;
        box-sizing: border-box;
    }

    .page-faq__image-inline {
        max-width: 100%;
        height: auto;
    }

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

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

    .page-faq__cta-button {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 280px;
    }

    /* Ensure all images within .page-faq are responsive and do not overflow */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

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

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

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