/*------------------------------------*\

    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;
    flex-wrap: wrap;
    top: 1px;
    position: relative;
    z-index: 2;
}

.tab-accordion__tab,
.tab-accordion__panel__toggle {
    list-style-type: none !important;
    margin: 0;
    padding: 0;
    display: block;
    color: #fff;
    line-height: normal;
    text-decoration: none;
    width: 100%;
    position: relative;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 25px 20px;
    height: 83px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    border: none;
    font-size: 20px;
    font-weight: 400;
}

.tab-accordion__panel + .tab-accordion__panel {
    margin-top: 20px;
}

.tab-accordion__panel__toggle:after {
    content: "\e909";
    font-family: 'wwc-icons';
    width: 33px;
    height: 33px;
    background-color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0C1631;
    font-size: 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translate(0, -50%);
}

.tab-accordion__tab.is-active,
.tab-accordion__panel__toggle.is-active {
    background: transparent;
    color: #0C1631;
}


.tab-accordion__panel__toggle.is-active:after {
    content: "\e907";
    background: rgba(33, 60, 136, 0.15);
    color: #0C1631;
}

.tab-accordion__panel.is-active {
    background-color: #fff;
    border-radius: 22px;
}

.tab-accordion__tab:focus:not(:focus-visible),
.tab-accordion__panel__toggle:focus:not(:focus-visible) {
    border: none;
}

.tab-accordion__panel__content {
    padding: 0 20px;
    border: none;
    overflow: hidden;
    margin-top: -15px;
}

.tab-accordion {
    position: relative;
}

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

.tab-accordion-image-text__content p {
    color: #474747;
    font-size: 16px;
    line-height: 1.75em;
}

.tab-accordion-image-text__content li {
    font-size: 16px;
}

.tab-accordion-image-text__image {
    height: 404px;
    border-radius: 20px;
    margin: 0 -20px;
    width: calc(100% + 40px);
    margin-top: 25px;
    overflow: hidden;
}

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

.tab-accordion__heading {
    margin-bottom: 20px;
}

.bg-dark-blue .tab-accordion__heading .sub-heading {
    color: #BDCBEF;
}

.bg-dark-blue .tab-accordion-image-text__content li {
    color: #474747;
}

@media (min-width: 768px) {
    .tab-accordion__panel__content {
        padding: 5px 35px 0;
        margin-top: 0;
    }

    .tab-accordion-image-text__image {
        margin: 0 -35px;
        width: calc(100% + 70px);
        margin-top: 40px;
    }

    .tab-accordion__tab, .tab-accordion__panel__toggle {
        padding: 25px 35px;
        height: 89px;
        font-size: 30px;
    }

    .tab-accordion__panel__toggle:after {
        right: 35px;
    }

    .tab-accordion__tab, .tab-accordion__panel__toggle.is-active {
        padding: 45px 35px 25px 35px;
    }

    .tab-accordion__panel__toggle.is-active:after {
        margin-top: 11px;
    }

    .tab-accordion__panel + .tab-accordion__panel {
        margin-top: 30px;
    }

    .tab-accordion__heading {
        margin-bottom: 26px;
    }
}

@media (min-width: 1200px) {
    .tab-accordion__panel + .tab-accordion__panel {
        margin-top: 0;
    }

    .tab-accordion__panel {
        box-shadow: 0px 4px 30px 0px rgba(12, 22, 49, 0.15);
    }

    .tab-accordion__heading h2:last-child {
        max-width: 650px;
        margin: 0 auto;
    }

    .tab-accordion__tab {
        padding: 15px 0;
        height: 54px;
        font-size: 20px;
        width: max-content;
        background: transparent;
        color: rgba(255,255,255,0.65);
    }

    .tab-accordion__tab:focus {
        border: none;
        outline: none;
    }
    .tab-accordion__tab.is-active {
        padding: 15px 30px;
        color: rgba(255,255,255,1);
        background: #242D46;
    }

    .tab-accordion__tabs {
        justify-content: center;
        gap: 12px;
        margin-bottom: 40px;
    }

    .tab-accordion__tab:hover {
        color: rgba(255,255,255,1);
    }

    .tab-accordion-image-text {
        position: relative;
    }

    .tab-accordion-image-text__image {
        position: absolute;
        right: 0;
        top: 0;
        width: 361px;
        height: 100%;
        margin: 0;
    }

    .tab-accordion__panel__content {
        padding: 0;
    }

    .no-image .tab-accordion-image-text__content {
        width: 100%;
    }

    .tab-accordion-image-text__content {
        width: calc(100% - 361px);
        padding: 52px 92px 53px 56px;
    }

    .tab-accordion-image-text__content h3 {
        font-size: 35px;
		color: #0C1631 !important;
    }

    .tab-accordion__tab.is-active:after {
        content: "";
        position: absolute;
        clip-path: polygon(100% 0, 0 0, 50% 100%);
        width: 32px;
        height: 11px;
        background: #242D46;
        bottom: -11px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}

@media (min-width: 1400px) {
    .tab-accordion__tabs {
        gap: 40px;
    }
}

.bg-light-grey .tab-accordion__tab,
.bg-white .tab-accordion__tab {
    color: rgba(71,71,71,0.55);
}

.bg-light-grey .tab-accordion__tab.is-active,
.bg-white .tab-accordion__tab.is-active {
    color: #0C1631;
    background: rgba(189,203,239,0.34);
}

.bg-light-grey .tab-accordion__tab.is-active::after,
.bg-white .tab-accordion__tab.is-active::after {
    background: rgba(189,203,239,0.34);
}

.bg-light-grey .tab-accordion__panel__toggle,
.bg-white .tab-accordion__panel__toggle {
    background: rgba(189,203,239,0.2);
    color: #0C1631;
}

.bg-light-grey .tab-accordion__panel__toggle.is-active,
.bg-white .tab-accordion__panel__toggle.is-active {
    background: none;
}

.tab-accordion-image-text__content ul {
    padding-left: 0;
}

.tab-accordion-image-text__content ul li {
    margin-bottom: 0;
}

.tab-accordion--grey {
    background: #f2f2f2 !important;
}
