:root {
    --bd-faq-spacing: 1.5rem;
    --bd-faq-border: 1px solid #e5e7eb;
    --bd-faq-text-main: inherit;
    --bd-faq-text-muted: #4b5563;
    --bd-faq-accent: #000000;
    --bd-faq-transition: all 0.2s ease-in-out;
}

.bd-faq {
    margin-top: 3rem;
    max-width: 100%;
}

.bd-faq-item {
    border-bottom: var(--bd-faq-border);
    margin-bottom: 0;
}

.bd-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--bd-faq-spacing) 0;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bd-faq-text-main);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: var(--bd-faq-transition);
}

.bd-faq-question:hover {
    color: var(--bd-faq-accent);
    padding-left: 0.5rem;
}

.bd-faq-question::after {
    content: '';
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bd-faq-item.is-open .bd-faq-question::after {
    transform: rotate(225deg);
}

.bd-faq-answer {
    display: none;
    padding-bottom: var(--bd-faq-spacing);
    color: var(--bd-faq-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.bd-faq-item.is-open .bd-faq-answer {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bd-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    :root {
        --bd-faq-spacing: 1rem;
    }

    .bd-faq-question {
        font-size: 1rem;
    }
}
