/* .mgcaptf-tax-group { display: none; }
.mgcaptf-tax-group.active { display: block; }
.mgcaptf-filter-label { margin-right: 10px; display: inline-block; background: #eee; padding: 5px; border-radius: 3px; }
.mgcaptf-filter-label button { margin-left: 5px; background: none; border: none; } */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.all-posts.fl-full-width .fl-page {
    overflow-x: hidden;
}

.all-posts .fl-row:not(.team-hero-section, .featured-row) .fl-module-content .fl-html {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 68px;
    margin-bottom: 70px;
}

.all-posts .fl-row:not(.team-hero-section, .featured-row) .header-top-menu .fl-module-content .fl-html {
    margin: 0 !important;
}

#mgcaptf-filter-form {
    max-width: 257px;
    width: 100%;
}

#mgcaptf-listing-container {
    padding-top: 50px;
    padding-bottom: 46px;
    padding-left: 67px;
    padding-right: 67px;
    background-color: #ffffff;
    border: 2px solid black;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

#mgcaptf-listing-container::before {
    /* background-color: #e4eaed; */
    width: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    height: 100%;
    z-index: 1;
}

.mgcaptf-post-list .mgcaptf-post-item {
    background: #FFFFFF;
    border: 1px solid rgb(127 224 140 / 40%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    transition: all .5s ease;
    position: relative;
}

.mgcaptf-post-list .mgcaptf-post-item ul {
    position: relative;
    z-index: 5;
}

#mgcaptf-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: 10px;
    margin: 16px 0;
}

#mgcaptf-meta-result-count {
    flex: 1 1 auto;
}

.mgcaptf-post-list .mgcaptf-post-item::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* background: linear-gradient(169deg, #FFFFFF 65.24%, #d9f9cd 86.68%); */
    transition: opacity 0.5s ease-out;
    z-index: 2;
    opacity: 0;
}

.mgcaptf-post-list .mgcaptf-post-item:hover {
    border: 1px solid #7fe07f;
    transition: all .5s ease;
}

.mgcaptf-post-list .mgcaptf-post-item:hover:before {
    opacity: 1;
}

.mgcaptf-post-item ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 10px;
    row-gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mgcaptf-post-item ul li {
    background: #f0ffdf;
    border-radius: 50px;
    width: fit-content;
    padding: 5px 7px 3px;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    font-family: 'Avenir95Black', Arial, sans-serif;
    font-weight: 800;
    transition: all .3s ease;
    color: #000000;
    display: inline-block;
}

#mgcaptf-meta-applied-filters:empty {
    display: none;
}

#mgcaptf-meta-applied-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
    row-gap: 10px;
    width: 100%;
}

#mgcaptf-meta-applied-filters .mgcaptf-filter-pill {
    position: relative;
    display: block;
    padding: 6px 30px 6px 10px;
    border: unset;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: 800;
    background: #515C74;
    border-radius: 6px;
    font-family: 'Avenir95Black', Arial, sans-serif;
}

#mgcaptf-meta-applied-filters .mgcaptf-filter-pill>a {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 10;
    line-height: 30px;
    font-size: 25px;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration:none;

}

#mgcaptf-post-results {
    margin-top: 15px;
}

#mgcaptf-meta-sort-filter-container select {
    background-color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 20px;
    color: #515C74;
    padding: 9px 45px 8px 15px;
    border: 1px solid rgb(127 224 140 / 40%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

#mgcaptf-meta-sort-filter-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 20px;
}

#mgcaptf-meta-sort-filter-container p {
    margin: 0;
}

.mgcaptf-post-item:hover ul li {
    background: #000000;
    color: #ffffff;
    transition: all .3s ease;
}


#mgcaptf-search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 20px;
}

#mgcaptf-search-container input {
    padding: 12px 20px;
    border-radius: 3px;
    border: 0;
    outline: 1px solid gb(127 224 140 / 40%);
    /* vk spot */
}

