/* Item */
.faq-item {
    border-bottom: 1px solid var(--bs-primary);
}

/* Top border on the first item of each column */
.faq-column > .faq-item:first-child,
.faq-column > :first-child .faq-item {
    border-top: 1px solid var(--bs-primary);
}

.faq-item__heading {
    margin: 0;
}

/* Question button */
.faq-item__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 1rem 1.5rem 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.faq-item__label {
    font-family: "Montserrat";
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.faq-item__toggle:hover .faq-item__label {
    opacity: .75;
}

.faq-item__toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Chevron icon */
.faq-item__icon {
    flex: 0 0 auto;
    font-size: 25px;
}

/* Rotate only the chevron, not the circle behind it */
.faq-item__icon > svg:last-child {
    transition: transform .2s ease;
}

.faq-item__toggle:not(.collapsed) .faq-item__icon > svg:last-child {
    transform: rotate(180deg);
}

/* Answer */
.faq-item__body {
    padding: 0 3rem 1.5rem 0;
}

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

/* Desktop: space between the columns without breaking the lines */
@media (min-width: 768px) {
    .faq-column + .faq-column .faq-item__toggle,
    .faq-column + .faq-column .faq-item__body {
        padding-left: 1.5rem;
    }
}

/* Mobile: one column, so avoid a double line where the two halves meet */
@media (max-width: 767.98px) {
    .faq-column + .faq-column > .faq-item:first-child,
    .faq-column + .faq-column > :first-child .faq-item {
        border-top: 0;
    }
}