.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.faq-item {
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-header.icon-right {
    justify-content: space-between;
}

.faq-header.icon-left {
    justify-content: flex-start;
}

.faq-title {
    margin: 0;
    flex-grow: 1;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1; /* Fix vertical alignment */
}

/* Ensure SVG icons behave well */
.faq-icon svg {
    display: block;
    height: 1em;
    width: 1em;
}

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

/* Active State */
.faq-item.active .faq-content {
    max-height: 1000px; /* Approximate max height, JS handles exact height */
    transition: max-height 0.5s ease-in;
}

/* Icon Switching */
.faq-item .icon-opened {
    display: none;
}

.faq-item .icon-closed {
    display: block;
}

.faq-item.active .icon-opened {
    display: block;
}

.faq-item.active .icon-closed {
    display: none;
}
