/* style/faq.css */

.page-faq {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set page background */
}

/* Fixed header offset for main content */
.page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset to the first content section */
    padding-bottom: 60px;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

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

.page-faq__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-image {
    margin: 30px auto;
    max-width: 800px; /* Constrain hero image width */
    height: auto;
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover; /* Ensure image covers the area */
    min-width: 200px;
    min-height: 200px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-faq__button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-faq__button--register {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for accent background */
    border: 2px solid #FCBC45;
}

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

.page-faq__button--login {
    background-color: transparent;
    color: #FFFFFF; /* Register button text color */
    border: 2px solid #FFFFFF;
}

.page-faq__button--login:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

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

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

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

.page-faq__accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-faq__accordion-header h3 {
    margin: 0;
    color: inherit;
}

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

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #000000;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.page-faq__accordion-icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.page-faq__accordion-header.active .page-faq__accordion-icon::before {
    transform: translateX(-50%) rotate(90deg); /* Rotate to hide vertical bar */
}
.page-faq__accordion-header.active .page-faq__accordion-icon::after {
    transform: translateY(-50%) rotate(180deg); /* Keep horizontal bar */
}

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

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

.page-faq__accordion-content p {
    margin-bottom: 15px;
    color: #555555;
}

.page-faq__accordion-content p:last-child {
    margin-bottom: 0;
}

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

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

.page-faq__contact-cta-section {
    padding: 80px 20px;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
}

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

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

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

.page-faq__contact-image {
    margin: 30px auto;
    max-width: 600px; /* Constrain image width */
    height: auto;
}

.page-faq__contact-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
        padding-bottom: 40px;
    }

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

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-faq__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        padding: 10px 20px;
    }

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

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

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

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

    /* Ensure content images do not overflow */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}