#mgcaptf-search-container input:focus {
    border-color: transparent;
    outline: 2px solid #7FB4E0;
}

#mgcaptf-search-container button {
    /* background: linear-gradient(89.95deg, #CEF0FF 2.98%, #BCEAFD 52.31%, #8ED8F8 80.7%); */
    background: black;
    /* border-radius: 230px 88px 400px 230px !important; */
    /* border-radius: 230px !important; */
    transition: all .3s ease !important;
    padding: 12px 35px 8px 25px !important;
    line-height: 25px;
    letter-spacing: -0.01em;
    text-align: left;
    color: #ffffff !important;
    border: 0;
    font-weight: 700;
}

#mgcaptf-search-container button:hover {
    /* background: linear-gradient(89.95deg, #FFFFFF 11.81%, #BCEAFD 84.65%, #8ED8F8 99.91%); */
    background: white;
    color: black !important;
    transition: all .3s ease !important;
    font-size: 17px !important;
}

.mgcaptf-post-list .mgcaptf-post-item h3 a {
    font-size: 18px;
    line-height: 25px;
    color: #515C74;
    font-family: 'AvenirPro55Roman', Arial, sans-serif;
    font-weight: 400;
    transition: all .3s ease;
    margin: 10px 15px 0px 0px;
}

.mgcaptf-post-list .mgcaptf-post-item h3 a span {
    position: relative;
    z-index: 10;
}

.mgcaptf-post-list .mgcaptf-post-item h3 a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 10;
    height: 100%;
}

.mgcaptf-post-list .mgcaptf-post-item:hover h3 a {
    color: #000000;
    transition: all .3s ease;
}

#mgcaptf-taxonomies .mgcaptf-tax-group strong,
#mgcaptf-post-types-container h3,
#mgcaptf-post-types-container h3 strong {
    font-weight: 500;
    font-size: 28px;
    line-height: 38px;
    color: #001b05;
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
    pointer-events: none;
}

#mgcaptf-post-types-filter-container>br,
#mgcaptf-taxonomies .mgcaptf-tax-group>br,
#mgcaptf-post-types>br {
    display: none;
}

#mgcaptf-post-types-container,
#mgcaptf-taxonomies>*:not(:last-child) {
    padding-bottom: 25px;
}

#mgcaptf-taxonomies .mgcaptf-tax-group label,
#mgcaptf-post-types label {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: #414e46;
    position: relative;
    cursor: pointer;
    padding: 0 10px 0 28px;
    margin-bottom: 10px;
}

#mgcaptf-taxonomies .mgcaptf-tax-group label input,
#mgcaptf-post-types label input {
    opacity: 0;
    position: absolute;
    visibility: hidden;
    z-index: -10;
}

#mgcaptf-taxonomies .mgcaptf-tax-group label::before,
#mgcaptf-post-types label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: block;
    -webkit-transition: all .15s ease;
    -o-transition: all .15s ease;
    transition: all .15s ease;
    z-index: 10;
    background-color: #DDF1FD;
    border: 1px solid #A4BFD7;
    border-radius: 4px;
}

#mgcaptf-taxonomies .mgcaptf-tax-group label:has(input:checked)::before,
#mgcaptf-post-types label:has(input:checked)::before {
    background-color: #2B3990;
    border: 1px solid #2B3990;
}

#mgcaptf-taxonomies .mgcaptf-tax-group label:has(input:checked)::after,
#mgcaptf-post-types label:has(input:checked)::after {
    content: "";
    height: 7px;
    width: 12px;
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 10;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.mgcaptf-meta-sort-filter {
    position: relative;
}

.mgcaptf-meta-sort-filter::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 14px;
    height: 7px;
    background: url(/wp-content/uploads/2023/04/sprite.svg) -214px -70px;
    z-index: 1;
    pointer-events: none;
}

