.nhsa-resource{
    margin-bottom: 2%;
}

a.bg-image.box {
    /* height: 150px; */
    padding-bottom: 56%;
    width: 100%;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin-bottom: 10%;
}

.nhsa-resource .inner {
    box-shadow: rgba(0, 0, 0, 0.13) 10px 10px 15px;
}

.nhsa-resource .resource-type,
.nhsa-resource .content{
    position: relative;
    padding: 0 20px;
}

ul.nhsa-resource-filters {
    padding: 0;
}

ul.nhsa-resource-filters li:hover{
    background-color: #8e407a;

}

ul.nhsa-resource-filters li {
    display: inline-flex;
    margin: 2px 4px;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/*Terms Grid Shortcode*/

.nhsa-terms-grid .term-wrapper{
    display: flex;
    position: relative;
    box-shadow: rgba(0,0,0,0.125) 10px 10px 15px;
    margin-bottom: 20px;
    border: solid #efefef 1px;
}

.nhsa-terms-grid .term-wrapper:hover{
    transform: translate(3px,3px);
}

.nhsa-terms-grid .term-image{
    display: inline-block;
    width: 25%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 10px 0 10px;
}

.term-title{
    margin-left: 10px;
}

.nhsa-terms-grid .link-overlay{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.fl-post-meta .post-type-icon {
    color: #008482;
}

.modal-body .date-row,
.date-row{
    display: flex!important;
}

.date-row > *{
    margin-right: 10px;
}

.fl-post-meta .pill,
a.pill:link,
a.pill:visited{
    background: #008482;
    display: inline-block;
    color: #fff;
    margin:2px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}

.fl-post-meta .pill:hover,
a.pill:link:hover,
a.pill:visited:hover{
    background: #71a5a1;
    text-decoration: none;
    color: #fff;
}

.related-posts .fl-callout-text-wrap{
    font-size: 14px;
    margin: 18px 0;
}

.columns-2{
    columns:2;
}

/*//related content on events page*/
.fl-module.columns .related-posts {
    display: flex;
    flex-direction: column;
}

.fl-module.columns .related-posts > * {
    padding: 20px;
}


span.post-type-icon {
    width: 1.5em;
    display: inline-flex;
    margin-right: 12px;
    flex-direction: column;
    justify-content: center;
    vertical-align: text-bottom;
}

.related-posts .read-more-link{
    display: block;
    text-align: right;
}

.related-posts .fl-callout-icon-left-title .fl-callout-title-link{
    display: flex;
    flex-direction: row;
}

.related-posts .fl-callout-icon-left-title .fl-callout-title-link > span{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right:12px;
}


.related-posts .fl-callout-icon-left-title i:before {
    font-size: 32px;
}

.related-posts img.nhsa-icon {
    width: 32px;
    margin-right: 12px;
}

/*aithorbox shortcode*/
.nhsa-authorbox-wrapper {
    padding: 20px;
    border: solid 1px #999;
    display: flex;
    flex-direction: column;
    position: relative;
}

.nhsa-authorbox-wrapper .nhsa-authorbox-image{
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 150px;
    width: 150px;
    display: block;
    margin: 0 auto 20px;
}

.nhsa-authorbox-author-name{
    margin-top: 0;
}


/*//medium screens and above*/
@media (min-width: 991px){

    .nhsa-authorbox-wrapper {
        flex-direction: row;
    }

    .nhsa-authorbox-wrapper .nhsa-authorbox-image{
        margin: 0 20px 0 0;
        display: inline;
    }


    .nhsa-terms-grid .term-wrapper,
    .nhsa-terms-grid.columns-2 .term-wrapper{
         width: calc( 50% - 20px);
         margin-right: 20px;
    }

    .nhsa-terms-grid.columns-1 .term-wrapper{
         width: calc( 100% );
         margin: 0;
    }

    .nhsa-terms-grid.columns-3 .term-wrapper{
         width: calc( 33% - 15px);
         margin-right: 15px;
    }

    .nhsa-terms-grid.columns-4 .term-wrapper{
         width: calc( 25% - 10px);
         margin-right: 10px;
    }

    /*//related content on events page*/
    .fl-module.columns .related-posts {
        flex-direction: row;
    }

    .fl-module.columns .related-posts > * {
        width: 33.333%;
        padding: 0 20px;
    }

}

/*//medium screens and above*/
@media (min-width: 1220){
    /*.fl-module.columns .related-posts > * {
        width: 25%;
    }*/
}

