/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is usually white */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    text-align: center;
    color: #FFFFFF;
    background-color: #26A9E0; /* Primary brand color */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-faq__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-faq__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #FFFFFF;
}

.page-faq__hero-image {
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Call-to-Action Buttons in Hero */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-faq__subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555555;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #333333;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1em;
    color: #333333;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fdfdfd;
    color: #555555;
    font-size: 1.1em;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px !important;
}

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

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 10px;
    margin-right: 10px;
    font-size: 0.9em;
    padding: 10px 20px;
    display: inline-block;
}

/* Images within FAQ answers */
.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Additional Info Section */
.page-faq__additional-info {
    margin-top: 60px;
    padding: 40px;
    background-color: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* CTA Section at bottom */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
    box-sizing: border-box;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__hero-description,
    .page-faq__text-block,
    .page-faq__faq-question,
    .page-faq__faq-answer p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 80px 15px 40px !important;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-faq__content-area {
        padding: 40px 15px !important;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__subtitle {
        font-size: 1.5em;
    }
    .page-faq__faq-question {
        padding: 15px 15px !important;
        font-size: 1.1em;
    }
    .page-faq__faq-question h3 {
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 15px !important;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 15px !important;
    }
    .page-faq__faq-answer .page-faq__btn-primary,
    .page-faq__faq-answer .page-faq__btn-secondary {
        width: auto !important;
        max-width: none !important;
        font-size: 0.85em;
        padding: 8px 15px;
        margin-bottom: 10px;
    }
    .page-faq__additional-info {
        padding: 25px 15px !important;
    }
    .page-faq__cta-section {
        padding: 60px 15px !important;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }

    /* Mobile image responsive adaptation */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-faq__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
    }
}