.page-faq {
    color: #333333; /* Dark text for light body background */
}

.page-faq__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-faq__hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Constrain container width */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #F0F0F0;
}

.page-faq__hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

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

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

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

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

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

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

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-faq__faq-list {
    display: grid;
    gap: 30px;
}

.page-faq__faq-category {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__category-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 25px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-faq__faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 20px;
}

.page-faq__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-faq__question-button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    color: #000000;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

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

.page-faq__question-button.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation for minus */
}

.page-faq__question-button:hover {
    color: #FCBC45;
}

.page-faq__answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-left: 20px;
    padding-right: 20px;
}

.page-faq__answer-content.active {
    max-height: 500px; /* Adjust based on expected content length */
    padding-top: 10px;
    padding-bottom: 10px;
}

.page-faq__answer-content p {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 15px;
}

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

.page-faq__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
    background-color: #FCBC45;
    color: #000000;
    border: 1px solid #FCBC45;
}

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

.page-faq__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 60px 30px;
    text-align: center;
    border-radius: 12px;
    margin-top: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__image--cta {
    max-width: 600px;
    margin: 0 auto 30px;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #F0F0F0;
}

.page-faq__button--large {
    padding: 15px 35px;
    font-size: 1.1em;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__category-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px);
    }
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__category-title {
        font-size: 1.4em;
    }
    .page-faq__question-button {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-faq__answer-content p {
        font-size: 0.95em;
    }
    /* Mobile image constraint */
    .page-faq img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__button {
        width: 90%;
    }
    .page-faq__content-area {
        padding: 30px 10px;
    }
    .page-faq__faq-category {
        padding: 20px;
    }
    .page-faq__question-button {
        font-size: 0.95em;
    }
    .page-faq__answer-content p {
        font-size: 0.9em;
    }
    .page-faq__button--large {
        padding: 12px 25px;
        font-size: 1em;
    }
}