/*
Custom styling for blogs, archives, search and single posts
*/

#blog-home .mobile-out,
#blog-hero .mobile-out{
	max-width: 500px;
}

.search-form label{
	flex: 0 0 75%;
}

.search-form input.search-field{
    border-radius: 25px;
    padding: 10px 1em;
    line-height: 1;
    font-family: 'MarselisPro';
    font-weight: 300;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 480px){
    .search-form label{
	flex: 0 0 100%;
        margin-bottom: 15px;
    }
}

.single div.entry-meta{
    text-align: left;
    border-top: 0;
    padding-top: 0;
    font-size: 24px;
}
.single .entry-meta,
.single .entry-meta a{
    color: #E51C2E;
}
.popular-articles .flexslider{
    width: calc(100% - 60px);
    margin: 0 auto 2em;
}

.popular-articles .post-block img,
.single .featured img{
    border-radius: 20px;
}

.popular-articles .post-block,
.popular-articles .post-block a.post-img{
    position: relative;
}

.popular-articles .post-block .post-info{
    transition: 0.5s;
    margin-top: 1em;
}

.popular-articles .flex-direction-nav .flex-next,
.popular-articles .flex-direction-nav .flex-prev{
    opacity: 1;
    border-radius: 50%;
    border: 1px solid #D33638;
    padding-top: 30px;
    width: 30px;
    height: 30px;
}

.popular-articles .flex-direction-nav .flex-next:before,
.popular-articles .flex-direction-nav .flex-prev:before{
    content: '';
    display:block;
    width:10px;
    height: 10px;
    border-right: 1px solid #D33638;
    border-bottom: 1px solid #D33638;
    position: absolute;
    top: 50%;
    left: 50%;
}

.popular-articles .flex-direction-nav .flex-prev:before{
    transform: translate(-25%,-50%) rotate(130deg);
}

.popular-articles .flex-direction-nav .flex-next:before{
    transform: translate(-75%,-50%) rotate(-45deg);
}

.flexslider:hover .flex-prev,
.popular-articles .flex-direction-nav .flex-prev{
    left: -45px;
}

.flexslider:hover .flex-next,
.popular-articles .flex-direction-nav .flex-next{
    right: -45px;
}

@media screen and (max-width: 1023px){
    #blog-home.hero,.blog-hero.hero {
        padding: 55% 0 30px;
    }
    #blog-home.hero .mobile-out,#blog-hero.hero .mobile-out{
        background: #fff;
        /*position: absolute;
        bottom:-10%;*/
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        padding: 32px !important;
    }
}

@media screen and (min-width: 1025px){
    .popular-articles .slides{display: block;}

    .popular-articles .post-block a.post-img{
        display: block;
    }
    
    .popular-articles .post-block a.post-img:before{
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        left: 0;
        background: rgba(0,0,0,0.2);
        border-radius: 1em;
    }
    
    .popular-articles .post-block .post-info {
        position: absolute;
        width: 90%;
        left: 5%;
        bottom: 60px;
        color: #fff;
        /*text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
        background: rgba(0,0,0,0.2);*/
        padding: 1em 1em 0;
        border-radius: 1em;
    }
    
    .popular-articles .post-block .post-info h2{
        color: #fff;
    }
}

@media screen and (min-width:1023px) and (max-width: 1200px){
    #blog-home.hero .content,#blog-hero.hero .content {
        min-height: 516px;
    }
  /*  #blog-home,#blog-hero{
        padding: 30% 0 30px;
        background-size: contain!important;
        background-image: url(https://blueprint.sirv.com/se-health/alberta/about/about-hero-desktop.jpg) !important;
    }*/
}

.popular-articles-archive .post-block .post-img img {
    border-radius: 1em;
}
.popular-articles-archive .post-block .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.84em;
    margin-bottom: 1em;
    margin-top: 1em;
    font-family: 'MarselisPro';
}
.popular-articles-archive .post-block .post-meta .post-cat a {
    color: inherit;
}
.popular-articles-archive .post-block .post-title {
    font-size: 21px;
}

.single article ul.disc, .single article ul {
    list-style: disc;
}

.the-posts .post-block {
    min-width: 260px;
}

.the-posts .post-cat,
.search-results .post-cat{
    margin-bottom: 10px;
}
.the-posts .post-cat a,
.search-results .post-cat a,
nav.navigation.paging-navigation a:focus, nav.navigation.paging-navigation a:hover{
    color: #E51C2E;
}
.the-posts .post-title,
.search-results .post-title{
    font-size: 21px;
}
.the-posts .post-block img,
.search-results .post-block img{
    border-radius: 1em;
}

@media screen and (max-width: 885px){
    .blog .the-posts .post-block{
        flex: 0 0 calc(50% - 32px);
    }
}

@media screen and (max-width: 595px){
    .blog .the-posts .post-block{
        flex: 0 0 100%;
    }
}

.category-nav{
    justify-content: center;
    gap: 20px 32px;
}

.category-nav a.active{
    font-weight: 600;
}
.category-nav a, .category-nav a:visited{
    font-family: 'MarselisPro';
    color: inherit;
}
.category-nav a:hover, .category-nav a:focus{
    color: #E51C2E;
}

.blog-ribbon-out{
    position: relative;
}
.blog-ribbon-out .blog-ribbon{
    position: absolute;
    width: 42%;
    min-width: 325px;
    bottom: 0;
    max-width: 200%;
    left: 0;
    transform: translate(-50%,30%);
    z-index: 1;
    transition: 0.5s;
}
@media screen and (max-width: 1023px){
    .blog-ribbon-out .blog-ribbon{
        transform: scaleX(-1) translate(-50%,30%) rotate(-10deg);
        right: 0;
        left: unset;
    }
}

@media screen and (max-width: 530px){
    .search-form label{
        flex: 0 0 100%;
        margin-bottom: 1em;
    }
    .blog-ribbon-out .blog-ribbon{
        transform: scaleX(-1) translate(-50%,10%) rotate(-10deg);
    }
}