.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Body background is white */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #017439; /* Primary brand color for hero background */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    gap: 40px;
}

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

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for main title */
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 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;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-faq__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #FFFFFF;
}

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #FFFFFF;
}

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

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

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-faq__intro-text,
.page-faq__conclusion-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

/* Accordion */
.page-faq__accordion-container {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439; /* Primary brand color for question background */
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #005a2e;
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    font-size: 1em; /* Adjust font size relative to parent */
}

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

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

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

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding, will expand */
    background-color: #FFFFFF;
    color: #333333;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__image-content {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-faq__btn-contact {
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Conclusion Section */
.page-faq__conclusion-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-top: 50px;
}

.page-faq__cta-buttons--bottom {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__hero-section {
        flex-direction: column;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px);
        text-align: center;
    }

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

    .page-faq__description {
        font-size: 1em;
    }

    .page-faq__hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-faq__main-title {
        font-size: 2em;
    }

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

    .page-faq__intro-text,
    .page-faq__conclusion-text,
    .page-faq__description,
    .page-faq p,
    .page-faq li {
        font-size: 16px; /* Mobile font size increase */
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness (if any) */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsiveness */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-faq__faq-question,
    .page-faq__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__content-area,
    .page-faq__section-spacing,
    .page-faq__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}