:root {
    --jm-radius: 30px;

}

.resource-library-header .wpb_wrapper {
    padding-top: 170px;
    padding-bottom: 170px;
}

.resource-library-header .wpb_wrapper h1 {
    text-align: center;
    margin: 0 0 50px 0;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .resource-library-header .wpb_wrapper {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .resource-library-header .wpb_wrapper h1 {
        margin: 0 0 30px 0;
    }
}

.resource-library-body .row-bg {
    position: relative;
    background-size: 100% auto !important;
}

.btns {
    display: inline-block;
    color: #fff !important;
    border: 2px solid #132B59;
    background-color: #132B59;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 25px;
    transition: 0.3s;
}

.btns:hover {
    border: 2px solid #3F72D2;
    background-color: #3F72D2;
    color: #fff !important;
}

.alert {
    position: relative;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
.alert.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.jm-pagination, .wp-pagenavi {
    margin: 0;
    list-style-type: none;
    clear: both;
    text-align: center;
    padding: 30px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.jm-pagination li, .wp-pagenavi li {
    margin: 0;
    padding: 0;
}
.jm-pagination a, .jm-pagination span, .wp-pagenavi a, .wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    padding: 0 5px;
    margin: 0 2px;
    background: none;
    color: #132B59;
    font-size: 20px;
    border: 1px solid #BFBFBF;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.jm-pagination li.active > *, .jm-pagination span.current, .wp-pagenavi li.active > *, .wp-pagenavi span.current {
    background-color: #132B59;
    color: #ffffff;
    text-decoration: none;
    border-color: #132B59;
    font-weight: 700;
}
.jm-pagination a:hover, .wp-pagenavi a:hover {
    border-color: #132B59;
    text-decoration: none;
}

.resource-search-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 840px;
}
@media (max-width: 999.98px) {
    .resource-search-wrapper {
        width: 100%;
    }
}
.resource-search-wrapper .resource-search-form {
    display: flex;
    justify-content: center;
}
.resource-search-wrapper .resource-search-form .resource-search {
    display: flex;
    width: 100%;
    background-color: #fff !important;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    overflow: hidden;
}
.resource-search-wrapper .resource-search-form .resource-search .search-field-wrapper {
    flex-grow: 1;
}
.resource-search-wrapper .resource-search-form .resource-search .search-field-wrapper input.search-field {
    width: 100%;
    padding: 20px 0 20px 30px;
    border: none;
    background-color: #fff !important;
    -webkit-border-radius: 30px 0 0 30px;
    -moz-border-radius: 30px 0 0 30px;
    border-radius: 30px 0 0 30px;
    font-size: 18px;
    line-height: 20px;
    outline: none;
}
.resource-search-wrapper .resource-search-form .resource-search .search-field-wrapper input.search-field::placeholder {
    color: #959595;
}
.resource-search-wrapper .resource-search-form .resource-search .search-submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-color: #fff;
}
.resource-search-wrapper .resource-search-form .resource-search .search-submit-wrapper button[type=submit].search-submit {
    background: none !important;
    border: none;
    padding: 0 !important;
    cursor: pointer;
    font-size: 20px;
    color: #1d2227;
    transform: none !important;
    box-shadow: none !important;
}
.resource-search-wrapper .resource-search-form .resource-search .search-submit-wrapper .search-submit:hover {
    color: #000;
}

.resource-search-wrapper .resource-search-form .resource-search .search-submit-wrapper button[type=submit].search-submit svg {
    display: block;
    width: 26px;
    height: 26px;
}

/*----- .resource-library-categories ------*/

.resource-library-categories-header {
    h5 {
        margin-bottom: 20px;
    }
}

.resource-library-categories-wrapper {
    position: relative;
    padding-top: 90px;
    padding-bottom: 90px;
}

@media (max-width: 1199.98px) {
    .resource-library-categories-wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.resource-library-categories-wrapper .resource-library-categories-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.resource-library-categories {
    display: grid;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(auto-fill, auto);
    width: 100%;
}
@media (max-width: 1199.98px) {
    .resource-library-categories {
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }
}

.resource-library-categories .category-card {
    grid-column: span 4;
    background-image: url("../images/category-card.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    -webkit-border-radius: var(--jm-radius);
    -moz-border-radius: var(--jm-radius);
    border-radius: var(--jm-radius);
    padding: 20px;
    display: flex;
}

@media (max-width: 1199.98px) {
    .resource-library-categories .category-card {
        grid-column: span 6;
    }
}

@media (max-width: 999.98px) {
    .resource-library-categories .category-card {
        grid-column: span 12;
    }
}

@media (max-width: 479.98px) {
    .resource-library-categories .category-card {
        flex-direction: column;
    }
}

.resource-library-categories .category-card .category-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    margin-right: 20px;
}

@media (max-width: 479.98px) {
    .resource-library-categories .category-card .category-icon-wrapper {
        margin: 0 auto 10px auto;
    }
}

.resource-library-categories .category-card .category-icon-wrapper .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
}

