.accordion-component .item {
    margin-bottom: 20px;
}

.accordion-component .item.closed .title {
    transition: all .2s 0.3s linear;
    color: var(--faq-title-color);
}

.accordion-component .item .title {
    font-weight: 700;
    font-size: 18px;
    color: var(--faq-title-color-active);
    position: relative;
    padding: 10px 0 15px;
    transition: all 0  linear;
    border-bottom: 1px solid var(--faq-border-color)
}

.accordion-component .item .title:before {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 15px;
    transform: rotate(-180deg)
}

.accordion-component .item.closed .title:before {
    transform: rotate(0deg);

} 

.accordion-component .item .title:hover {
    cursor: pointer;
}

.accordion-component .item .title:after {
    transform: rotate(0);
}

.accordion-component .item .text {
    max-height: 1600px;
}

.accordion-component .item .text .text-inner {
    color: var(--faq-text-color);
    padding: 10px 0 0;
}

.accordion-component .item.closed .text {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s linear;
}

/* On primary */

.section--primary .accordion-component .item.closed .title,
.section--primary-half-width .accordion-component .item.closed .title {
    color: var(--faq-title-color-on-primary);
}

.section--primary .accordion-component .item .title,
.section--primary-half-width .accordion-component .item .title {
    color: var(--faq-title-color-active-on-primary);
    border-color: var(--faq-border-color-on-primary)
}

.section--primary .accordion-component .item .text .text-inner,
.section--primary-half-width .accordion-component .item .text .text-inner {
    color: var(--faq-text-color-on-primary);
}

/* On secondary */

.section--secondary .accordion-component .item.closed .title {
    color: var(--faq-title-color-on-secondary);
}

.section--secondary .accordion-component .item .title {
    color: var(--faq-title-color-active-on-secondary);
    border-color: var(--faq-border-color-on-secondary)
}

.section--secondary .accordion-component .item .text .text-inner {
    color: var(--faq-text-color-on-secondary);
}

/* On background */

.section--background-image .accordion-component .item.closed .title {
    color: var(--faq-title-color-on-background);
}

.section--background-image .accordion-component .item .title {
    color: var(--faq-title-color-active-on-background);
    border-color: var(--faq-border-color-on-background)
}

.section--background-image .accordion-component .item .text .text-inner {
    color: var(--faq-text-color-on-background);
}


@media (max-width: 767px) {
    .accordion-component .item {
        margin-bottom: 20px;
    }
}