.page-faq {
    background-color: #FFFFFF; /* Default background for the main content area */
    color: #333333; /* Default text color */
}

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: #26A9E0; /* Main color for hero background */
    color: #FFFFFF;
    text-align: center;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-faq__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-faq__contact-btn {
    display: inline-block;
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 48px;
    line-height: 24px; /* Adjust line-height for vertical centering */
}

.page-faq__contact-btn:hover {
    background-color: #d16b06;
}

.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #F7F7F7; /* Light background for contrast */
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Main color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-faq__accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #FFFFFF;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-faq__accordion-header[aria-expanded="true"] {
    background-color: #E0F7FA; /* Lighter main color */
    color: #26A9E0;
}

.page-faq__question-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: inherit; /* Inherit color from button */
}

.page-faq__accordion-icon {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #26A9E0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 12px;
    height: 2px;
}

.page-faq__accordion-icon::after {
    width: 2px;
    height: 12px;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg); /* Rotate to hide vertical bar for 'minus' effect */
    opacity: 0; /* Hide vertical bar */
}

.page-faq__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px; /* Padding for content when expanded */
}

.page-faq__accordion-content p {
    padding-bottom: 15px;
    line-height: 1.6;
    color: #555555;
}

.page-faq__accordion-content .page-faq__link-inline {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 500;
    margin-right: 15px;
    margin-bottom: 15px; /* For multiple links */
    transition: color 0.3s ease;
}

.page-faq__accordion-content .page-faq__link-inline:hover {
    text-decoration: underline;
    color: #1a78a1;
}

/* Expanded state for content */
.page-faq__accordion-item.is-expanded .page-faq__accordion-content {
    /* max-height will be set by JS */
    padding-top: 15px;
    padding-bottom: 15px;
}

.page-faq__contact-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Main color for contact section */
    color: #FFFFFF;
    text-align: center;
}

.page-faq__contact-section .page-faq__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-faq__contact-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__contact-btn--secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    margin-bottom: 30px;
}

.page-faq__contact-btn--secondary:hover {
    background-color: #e0e0e0;
    color: #1a78a1;
}

.page-faq__contact-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 30px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

    .page-faq__contact-btn {
        padding: 10px 20px;
        font-size: 0.9em;
        min-width: unset;
        min-height: unset;
    }

    .page-faq__accordion-section {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

    .page-faq__question-title {
        font-size: 1.1em;
    }

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

    .page-faq__accordion-content p {
        font-size: 0.95em;
    }

    .page-faq__contact-section {
        padding: 40px 15px;
    }

    .page-faq__contact-text {
        font-size: 1em;
    }

    /* All images within .page-faq must be responsive and not cause overflow */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-faq__accordion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-faq__accordion-icon {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* Ensure color contrast for all text */
.page-faq__hero-content,
.page-faq__description,
.page-faq__main-title,
.page-faq__contact-btn {
    color: #FFFFFF; /* Ensures white text on blue background */
}

.page-faq__accordion-header,
.page-faq__question-title {
    color: #333333; /* Dark text on light background */
}
.page-faq__accordion-header[aria-expanded="true"] .page-faq__question-title {
    color: #26A9E0; /* Main color when expanded */
}

.page-faq__accordion-content p {
    color: #555555; /* Slightly lighter dark text */
}

.page-faq__contact-section .page-faq__section-title,
.page-faq__contact-text {
    color: #FFFFFF; /* White text on blue background */
}
.page-faq__contact-btn--secondary {
    color: #26A9E0; /* Blue text on white button */
}
.page-faq__contact-btn--secondary:hover {
    color: #1a78a1; /* Darker blue text on hover */
}