/*------------------------------------*\
    
    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__nav-arrow {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid #DDE7F2;
    border-radius: 10px;
    background: #fff;
    color: #172549;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tab-accordion__nav-arrow:hover,
.tab-accordion__nav-arrow:focus {
    background: #DDE7F2;
    border-color: #DDE7F2;
    color: #172549;
}

.tab-accordion__nav-arrow-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-color: currentColor;
    border-width: 0 2px 2px 0;
}

.tab-accordion__nav-arrow--left .tab-accordion__nav-arrow-icon {
    margin-left: 4px;
    transform: rotate(135deg);
}

.tab-accordion__nav-arrow--right .tab-accordion__nav-arrow-icon {
    margin-right: 4px;
    transform: rotate(-45deg);
}

.tab-accordion__nav-arrow.is-hidden {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.tab-accordion__tabs-scroll {
    min-width: 0;
}

.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: #172549;
    background: transparent;
    padding: 20px 40px 20px 0;
    text-decoration: none;
    border: none;
    position: relative;
    border-radius: 0;
    width: 100%;
    text-align: left;
    line-height: 1.4em;
    font-weight: 700;
    font-size: 22px;
}


.tab-accordion__panel__toggle:after {
    content: '\e90e';
    font-family: 'Village-Caregiving';
    position: absolute;
    top: 34px;
    font-weight: normal;
    right: 7px;
    font-size: 15px;
    transform: translate(0, -50%);
}


.tab-accordion__panel__toggle.is-active:after {
    content: '\e90d';
}

.tab-accordion__tab.is-active,
.tab-accordion__tab:hover,
.tab-accordion__tab:focus,
.tab-accordion__panel__toggle.is-active,
.tab-accordion__panel__toggle:hover,
.tab-accordion__panel__toggle:focus {
    color: inherit;
    text-decoration: none;
}

.tab-accordion__panel.is-active {
    background: #DDE7F2;
}

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

.tab-accordion__panel__content img {
    border-radius: 20px 40px 40px 20px;
}

.tab-accordion {
    position: relative;
}

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

.tab-accordion__panel {
    margin: 20px 0 0;
    border-radius: 15px;
    border: 1px solid #DDE7F2;
    padding: 0 15px;
}

.bg-blue .tab-accordion__panel {
    border-color: #81ABD9;
    background: rgba(129, 171, 217, 0.25);
}

.bg-blue .tab-accordion__panel__content h1,
.bg-blue .tab-accordion__panel__content h2,
.bg-blue .tab-accordion__panel__content h3,
.bg-blue .tab-accordion__panel__content h4,
.bg-blue .tab-accordion__panel__content h5,
.bg-blue .tab-accordion__panel__content h6 {
    color: #fff;
}


.bg-blue .tab-accordion__panel__content a {
    color: var(--light-blue);
}

.bg-blue .tab-accordion__panel__content .sub-heading {
    color: var(--light-blue);
    -webkit-text-stroke: 1px var(--light-blue);
}


.bg-blue .tab-accordion__panel.is-active {
    border-color: #172549;
    background: #172549;
    color: #fff;
}

.bg-blue .tab-accordion__panel.is-active {
    color: #fff;
}

.tab-accordion__panel__icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #fff;
    margin: 0 0 6px;
    color: #F03337;
    font-size: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-accordion__panel__icon svg,
.tab-accordion__panel__icon img {
    width: 30px;
    height: 30px;
    border-radius: 0;
    object-fit: contain;
}

.tab-accordion__heading img {
    border-radius: 20px 40px 40px 20px;
}

@media (min-width: 768px) {
    .tab-accordion__heading {
        margin: 0 0 40px;
    }

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

    .tab-accordion__tab,
    .tab-accordion__panel__toggle {
        border-radius: 10px;
        margin: 0;
        width: auto;
        padding: 17px 35px;
        border: 2px solid #DDE7F2;
    }

    .tab-accordion__tabs {
        flex-wrap: inherit;
        top: 0;
        width: max-content;
        gap: 32px;
        padding-right: 52px;
    }

    .tab-accordion__panel {
        margin: 0;
        border-radius: 15px;
        border: none;
        padding: 0;
    }

    .tab-accordion__navs {
        display: flex;
        align-items: center;
        margin: 0 -52px 24px 0;
    }

    .tab-accordion__tabs-scroll {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-accordion__tabs-scroll::-webkit-scrollbar {
        display: none;
    }

    .tab-accordion__tab.is-active {
        background: #DDE7F2;
    }

    .bg-blue .tab-accordion__tab {
        background: transparent;
        border-color: #81ABD9;
    }

    .bg-blue .tab-accordion__tab.is-active {
        background: #172549;
        border-color: #172549;
        color: #fff;
    }

    .tab-accordion__panel__content:has(.tab-accordion__panel__icon) {
        padding: 30px 25px 30px 143px;
        position: relative;
    }

    .tab-accordion__panel__icon {
        position: absolute;
        top: 33px;
        width: 91px;
        height: 91px;
        font-size: 44px;
        left: 26px;
    }

    .tab-accordion__panel__icon svg,
    .tab-accordion__panel__icon img {
        width: 44px;
        height: 44px;
    }

    .tab-accordion__panel.has-icon .tab-accordion__panel__content {
        min-height: 160px;
    }
}


@media (min-width: 1200px) {
    .tab-accordion__panel__content {
        padding: 40px 109px 45px 109px;
    }

    .tab-accordion__tab.is-active:after {
        content: "";
        position: absolute;
        left: -2px;
        bottom: -35px;
        height: 40px;
        width: calc(100% + 4px);
        background: #DDE7F2;
    }

    .tab-accordion__navs {
        overflow-x: unset;
        margin: 0 0 24px;
    }

    .tab-accordion__tabs-scroll {
        overflow-x: unset;
    }

    .bg-blue .tab-accordion__tab.is-active:after {
        background: #172549;
    }

    .tab-accordion__panel__content:has(.tab-accordion__panel__icon) {
        padding: 40px 109px 45px 217px;
    }

    .tab-accordion__panel__icon {
        top: 40px;
        width: 114px;
        height: 114px;
        font-size: 56px;
        left: 36px;
    }

    .tab-accordion__panel__icon svg,
    .tab-accordion__panel__icon img {
        width: 56px;
        height: 56px;
    }

    .tab-accordion__panel.has-icon .tab-accordion__panel__content {
        min-height: 182px;
    }
}

/* Tabs scroll arrows when content exceeds 1340px */
@media (min-width: 1340px) {
    .tab-accordion__navs {
        gap: 12px;
        margin: 0 0 24px;
    }

    .tab-accordion__nav-arrow {
        display: flex;
    }

    .tab-accordion__tabs-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 1340px;
        /* Reserve space for .tab-accordion__tab.is-active:after connector (extends 35px below tabs) */
        padding-bottom: 40px;
        margin-bottom: -40px;
    }

    .tab-accordion__tabs-scroll::-webkit-scrollbar {
        display: none;
    }

    .bg-blue .tab-accordion__nav-arrow {
        background: var(--dark-blue);
        border-color: #81ABD9;
        color: #fff;
    }

    .bg-blue .tab-accordion__nav-arrow:hover,
    .bg-blue .tab-accordion__nav-arrow:focus {
        background: rgba(129, 171, 217, 0.25);
        border-color: #81ABD9;
        color: #fff;
    }
}