/**
* Block Name: faq
*/


section.faq .collapsing {
    transition: height 450ms ease;
}
section.faq .collapsing.collapse-horizontal {
    transition: width 450ms ease;
}

section.faq .faq_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

section.faq .card {
    position: relative;
    background: transparent;
    border: 4px solid transparent;
    border-radius: 100px;
    overflow: visible;
    transition:
      background-color 250ms cubic-bezier(.2,.6,.2,1),
      border-color 250ms cubic-bezier(.2,.6,.2,1),
      border-radius 200ms cubic-bezier(.2,.6,.2,1);
}

section.faq .card:hover {
    background: var(--alt-light-green);
}

section.faq .card::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 4px;
    width: 98%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    background: linear-gradient(90deg, rgba(237, 247, 243, 0.00) 0%, #EDF7F3 15%);
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    pointer-events: none;
}

section.faq .card:hover::after {
    opacity: 0;
}

section.faq .card .card-header {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}


section.faq .card .card-header button {
    position: relative;
    background: transparent;
    color: var(--green);
    border: none;
    text-decoration: none;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition:
      transform 200ms ease-in-out;
    border-radius: 100px; 
    z-index: 1;
}


section.faq .card .card-header button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--alt-light-green);
    opacity: 0;
    transform: scaleY(0.96);
    transform-origin: top;
    transition:
      opacity 220ms cubic-bezier(.2,.6,.2,1),
      transform 220ms cubic-bezier(.2,.6,.2,1);
    z-index: -1;
}


section.faq .card:has(.show) .card-header button::before {
    opacity: 1;
    transform: scaleY(1);
}



section.faq .card .card-header button h4 {
    text-align: left;
    font-weight: 400;
    font-size: 1.3785rem;
    transition: transform 200ms ease-in-out;
    color: var(--green);
}

section.faq .card .card-header:hover button h4 {
    transform: translateX(5px);

}

section.faq .card .card-header button svg.chevron {
    background: var(--green);
    border-radius: 100px;
    flex-shrink: 0;
    transition:
      background-color 300ms ease,
      transform 300ms ease,
      box-shadow 300ms ease-in-out;
}


section.faq .card .card-header button svg.question {
    transition: background-color 300ms ease;
    background-color: transparent;
    border-radius: 100px;
    flex-shrink: 0;
}

section.faq .card .card-header button:hover svg.question,
section.faq .card:has(.show) .card-header button svg.question,
section.faq .card:has(.collapsing) .card-header button svg.question  {
    background-color: var(--white);
}

section.faq .card .card-header button:hover svg.chevron {
    background: var(--viridian);
    -webkit-box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
    -moz-box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);;
    box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
}

section.faq .card .card-header button svg.chevron path {
    transition: transform 300ms ease;
    transform-origin: center;
}

section.faq .card .card-header button:hover svg.chevron path {
    transform: scale(1.15);
}

section.faq .collapse {
    padding: 0 !important;
}

section.faq .card .card-body {
    padding: 10px 10px 16px;
    background: transparent;
}
section.faq .card .card-body,
section.faq .card .card-body p {
    margin-bottom: 0;
    color: var(--black);
    font-weight: 400;
}

section.faq .card:has(.show),
section.faq .card:has(.collapsing){
    background: var(--alt-light-green);
    border-color: transparent;
   border-radius: var(--radius-medium);
}

section.faq .card:has(.show):hover {
    border-color: var(--subtle-green);
}

section.faq .card:has(.show)::after {
    opacity: 0;
}

section.faq .card:has(.show) .card-header button svg.chevron {
    transform: rotate(180deg);
}




/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    section.faq .card,
    section.faq .card::after,
    section.faq .card .card-header button svg,
    section.faq .card .card-header button svg path,
    section.faq .collapsing {
      transition: none !important;
    }
}