/* FAQ Accordion Block Styles */
.baseline-faq-wrapper {
    margin: 80px auto;
    max-width: 660px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-32);
    width: 100%;
}

.baseline-faq-block-heading {
    margin-bottom: var(--space-32);
}

.baseline-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.baseline-faq-item {
    background: var(--text-strong);
    border-radius: 8px;
    /* padding: var(--space-24) var(--space-16); */
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* gap: var(--space-8); */
    align-self: stretch;
}

.baseline-faq-item:hover {
    background: #1A1A19;
}

.baseline-faq-item.active {
    border-color: rgba(255, 255, 255, 0.08);
    background: #1A1A19;
}

.baseline-faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-24);
    cursor: pointer;
    text-align: left;
    outline: none;
}

/* Custom Line Height Hierarchy overrides for FAQ text elements */
.baseline-faq-wrapper .type-body-m-static {
    line-height: 160%;
}

.baseline-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
}

.baseline-faq-icon::before,
.baseline-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #DF3;
    transition: transform 0.3s ease;
}

.baseline-faq-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.baseline-faq-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.baseline-faq-item.active .baseline-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.baseline-faq-item.active .baseline-faq-icon::before {
    background-color: #8a8b88;
}

.baseline-faq-question {
    color: var(--text-white);
}

.baseline-faq-content {
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.baseline-faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--text-medium-dark);
}

.baseline-faq-answer p {
    margin: 0;
}

/* Responsive Overrides (Under 768px) */
@media screen and (max-width: 767px) {
    .baseline-faq-wrapper {
        margin: 60px auto;
        padding: 0px;
    }

    .baseline-faq-trigger {
        padding: 20px;
    }

    .baseline-faq-answer {
        padding: 0 16px 20px 16px;
    }
}