.resource-library-categories .category-card .category-icon-wrapper .category-icon img {
    display: block;
    max-width: 80px;
    max-height: 80px;
    margin: 0;
}

.resource-library-categories .category-card .category-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 479.98px) {
    .resource-library-categories-wrapper .resource-library-categories .category-card .category-content-wrapper {
        align-items: center;
    }
}

.resource-library-categories .category-card .category-content-wrapper h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left !important;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}
.resource-library-categories .category-card .category-content-wrapper h5 a {
    color: #ffffff !important;
    text-decoration: none;
}
.resource-library-categories .category-card .category-content-wrapper h5 a:hover {
    color: #ffffff !important;
    text-decoration: none;
}
.resource-library-categories .category-card .category-content-wrapper .category-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0 0 20px 0;
}

@media (max-width: 479.98px) {
    .resource-library-categories .category-card .category-content-wrapper h5 {
        margin: 0 0 6px 0;
    }
    .resource-library-categories .category-card .category-content-wrapper .category-description {
        text-align: center !important;
    }
}

.resource-library-categories .category-card .category-content-wrapper .category-description > *:last-child {
    margin-bottom: 0;
}
.resource-library-categories .category-card .category-content-wrapper .btns.category-button {
    color: #fff !important;
    border: 2px solid #fff;
    background-color: transparent;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
    padding:  12px 28px;
    margin-top: auto;
    border-radius: 25px;
}
.resource-library-categories .category-card .category-content-wrapper .btns.category-button:hover {
    background-color: #ffffff;
    color: #132B59 !important;
}

/*----- .resource-library-wrapper  ------*/

.resource-library-wrapper {
    position: relative;
    padding-top: 90px;
    padding-bottom: 90px;
}

@media (max-width: 1199.98px) {
    .resource-library-wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.resource-library-before-directory-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.resource-library-before-directory {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
}
.resource-library-before-directory > div {
    padding: 0 20px;
    margin-bottom: 10px;
}

.resource-library-before-directory-wrapper .filters {
    display: flex;
    margin-left: -15px;
    margin-right: -15px;
}
@media (max-width: 1000px) {
    .resource-library-before-directory-wrapper .filters {
        margin-left: -5px;
        margin-right: -5px;
        justify-content: space-between;
    }
}
@media (max-width: 768px) {
    .resource-library-before-directory-wrapper .filters {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 10px;
    }
}
.resource-library-before-directory-wrapper .filters .filter-group {
    padding: 0 15px;
}
@media (max-width: 1000px) {
    .resource-library-before-directory-wrapper .filters .filter-group {
        padding: 0 5px;
    }
}

@media (max-width: 700px) {
    .resource-library-before-directory-wrapper .filters .filter-group.all-categories-wrapper {
        width: 100%;
    }
}


.resource-library-before-directory-wrapper .resource-library-found-wrapper {
    margin: 30px 0 0 auto;
}

.resource-library-before-directory-wrapper .resource-library-found {
    font-size: 18px;
    line-height: 20px;
    padding: 15px 0;
}
@media (max-width: 1000px) {
    .resource-library-before-directory-wrapper .resource-library-found-wrapper {
        margin: 0;
    }
    .resource-library-before-directory-wrapper .resource-library-found {
        padding: 0;
    }
}

.resource-library-before-directory-wrapper .filter-group label {
    display: block;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 10px 10px;
}

.resource-library-before-directory-wrapper .filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 16px 40px 16px 28px;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: #1d2227;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%233f72d2" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .resource-library-before-directory-wrapper .filter-group select {
        padding: 16px 30px 16px 20px;
        background-position: right 10px center;
    }
}
.resource-library-before-directory-wrapper .filter-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(63, 114, 210, 0.4);
}
.resource-library-before-directory-wrapper .filter-group button[type=submit].search-submit {
    margin-top: 30px;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 30px !important;

    background-color: #132B59 !important;
    border: none;
    padding: 0 !important;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    transform: none !important;
    box-shadow: none !important;
}