.listing-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #00000031;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-top: 30px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#mgcaptf-load-more {
    color: #0D6D92;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: -0.01em;
    transition: all .3s ease;
    padding: 12px 35px 8px 25px;
    border: 0;
    border-radius: 230px 88px 400px 230px;
    position: relative;
    text-align: center;
    text-decoration: none;
    background: transparent;
    display: block;
    margin: 0 auto;
    margin-top: 40px;
}

#mgcaptf-load-more:hover {
    color: #02374C;
    font-size: 19px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
    transition: all .3s ease;
}

#mgcaptf-load-more::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 230px 88px 400px 230px;
    padding: 3px;
    background-image: linear-gradient(to left, rgba(25, 173, 238, 0.5) 0%, rgba(39, 62, 149, 0.5) 69%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all .3s ease;
}

#mgcaptf-load-more:hover {
    background: linear-gradient(89.95deg, #FFFFFF 11.81%, #BCEAFD 84.65%, #8ED8F8 99.91%);
    transition: all .3s ease;
}


@media (max-width: 992px) {

    .mgcaptf-main-container{
        grid-template-columns : 1fr !important;
    }

        .mgcaptf-listing-container {
        background-color: white !important;
    }


    #mgcaptf-filter-form {
        max-width: 214px;
    }

    #mgcaptf-listing-container {
        padding-top: 40px;
        padding-left: 50px;
    }

    #mgcaptf-meta {
        row-gap: 15px;
    }

    .mgcaptf-tax-term-list,
    .mgcaptf-post-types {
        /* display: none; */
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group strong,
    #mgcaptf-post-types-container h3,
    #mgcaptf-post-types-container h3 strong {
        pointer-events: all;
    }
}

@media (max-width: 767px) {

    .mgcaptf-main-container {
        grid-template-columns : 1fr !important;
        
    }

    #mgcaptf-listing-container::before {
        z-index: -1;
    }

    #mgcaptf-listing-container::after {
        /* background-color: #e4eaed; */
        width: 100%;
        content: "";
        position: absolute;
        top: 0;
        right: 100%;
        height: 100%;
        z-index: -1;
    }

    #mgcaptf-filter-form {
        max-width: 100%;
    }

    #mgcaptf-listing-container {
        padding: 15px 0;
        border-radius: 0;
        margin-top: 20px;
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group strong,
    #mgcaptf-post-types-container h3,
    #mgcaptf-post-types-container h3 strong {
        font-size: 22px;
        line-height: 32px;
    }

    #mgcaptf-post-types-container h3,
    #mgcaptf-post-types-container h3 strong {
        margin: 0
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group strong {
        margin: 0;
    }

    .all-posts .fl-row:not(.team-hero-section, .featured-row) .fl-module-content .fl-html {
        flex-direction: column;
        margin-top: 0;
        row-gap: 40px;
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group strong,
    #mgcaptf-post-types-container h3 strong {
        padding-left: 28px;
        position: relative;
        margin-left: -30px;
    }

    #mgcaptf-post-types-container,
    #mgcaptf-taxonomies>*:not(:last-child) {
        padding-bottom: 20px;
    }

    .mgcaptf-tax-term-list,
    .mgcaptf-post-types {
        padding: 20px 0 0;
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group strong::before,
    #mgcaptf-post-types-container h3 strong::before {
        content: "";
        position: absolute;
        left: 0px;
        top: 10px;
        width: 14px;
        height: 8px;
        background: url(/wp-content/uploads/2023/04/sprite.svg) -214px -70px !important;
        background-position: center;
        transition: all .3s ease-in-out;
    }

    #mgcaptf-taxonomies .mgcaptf-tax-group.dropdown-initiated strong::before,
    #mgcaptf-post-types-container.dropdown-initiated h3 strong::before {
        transform: rotate(180deg);
    }
}


/* Es - Search modal design */
.mgcaptf-search-popup {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -99999;
    will-change: opacity;
    transition: opacity .4s ease-in-out;
    background-color: #000000cc !important;
}

