/*------------------------------------*\
    
    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__panel:not(.is-active) .tab-accordion__panel__content {
    display: none;
}

.tab-accordion__tabs {
    display: flex;
    position: relative;
    justify-content: space-between;
    z-index: 2;
}

.tab-accordion__tab,
.tab-accordion__panel__toggle {
    list-style-type: none !important;
    margin: 5px 0 0;
    padding: 0;
    display: block;
    color: var(--black);
    line-height: normal;
    background: transparent;
    padding: 16px 55px 16px 0;
    text-decoration: none;
    border: none;
    position: relative;
    font-weight: 700;
    border-radius: 5px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    width: 100%;
    text-align: left;
}

.tab-accordion__panel__toggle:after {
    content: "\e900";
    font-family: 'mcleod-icon';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 51px;
    color: var(--primary);
    font-size: 20px;
    height: 51px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-accordion__panel {
    border-bottom: 1px solid #E6E0CB;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tab-accordion__panel:last-child {
    margin-bottom: 0;
}

.tab-accordion__panel__toggle.is-active {
    background: var(--white);
    padding: 21px 55px 21px 15px;
}

.tab-accordion__panel__toggle.is-active:after {
    background: var(--cream);
    right: 5px;
    content: "\e913";
}

.tab-accordion__panel__toggle.is-active {
    border-radius: 4px 4px 0 0;
}

.tab-accordion__tab:hover,
.tab-accordion__tab:focus,
.tab-accordion__panel__toggle:focus {
    text-decoration: none;
}

.tab-accordion__panel__content {
    padding: 30px 0 25px;
    overflow: hidden;
}

.tab-accordion {
    position: relative;
}

.tab-accordion__panel__content .blog-listing__pagination [class*="col-"] {
    padding-left: 0;
}

@media (min-width: 768px) {


    .tab-accordion__tab,
    .tab-accordion__panel__toggle {
        border-radius: 0;
        margin: 0;
        width: auto;
        padding: 17px 20px;
        text-align: center;
        position: relative;
        font-size: 18px;
    }

    .tab-accordion__tab.is-active {
        background: var(--white);
    }

    .tab-accordion__tab:after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        bottom: -2px;
        height: 5px;
        width: 0;
        background-color: var(--primary);
        transition: all ease 0.3s;
    }

    .tab-accordion__tab.is-active:after {
        width: 100%;
    }

    .tab-accordion__tabs:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        z-index: -1;
        background: #E6E0CB;
    }

    .tab-accordion__panel {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
}

@media (min-width: 1200px) {
    .tab-accordion__tabs {
        justify-content: center;
    }


    
}