.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* White background as per rules */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    color: #000000; /* Text color against a potentially varied hero image */
    background-color: #FFFFFF; /* Default background */
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-faq__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

.page-faq__hero-actions {
    margin-bottom: 40px;
}

.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    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: 150px; /* Ensure buttons are not too small */
}

.page-faq__button--register {
    background-color: #FFFFFF; /* Custom color for Register */
    color: #000000;
    border: 2px solid #000000;
}

.page-faq__button--register:hover {
    background-color: #FCBC45;
    color: #FFFFFF;
    border-color: #FCBC45;
}

.page-faq__button--login {
    background-color: #FCBC45; /* Custom color for Login */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
    background-color: #000000;
    color: #FCBC45;
    border-color: #000000;
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

/* Accordion Section */
.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #000000;
}

.page-faq__accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-faq__accordion-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-faq__accordion-item:hover {
    transform: translateY(-5px);
}

.page-faq__accordion-header {
    padding: 20px;
    background-color: #000000;
    color: #FFFFFF;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-faq__accordion-item.active .page-faq__accordion-content {
    max-height: 500px; /* Adjust as needed */
    padding: 20px;
}

.page-faq__question {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000000;
}

.page-faq__answer {
    margin-bottom: 15px;
    color: #333333;
}

.page-faq__answer a {
    color: #FCBC45;
    text-decoration: none;
}

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

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-faq__cta-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

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

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

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

.page-faq__button--contact:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.page-faq__cta-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

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

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

    .page-faq__button {
        display: block;
        margin: 15px auto;
        width: 80%;
    }

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

    .page-faq__accordion-grid {
        grid-template-columns: 1fr;
    }

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

    .page-faq__cta-layout {
        flex-direction: column;
    }

    /* Mobile image constraint */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

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

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

    .page-faq__button {
        width: 90%;
        font-size: 1em;
        padding: 10px 20px;
    }
}