.mgcaptf-search-popup.mgcaptf-search-popup--visible {
    opacity: 1;
    z-index: 99999;
}

#mgcaptf-search-popup.mgcaptf-search-popup .mgcaptf-popup-search-wrapper {
    margin: 0 0 48px !important;
    width: 100%;
    max-width: 600px !important;
    padding: 2rem 15px 0 !important;
    transform: scale(0.9);
    transition: all .4s ease-in-out;
    will-change: transform;
}

#mgcaptf-search-popup.mgcaptf-search-popup.mgcaptf-search-popup--visible .mgcaptf-popup-search-wrapper {
    transform: scale(1) !important;
}

#mgcaptf-popup-search-form button {
    font-weight: 700;
    line-height: 1.5;
    padding: 8px 23px !important;
}

#mgcaptf-popup-search-form button:hover {
    background-color: #004e82 !important;
    border-color: #004e82 !important;
}

.header-menu-section .hp-menu-middle-col {
    width: 55%;
}

.header-top-menu .fl-col-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.mgcaptf-search-icon-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Cscript xmlns=''/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
    margin-left: 6px;
}

.mgcaptf-search-icon-btn:hover {
    background-color: transparent;
    text-decoration: none;
    border: 0;
}

.header-menu-section .fl-col-group-equal-height.fl-col-group-custom-width {
    flex-wrap: nowrap;
}

.mgcaptf-search-icon-btn img {
    display: none !important;
    position: absolute;
    opacity: 0;
    z-index: -10;
    visibility: hidden;
}

.mgcaptf-search-icon-btn {
    background-color: transparent;
    border: 0;
}


@media (max-width: 959px) {
    #mgcaptf-popup-search-form input[type="text"] {
        min-height: initial !important;
        padding: 7px 8px !important;
    }

    #mgcaptf-popup-search-form button {
        min-height: initial !important;
        padding: 7px 18px !important;
    }
}

/*** Global Search Related Styles ***/
.bruker-event-wrapper .custom-search-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 35px 10px 16px;
    border: none;
    height: 52px;
    border-radius: 6px;
    background-color: #f5f5f5;
    font-size: 16px;
    outline: none;
}

.bruker-event-wrapper .custom-search-wrapper input::placeholder {
    color: #00455f;
}



.bruker-event-wrapper .custom-search-wrapper {
    flex: 0 1 auto;
    width: calc(66.7% - 12px);
    margin: 0;
}

#mgcaptf-popup-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

#mgcaptf-search-popup {
    background-color: #000000cc !important;
}

#mgcaptf-popup-search-form input[type="text"] {
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25) !important;
    border-radius: 8px !important;
    font-size: 22px !important;
    min-height: 52px !important;
    padding: 10px 16px !important;
}

#mgcaptf-popup-search-form button {
    text-transform: uppercase !important;
    font-size: 20px !important;
    min-height: 52px !important;
    background: linear-gradient(89.95deg, #CEF0FF 2.98%, #BCEAFD 52.31%, #8ED8F8 80.7%);
    border-radius: 230px 88px 400px 230px !important;
    transition: all .3s ease !important;
    padding: 12px 35px 8px 25px !important;
    line-height: 25px;
    letter-spacing: -0.01em;
    text-align: left;
    color: #004560 !important;
}

#mgcaptf-popup-search-form button:hover {
    background: linear-gradient(89.95deg, #FFFFFF 11.81%, #BCEAFD 84.65%, #8ED8F8 99.91%);
    transition: all .3s ease !important;
    font-size: 21px !important;
}

.mgcaptf-search-icon-btn {
    background-color: transparent;
    border: 0;
}

.mobile-search .fl-html {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


#mgcaptf-search-popup>div {
    padding: 0 !important;
    background: transparent !important;
}

#mgcaptf-search-popup .close-popup {
    display: none;
}

.mgcaptf-main-container {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 900px;
}


@media(max-width: 767px) {    
    .bruker-event-wrapper .custom-search-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}