/*------------------------------------*\
    
    FX Tabs/Accordion - Global styling for all tabs/accordions

    Add custom tabs/accordion styling to this file if it should be applied to all tabs/accordions on the site
    Otherwise, put your styles in individual block stylesheets

\*------------------------------------*/

.tab-accordion__top-content {
    margin-bottom: 20px;
}

.tab-accordion__panel:not(.is-active) .tab-accordion__panel__content {
    display: none;
}

.tab-accordion__tab {
    list-style-type: none !important;
    margin: 0 0 0;
    padding: 0;
    display: block;
    color: #333333;
    line-height: normal;
    background: #EFEFEF;
    padding: 10px 15px;
    text-decoration: none;
    border: none;
    text-align: left;
    position: relative;
    height: auto;
}

.tab-accordion__panel__toggle {
    list-style-type: none !important;
    padding: 0;
    padding-left: ;
    display: block;
    line-height: normal;
    color: #333333;
    padding: 20px  30px 20px  30px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
    position: relative;
}

.tab-accordion__tab.is-active,
.tab-accordion__tab:focus,
.tab-accordion__tab:hover {
    color: #158934;
    background: #E4F0E7;
}

.tab-accordion__panel__toggle.is-active,
.tab-accordion__panel__toggle:hover,
.tab-accordion__panel__toggle:focus {
    color: #158934;
    background: #E4F0E7;
    text-decoration: none;
}

.tab-accordion__panel__toggle__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; 
}

.tab-accordion__panel__toggle__icon {
    line-height: 1em;
    font-weight: normal;
    font-size: 25px;
    color: #29ACCE;
    width: 30px;
}

.tab-accordion__panel__toggle__text {
    width: calc(100% - 30px);
    padding-left: 7px;
}

.tab-accordion__panel__toggle__text h4 {
    margin: 0;
    padding: 0;
    line-height: 1.35em;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.tab-accordion__tab.is-active .tab-accordion__panel__toggle__text h4,
.tab-accordion__tab:focus .tab-accordion__panel__toggle__text h4,
.tab-accordion__tab:hover .tab-accordion__panel__toggle__text h4 {
    color: #158934;
}

.tab-accordion__panel__toggle__text h4 span {
    display: block;
    font-weight: 400;
    font-size: 15px;
}

.tab-accordion__panel__content {
    padding: 15px 20px 20px;
    position: relative;
}

.tab-accordion__panel__content h3 {
    margin: 0;
    padding: 0 0 14px;
    line-height: 1.3em;
    font-weight: 600;
    font-size: 20px;
    color: #04111C;
    text-transform: none;
}

.tab-accordion {
    position: relative;
}

.tab-accordion__flex {
    position: relative;
    z-index: 1;
}

.img__tab {
    border-radius: 60px;
    width: 100%;
    height: 250px;
}

.tab-accordion__panel__content .row {
    flex-direction: column-reverse;
    gap: 20px;
}

.tab-accordion__panel__toggle__item svg {
    position: absolute;
    right: 30px;
    transform: rotate(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tab-accordion__panel.is-active svg {
    transform: rotate(-90deg);
}

.tab-accordion__panel {
    background: #EFEFEF;
    border-radius: 30px 0 30px 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.tab-accordion__panel.is-active {
    background: #e5f0e7;
}

.tab-accordion__panel.is-active .tab-accordion__panel__toggle__text h4 {
    color: #158934;
}

.tab-accordion__panel__toggle svg path {
    fill: #333333;
}

.tab-accordion__panel.is-active svg path {
    fill: #158934;
}

.bg-light-green .tab-accordion__panel.is-active {
    background: #FFFFFF;
}

.bg-light-green .tab-accordion__panel__toggle.is-active, .bg-light-green .tab-accordion__panel__toggle:hover, .bg-light-green .tab-accordion__panel__toggle:focus {
    background: #FFFFFF;
}

.bg-gray .tab-accordion__panel__toggle {
    background: #FFFFFF;
}

.bg-gray .tab-accordion__panel__toggle.is-active, .bg-gray .tab-accordion__panel__toggle:hover, .bg-gray .tab-accordion__panel__toggle:focus {
    background: #E4F0E7;
}


@media (min-width: 768px) {  
    
}

@media (min-width: 1025px) {
    .tab-accordion__tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .tab-accordion__panel {
        border-radius: 0 30px 30px 0;
        margin-bottom: 0;
    }

    .tab-accordion__panel__toggle__text h4 {
        font-size: 12px;
        color: #158934;
    }

    .tab-accordion__panel__toggle__item {
        display: block;
    }

    .tab-accordion__panel__toggle__text {
        width: 100%;
        padding-left: 0;
    }

    .tab-accordion__tab:first-child {
        border-radius: 20px 0 0 0;
    }
    
    .tab-accordion__tab:last-child {
        border-radius: 0 20px 0 0;
    }

    .tab-accordion__panel__content .row {
        flex-direction: unset;
        gap: 0;
    }

    .tab-accordion__panel__content {
        padding: 40px;
    }

    .tab-accordion__tab {
        background: #E4F0E7;
    }

    .tab-accordion__tab.is-active, .tab-accordion__tab:focus, .tab-accordion__tab:hover {
        background: #EFEFEF;
        color: #333333;
    }

    .tab-accordion__panel.is-active {
        background: #EFEFEF;
    }

    .tab-accordion__tab.is-active .tab-accordion__panel__toggle__text h4, .tab-accordion__tab:focus .tab-accordion__panel__toggle__text h4, .tab-accordion__tab:hover .tab-accordion__panel__toggle__text h4 {
        color: #333333;
    }

    .bg-gray .tab-accordion__tab.is-active, .bg-gray .tab-accordion__tab:focus, .bg-gray .tab-accordion__tab:hover {
        background: #FFFFFF;
        color: #333333;
    }
    
    .bg-gray .tab-accordion__panel.is-active {
        background: #FFFFFF;
    }

    .bg-light-green .tab-accordion__tab.is-active, .bg-light-green .tab-accordion__tab:focus, .bg-light-green .tab-accordion__tab:hover {
        background: #FFFFFF;
        color: #333333;
    }
    
    .bg-light-green .tab-accordion__panel.is-active {
        background: #FFFFFF;
    }

    .bg-light-green .tab-accordion__tab {
        background: #EFEFEF;
    }

    .bg-light-green .tab-accordion__panel__toggle__text h4 {
        color: #333333;
    }
}