/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default white background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
    overflow: hidden; /* Prevent content overflow */
}

.page-faq__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width to look better on desktop */
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-faq__hero-content h1 {
    font-size: 2.8em;
    color: #000000; /* Darker title for contrast */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-faq__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    background: #1e87b7; /* Slightly darker primary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-faq__section-intro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f0f8ff; /* Light blue background for questions */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #e6f2ff; /* Slightly darker on hover */
    border-color: #d0d0d0;
}

.page-faq__faq-question:active {
    background: #daeaf7;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #26A9E0; /* Primary brand color for question text */
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: #1a7a9e; /* Darker blue when active */
    transform: rotate(45deg); /* Rotate for minus sign effect, or just change text */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

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

.page-faq__faq-answer .page-faq__image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example max-width for images within answers */
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-link:hover {
    background: #1e87b7;
    transform: translateY(-1px);
}

/* Contact Section */
.page-faq__contact-section {
    background: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text for contrast */
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-faq__contact-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-faq__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-faq__btn-primary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.page-faq__btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.page-faq__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Global image styles for content area */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Hero Section */
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-content h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Content Area */
    .page-faq__content-area {
        margin: 20px auto;
        padding: 15px;
        border-radius: 8px;
    }

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

    .page-faq__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* FAQ Items */
    .page-faq__faq-item {
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
        border-radius: 6px;
    }

    .page-faq__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px); /* Adjust width for toggle */
        margin-bottom: 0;
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 10px;
    }

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

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }

    .page-faq__faq-answer p {
        font-size: 0.95em;
    }
}