/* Blog Post Grid */

.blog-side-section {
    padding-left: var(--theme--gutters);
    padding-right: var(--theme--gutters);
}
.blog-side-section, .side-bar-section {
    padding-left: var(--theme--gutters);
    padding-right: var(--theme--gutters);
}
.wp-block-latest-posts__grid {
    
    .latestPost.card {
        border: 1px solid #dadada;
        height: 100%;
        position: relative;
        border-radius: var(--theme--border-radius);
        box-shadow: var(--theme--box-shadow);
    }

    .latestPost.card .card-body {
        position:relative;
        padding:var(--theme--card--padding, 10px);
        padding-bottom:calc(var(--theme--card--padding, 10px) * 3);
        background-color: var(--theme--primary-color-20);
        border-radius: var(--theme--border-radius);
    }

    a.latestPost.card {
        color:var(--wp--preset--color--text);
        text-decoration:none;
    }

    .latestPost.card a {
        cursor:pointer;
    }
    
    .latestPost.card a:hover {
        text-decoration:none;   
    }

    .wp-block-latest-posts__featured-image.card-img-top {
        position:relative;
        padding-bottom: 75%;
        margin-top: -30%;
    }

    .wp-block-latest-posts__featured-image.card-img-top img {
        position:absolute;
        left:0;
        top: 0%;
        right:0;
        height:100%;
        object-fit:cover;
        width: 100%;
        max-width:100%!important;
        max-height: unset !important;
        border-radius:var(--theme--border-radius, 10px);
    }

    .latestPost.card .card-img-top time {
        position: absolute;
        top: 1em;
        right: .95em;
        padding: .75em;
        background-color: var(--theme--primary-color);
        color: #fff;
        border-radius: calc(var(--theme--border-radius) / 2);
    }

    .latestPost.card .card-img-top time span {
        display:block;
        text-align:center;
        font-weight:400;
        text-transform: uppercase;
        line-height:1em;
    }

    .latestPost.card .card-img-top time span.day {
        font-size:1.5em;
    }
    .latestPost.card .card-footer{
        border:0;
        background-color: transparent;
        padding: 0;
    }

    .latestPost.card .read-more{
        position:absolute;
        right:var(--theme--card--padding, 10px);
        bottom:var(--theme--card--padding, 10px);
        color:var(--theme--button-text-color);
        background-color:var(--theme--button-color);
    }

    .wp-block-latest-posts__grid_cols{
        margin-top: 6rem;
        margin-bottom: 2rem;
    }
    
    .wp-block-latest-posts__post-title {
        margin-top:1em;
        font-size:1.375em;
    }

}
@media screen and (max-width: 767px){
    .wp-block-latest-posts__grid .latestPost.card .blog-img > img {
        height: 250px !important;
    }
}
.related-posts h2 {
    margin-bottom:0;
}

/*New Post Style*/

.post-wrapper-group.latestPost {
    position: relative;
}

.post-wrapper-group.latestPost time {
    position:absolute;
    top: 15px;
    right: calc(15px  + var(--theme--gutters));
    padding: 0.75em 1rem;
    background-color: var(--theme--primary-color);
    color:#fff;
    border-radius: var(--theme--border-radius);
}
.post-wrapper-group.latestPost time span {
    display:block;
    text-align:center;
    font-weight:400;
    text-transform: uppercase;
    line-height:1em;
}

.post-wrapper-group.latestPost time span.day {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* List view Slick */


.hh-latest-post-list-view-wrapper .slick-prev:before,
.hh-latest-post-list-view-wrapper .slick-next:before {
    color: #fff !important;
    opacity: 1;
    font-size: 1rem;
    font-weight: 400;
}

.hh-latest-post-list-view-wrapper .slick-prev,
.hh-latest-post-list-view-wrapper .slick-next {
    top: unset;
    bottom: -25px;
    z-index: 1;
    left: unset;
    background-color: var(--theme--primary-color);
    height: 3rem;
    width: 3rem;
}

.hh-latest-post-list-view-wrapper .slick-prev:focus,
.hh-latest-post-list-view-wrapper .slick-next:focus {
    background: var(--theme--primary-color);
}

.hh-latest-post-list-view-wrapper .slick-prev:focus:hover,
.hh-latest-post-list-view-wrapper .slick-next:focus:hover,
.hh-latest-post-list-view-wrapper .slick-prev:hover,
.hh-latest-post-list-view-wrapper .slick-next:hover {
    color: #fff;
    outline: none;
    background: var(--theme--primary-color-80);
}

.hh-latest-post-list-view-wrapper .slick-prev {
    right: calc(var(--theme--gutters) + 3rem + 2px);
}

.hh-latest-post-list-view-wrapper .slick-next {
    right: var(--theme--gutters);
}

@media screen and (max-width:991px){
.hh-latest-post-list-view-wrapper .slick-prev {
    right: calc(0px - var(--theme--gutters--mobile) + 3rem + 2px);
}

.hh-latest-post-list-view-wrapper .slick-next {
    right: calc(0px - var(--theme--gutters--mobile));
}
 .post-wrapper-group.latestPost time {
    right:  var(--theme--gutters--mobile);
 }

}


