/* =====================================================
   BHA FAQ — Frontend
   Shortcode: [bha_ms_faq]
   ===================================================== */

.bha-faq {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
    color: #0d0d1e;
}

.bha-faq__heading {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 28px;
    color: #0d0d1e;
}

/* ---- Accordion item ---- */

.bha-faq__item {
    border: 1px solid #e2e2ec;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.bha-faq__item[open] {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

/* ---- Question / summary ---- */

.bha-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: #0d0d1e;
    line-height: 1.4;
}

.bha-faq__question::-webkit-details-marker {
    display: none;
}

/* ---- Chevron icon ---- */

.bha-faq__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f0f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.25s;
    position: relative;
}

.bha-faq__icon::before,
.bha-faq__icon::after {
    content: '';
    position: absolute;
    background: #555;
    border-radius: 2px;
    transition: transform 0.25s;
}

.bha-faq__icon::before {
    width: 10px;
    height: 2px;
}

.bha-faq__icon::after {
    width: 2px;
    height: 10px;
}

.bha-faq__item[open] .bha-faq__icon {
    background: #0d0d1e;
}

.bha-faq__item[open] .bha-faq__icon::before,
.bha-faq__item[open] .bha-faq__icon::after {
    background: #fff;
}

.bha-faq__item[open] .bha-faq__icon::after {
    transform: rotate(90deg);
}

/* ---- Answer ---- */

.bha-faq__answer {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a3a4f;
}

.bha-faq__answer p {
    margin: 0 0 12px;
}

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

.bha-faq__answer ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.bha-faq__answer ul li {
    margin-bottom: 6px;
}

/* ---- Hover state ---- */

.bha-faq__question:hover {
    color: #2b2bd4;
}

.bha-faq__item[open] .bha-faq__question {
    color: #2b2bd4;
}
