/* ==========================================================================
   FAQ Page — Evocate
   Modern accordion layout with category navigation and search
   ========================================================================== */

/* ── Search Section ── */
.faqSearch {
    padding: 40px 0 0;
    background: #f8f9fb;
}

.faqSearch__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.faqSearch__box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 8px 4px 20px;
    box-shadow: 0 4px 16px rgba(17, 49, 73, 0.06);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faqSearch__box:focus-within {
    border-color: #138ED0;
    box-shadow: 0 4px 24px rgba(19, 142, 208, 0.15);
}

.faqSearch__icon {
    color: #9ca3af;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 12px;
}

.faqSearch__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 14px 0;
    background: transparent;
    color: #113149;
    font-family: 'Source Sans Pro', sans-serif;
}

.faqSearch__input::placeholder {
    color: #9ca3af;
}

.faqSearch__clear {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    transition: color 0.2s;
    line-height: 1;
}

.faqSearch__clear:hover {
    color: #113149;
}

.faqSearch__count {
    margin-top: 12px;
    font-size: 16px;
    color: #6b7280;
    min-height: 22px;
}

/* ── Category Navigation Pills ── */
.faqNav {
    padding: 24px 0 8px;
    background: #f8f9fb;
}

.faqNav__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.faqNav__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.faqNav__pill:hover {
    border-color: #138ED0;
    color: #138ED0;
    background: #f0f9ff;
}

.faqNav__pill--active {
    background: #138ED0;
    border-color: #138ED0;
    color: #fff;
}

.faqNav__pill--active:hover {
    background: #1178b5;
    border-color: #1178b5;
    color: #fff;
}

.faqNav__pill i {
    font-size: 16px;
}

/* ── FAQ Content Area ── */
.faqContent {
    padding: 40px 0 60px;
    background: #f8f9fb;
}

.faqContent__wrap {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Category Block ── */
.faqCategory {
    margin-bottom: 40px;
}

.faqCategory:last-of-type {
    margin-bottom: 0;
}

.faqCategory__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.faqCategory__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #138ED0 0%, #13B1FF 100%);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.faqCategory__title {
    font-size: 22px;
    font-weight: 700;
    color: #113149;
    margin: 0;
    flex: 1;
}

.faqCategory__count {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

/* ── FAQ Item (Accordion) ── */
.faqItem {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}

.faqItem:hover {
    border-color: #d1d9e2;
    box-shadow: 0 4px 16px rgba(17, 49, 73, 0.06);
}

.faqItem--open {
    border-color: #138ED0;
    box-shadow: 0 6px 24px rgba(19, 142, 208, 0.1);
}

.faqItem__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #113149;
    line-height: 1.4;
    transition: color 0.2s;
    gap: 16px;
}

.faqItem__question:hover {
    color: #138ED0;
}

.faqItem--open .faqItem__question {
    color: #138ED0;
}

.faqItem__text {
    flex: 1;
}

.faqItem__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    transition: all 0.3s;
}

.faqItem--open .faqItem__chevron {
    background: #138ED0;
    color: #fff;
    transform: rotate(180deg);
}

.faqItem__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faqItem__answerInner {
    padding: 0 24px 22px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.faqItem__answerInner p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.faqItem__answerInner p:last-child {
    margin-bottom: 0;
}

.faqItem__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #138ED0;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: 4px;
}

.faqItem__link:hover {
    gap: 10px;
    color: #1178b5;
    text-decoration: none;
}

.faqItem__link i {
    font-size: 15px;
    transition: transform 0.2s;
}

.faqItem__link:hover i {
    transform: translateX(2px);
}

/* ── No Results ── */
.faqNoResults {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.faqNoResults__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.faqNoResults h3 {
    color: #475569;
    font-size: 20px;
    margin-bottom: 8px;
}

.faqNoResults p {
    font-size: 15px;
    color: #6b7280;
}

.faqNoResults a {
    color: #138ED0;
    font-weight: 600;
}

/* ── CTA Section ── */
.faqCta {
    padding: 80px 0;
    background: linear-gradient(135deg, #113149 0%, #1a4a6e 50%, #138ED0 100%);
    color: #fff;
}

.faqCta__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.faqCta__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.faqCta__subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 36px;
    line-height: 1.6;
}

.faqCta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.faqCta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.faqCta__btn--primary {
    background: #fff;
    color: #113149;
}

.faqCta__btn--primary:hover {
    background: #f0f9ff;
    color: #138ED0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.faqCta__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.faqCta__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.faqCta__extra {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 16px;
    opacity: 0.75;
}

.faqCta__extra p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faqCta__extra a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faqCta__extra a:hover {
    opacity: 1;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .faqSearch {
        padding: 28px 0 0;
    }

    .faqSearch__box {
        padding: 2px 6px 2px 16px;
    }

    .faqSearch__input {
        font-size: 15px;
        padding: 12px 0;
    }

    .faqNav__pills {
        gap: 8px;
        padding: 0 8px;
    }

    .faqNav__pill {
        padding: 8px 14px;
        font-size: 16px;
    }

    .faqContent {
        padding: 28px 0 40px;
    }

    .faqCategory__header {
        gap: 10px;
    }

    .faqCategory__icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .faqCategory__title {
        font-size: 18px;
    }

    .faqCategory__count {
        display: none;
    }

    .faqItem__question {
        padding: 16px 18px;
        font-size: 15px;
        gap: 12px;
    }

    .faqItem__chevron {
        width: 28px;
        height: 28px;
    }

    .faqItem__chevron svg {
        width: 16px;
        height: 16px;
    }

    .faqItem__answerInner {
        padding: 0 18px 18px;
        padding-top: 14px;
    }

    .faqCta {
        padding: 50px 0;
    }

    .faqCta__title {
        font-size: 26px;
    }

    .faqCta__subtitle {
        font-size: 16px;
    }

    .faqCta__btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .faqCta__extra {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .faqNav__pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .faqNav__pills::-webkit-scrollbar {
        display: none;
    }
}
