/* style/faq.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --background-white: #FFFFFF;
    --black: #000000;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-white); /* Assuming shared.css sets a light body background */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-faq__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-faq__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-faq__light-bg {
    background-color: var(--background-white);
    color: var(--text-dark);
}

.page-faq__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-faq__hero-section .page-faq__container {
    position: relative;
    z-index: 2;
}

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-faq__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-faq__accordion-section {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-faq__faq-item {
    background-color: var(--background-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-dark);
    border-top: 1px solid #eee;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-faq__inline-link:hover {
    text-decoration: underline;
}

.page-faq__small-button {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-faq__contact-promo {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-faq__contact-promo .page-faq__section-title {
    color: var(--text-light);
}

.page-faq__promo-text {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 400px;
    }

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

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

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

    .page-faq__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto;
    }

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

    .page-faq__accordion-section, .page-faq__contact-promo {
        padding: 40px 0;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-faq__faq-answer {
        padding: 15px 20px;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image responsiveness for content area */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__accordion-wrapper,
    .page-faq__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__faq-question {
        font-size: 1em;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
    }
}