.jbaylet-faq-page {
    min-height: 80vh;
    padding: 60px 0;
    background: #f5f7fa;
}

.jbaylet-faq-page .page-header {
    margin-bottom: 32px;
    text-align: center;
}

.jbaylet-faq-page .page-title {
    margin: 0;
    color: var(--heading-color);
    font-size: 2.25rem;
    font-weight: 700;
}

.jbaylet-faq-page .faq-intro {
    color: #64748b;
    margin: 10px auto 0;
    max-width: 720px;
}

.jbaylet-faq-page .header-decoration {
    width: 72px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--primary-color);
}

.faq-content {
    max-width: 920px;
    margin: 0 auto;
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.faq-filter {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--heading-color);
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.faq-filter:hover,
.faq-filter:focus {
    border-color: var(--primary-color);
    outline: none;
}

.faq-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
}

.faq-item[hidden] {
    display: none;
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 0;
    background: var(--white);
    color: var(--heading-color);
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    transition: background-color 0.15s ease;
}

.faq-question:hover,
.faq-question:focus {
    background: var(--light-bg);
    outline: none;
}

.toggle-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    border-top: 1px solid transparent;
    background: var(--light-bg);
    transition: max-height 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.faq-item.active .faq-answer {
    max-height: 480px;
    padding: 18px 20px;
    border-top-color: var(--border-color);
}

.faq-answer p {
    margin: 0;
    color: #4d5a63;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .jbaylet-faq-page {
        padding: 40px 0;
    }

    .jbaylet-faq-page .page-title {
        font-size: 1.8rem;
    }

    .faq-filters {
        justify-content: flex-start;
    }

    .faq-filter {
        flex: 1 1 calc(50% - 10px);
    }

    .faq-question {
        padding: 16px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 16px;
    }
}
