/* style/faq.css */

/* Variables and general styling for the page-faq scope */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: #f0f8ff; /* Light background for hero section */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

/* CTA Button - Primary */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87c0;
    transform: translateY(-2px);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-faq__section-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-faq__content-image--bottom {
    margin-top: 50px;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 20px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-faq__faq-list-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__faq-group {
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-faq__group-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

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

.page-faq__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

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

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    color: #555555;
    background-color: #ffffff;
}

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

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

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1e87c0;
}

/* CTA Section */
.page-faq__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}

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

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

.page-faq__btn-secondary:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-section,
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding: 40px 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-faq__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }

    .page-faq__group-title {
        font-size: 1.6em;
    }

    .page-faq__faq-item summary {
        padding: 18px 20px;
        font-size: 1em;
    }

    .page-faq__faq-answer {
        padding: 18px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section,
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-faq__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }

    .page-faq__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }

    .page-faq__group-title {
        font-size: 1.4em;
    }

    .page-faq__hero-image-wrapper,
    .page-faq__hero-content,
    .page-faq__container,
    .page-faq__faq-group,
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* All images */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All buttons */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button containers */
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__faq-item summary {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-faq__faq-answer {
        padding: 15px;
        font-size: 0.85em;
    }
}

/* Color Contrast Safeguards - assuming light body background */
.page-faq__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-faq__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-faq__dark-section a {
    color: #f0f8ff;
}
.page-faq__dark-section a:hover {
    color: #ffffff;
}