/* style/faq.css */

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

.page-faq__hero-section {
    background-color: #000000; /* Main color for hero background */
    color: #FFFFFF; /* White text for dark background */
    padding: var(--header-offset, 120px) 20px 60px; /* Adjust padding-top for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login button color for emphasis */
}

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

.page-faq__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

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

.page-faq__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

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

.page-faq__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
    filter: brightness(0.6); /* Further darken the image */
}

.page-faq__accordion-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

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

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

.page-faq__section-intro {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
}

.page-faq__accordion-list {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

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

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

.page-faq__accordion-header[aria-expanded="true"] {
    background-color: #e0e0e0;
    color: #000000;
}

.page-faq__accordion-question {
    margin: 0;
    font-size: 1em; /* Adjusted to fit within <h3> and not be overly large */
}

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

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon {
    transform: rotate(45deg);
}

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

.page-faq__accordion-content p {
    padding: 15px 0;
    line-height: 1.7;
    font-size: 1em;
    color: #444444;
}

.page-faq__accordion-content p:last-child {
    padding-bottom: 25px;
}

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

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

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

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

.page-faq__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-faq__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-faq__button--promos:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
        padding-bottom: 40px;
    }
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-actions {
        flex-direction: column;
    }
    .page-faq__button {
        width: 80%;
        max-width: 300px;
    }
    .page-faq__accordion-section {
        padding: 60px 15px;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
    }
    .page-faq__accordion-header {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-faq__accordion-question {
        font-size: 1.1em;
    }
    .page-faq__accordion-content {
        padding: 0 20px;
    }
    .page-faq__accordion-content p {
        padding: 10px 0;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 0.95em;
    }
    .page-faq__cta-actions {
        flex-direction: column;
    }

    /* Ensure content images are responsive and not too small */
    .page-faq img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size even on mobile for content images */
        min-height: 200px;
        object-fit: contain; /* Or cover, depending on desired effect */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__cta-title {
        font-size: 1.6em;
    }
    .page-faq__button {
        width: 100%;
        max-width: 280px;
    }
}

/* Ensure images in content sections are not affected by filter and meet minimum size */
.page-faq__accordion-content img, .page-faq__cta-section img {
    filter: none; /* Absolutely no filter on images */
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural width or be constrained by parent */
    height: auto;
    max-width: 100%; /* Ensure responsiveness */
    display: block; /* Prevent inline spacing issues */
    margin: 20px auto; /* Center content images */
}

/* Specific styling for hero image to ensure filter is applied only to it and not general img */
.page-faq__hero-image {
    filter: brightness(0.6); /* This is allowed for background-like images */
}

/* No filter on other images */
.page-faq__container img {
    filter: none;
}