.resource-library-before-directory-wrapper .filter-group button[type=submit].search-submit:hover {
    background-color: #3F72D2 !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.resource-library-before-directory-wrapper .filter-group button[type=submit].search-submit svg {
    display: block;
    width: 26px;
    height: 26px;
}
.resource-library-before-directory-wrapper .filter-group .all-categories {
    margin-top: 30px;
}

@media (max-width: 700px) {
    .resource-library-before-directory-wrapper .filter-group .all-categories {
        margin-top: 0;
    }
}


.resource-library-directory-list {
    position: relative;
}
.resource-library-directory-list .resource-list {
    border: 1px solid #132B59;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    margin-bottom: 10px;
    border-radius: 10px;
}

.resource-library-directory-list .resource-list.active {
    outline: none;
}
.resource-library-directory-list .resource-list.active .resource-list-header > i {
    -webkit-transform: translateY(-50%) rotate(45deg);
    -moz-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    -o-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}
.resource-library-directory-list .resource-list:not(.active) .resource-list-header:hover {
    background-color: #efefef;
}
.resource-library-directory-list .resource-list-header {
    position: relative;
    color: #132B59;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 10px;
    padding: 10px 60px 10px 10px;
}
@media (max-width: 1000px) {
    .resource-library-directory-list .resource-list-header {
        /*padding: 20px 70px 20px 20px;*/
    }
}
@media (max-width: 768px) {
    .resource-library-directory-list .resource-list-header {
        /*padding: 10px 48px 10px 10px;*/
    }
}
.resource-library-directory-list .resource-list-header > i {
    position: absolute;
    top: 50%;
    right: 10px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    font-size: 30px;
    color: #132B59;
}
@media (max-width: 1000px) {
    .resource-library-directory-list .resource-list-header > i {
        right: 20px;
    }
}
@media (max-width: 768px) {
    .resource-library-directory-list .resource-list-header > i {
        right: 10px;
    }
}
.resource-library-directory-list .resource-list-header h4 {
    font-weight: 700;
    margin: 0 !important;
    color: #132B59;
    position: relative;
    display: flex;
    text-transform: uppercase;
}
.resource-library-directory-list .resource-list-header .resource-list-meta-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 5px;
}
.resource-library-directory-list .resource-list-header .resource-list-meta-wrapper span {
    background-color: #f5f5f5;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    line-height: 16px;
    padding: 8px 14px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
}
@media (max-width: 1000px) {
    .resource-library-directory-list .resource-list-header .resource-list-meta-wrapper span {
        padding: 6px 14px;
    }
}
.resource-library-directory-list .resource-list-header .resource-list-meta-wrapper span i {
    margin-right: 6px;
}
.resource-library-directory-list .resource-list-body-wrapper {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}
.resource-library-directory-list .resource-list-body-wrapper .resource-list-body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    column-gap: 40px;
    row-gap: 10px;
    padding: 0 10px 10px 10px;
    margin-bottom: 0;
}


.resource-library-directory-list .resource-list-body-wrapper .resource-list-body > *:last-child {
    margin-bottom: 0;
}
.resource-library-directory-list .resource-list-body-wrapper .category-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -2px;
    margin-right: -2px;
    margin-bottom: 6px;
}
.resource-library-directory-list .resource-list-body-wrapper .category-list > div {
    padding: 0 2px 4px 2px;
}
.resource-library-directory-list .resource-list-body-wrapper .category-list a {
    display: inline-block;
    font-size: 14px;
    line-height: 16px;
    padding: 8px 14px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
    color: #ffffff !important;
    background-color: #132B59;
    border-color: #132B59;
}
.resource-library-directory-list .resource-list-body-wrapper .category-list a:hover,
.resource-library-directory-list .resource-list-body-wrapper .category-list a:focus {
    color: #ffffff !important;
    background-color: #3F72D2;
    border-color: #3F72D2;
}
.resource-library-directory-list .resource-list-body-wrapper .resource-list-image-wrapper {
    flex-shrink: 0;
    max-width: 300px;
}
@media (max-width: 991.98px) {
    .resource-library-directory-list .resource-list-body-wrapper .resource-list-image-wrapper {
        flex-shrink: inherit;
        max-width: 100%;
    }
}
.resource-library-directory-list .resource-list-body-wrapper .resource-list-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-border-radius: var(--jm-radius);
    -moz-border-radius: var(--jm-radius);
    border-radius: var(--jm-radius);
}