/* Blog and blog post section */

.blog {
    margin: 40px 0;
    padding: 0;
}

.blog .row {
    margin-right: -30px;
    margin-left: -30px;
}





/* Original stuff */

.blog .entry-wrapper {
    margin: 0 0 70px 0;
    padding: 0;
    border: 0;
    outline: 0;
}

.blog .blog-post .entry-image {
    width: 100%;
    margin-bottom: 20px;
    display: block;
    -webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.5);
    box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.5);
}

.blog .blog-post .entry-header .entry-time {
    display: block;
    padding: 0 0 30px 0;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
    color: var(--theme-gray-dark);
}

.blog .blog-post .entry-header .entry-title {
    margin: 3px 0 30px 0;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    color: var(--theme-primary);
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
}







/* Blog post in the list */

.blog .blog-post {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 50px;
    position: relative;
    min-height: 220px;
}

.blog .blog-post .blog-post-image {
    height: 220px;
    width: 220px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 8px 5px -5px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 8px 5px -5px rgba(0,0,0,0.5);
    box-shadow: 0px 8px 5px -5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
    filter: alpha(opacity=80);
    opacity: 0.8;
}

.blog .blog-post .blog-post-infos {
    height: 200px;
    width: 100%;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    padding: 20px 0 20px 170px;
    transition: all 0.3s ease;
}

.blog .blog-post .blog-post-infos-square {
    padding: 30px 25px;
    background-color: var(--theme-white);
    -webkit-box-shadow: 0px 11px 10px -8px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 11px 10px -8px rgba(0,0,0,0.5);
    box-shadow: 0px 11px 10px -8px rgba(0,0,0,0.5);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    height: 178px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog .blog-post .blog-post-infos-square > span,
.blog .blog-post .blog-post-infos-square > h4,
.blog .blog-post .blog-post-infos-square > div {
    margin: 2px 0;
    padding: 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog .blog-post .blog-post-infos-square > span {
    font-size: 11px;
    width: 100%;
    height: 12px;
    margin-left: -3px;
    color: var(--theme-gray);
}

.blog .blog-post .blog-post-infos-square > h4 {
    font-size: 18px;
    width: 100%;
    height: 18px;
    overflow: hidden;
    font-weight: bold;
    color: var(--theme-primary);
}

.blog .blog-post .blog-post-infos-square > div {
    margin: 10px 0;
}

.blog .blog-post:hover .blog-post-infos {
    padding: 20px 0 20px 175px;
}

.blog .blog-post:hover .blog-post-image {
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
}

.blog .blog-post:hover .blog-post-infos-square {
    margin-right: -5px;
}

.blog .blog-post .blog-post-infos-square > div > p:last-of-type {
    display: none;
}

/* Responsiveness */

@media screen and (max-width: 768px)
{
    .blog .blog-post {
        min-height: 400px;
    }
    
    .blog .blog-post .blog-post-image,
    .blog .blog-post:hover .blog-post-image {
        height: 250px;
        width: 100%;
        position: absolute;
        
        -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
        filter: alpha(opacity=100);
        opacity: 1;
    }
    
    .blog .blog-post .blog-post-infos,
    .blog .blog-post:hover .blog-post-infos {
        height: 600px;
        width: 100%;
        display: inline-block;
        position: absolute;
        top: 0;
        left: 0;
        cursor: pointer;
        padding: 200px 20px 0 20px;
        transition: all 0.3s ease;
    }
    
    .blog .blog-post .blog-post-infos-square,
    .blog .blog-post:hover .blog-post-infos-square {
        padding: 30px 25px;
        height: 200px;
        margin-right: 0;
    }
}





/* Everything on the right */

.blog .sidebars {
    width: 30%;
    position: relative;
    padding: 0 15px 0 30px;
}

.blog .widget {
    padding-left: 25px;
    margin-left: 5px;
    border-left: 1px solid var(--theme-gray-light);
}

.blog .widget .widget-title {
    padding: 0;
    position: relative;
    font-weight: bold;
    line-height: 1.1;
    margin: 0 0 40px 0;
    color: var(--theme-primary);
}

.blog .widget .widget-title:before
{
    content: " ";
    background-color: var(--theme-secondary);
    height: 6px;
    position: absolute;
    top: 35px;
    left: 0;
    width: 40px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.blog .widget .widget-title:after
{
    content: " ";
    border-bottom: 1px solid var(--theme-secondary);
    position: absolute;
    top: 38px;
    right: 25px;
    width: calc(100% - 75px);
}



.blog .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog .widget.widget_recent_entries ul li:first-child {
    padding-top: 0;
}

.blog .widget.widget_recent_entries li:last-child {
    padding-bottom: 0;
    border: none;
}

.blog .widget.widget_recent_entries ul li {
    padding: 15px 0;
}

.blog .widget.widget_recent_entries a {
    font-weight: bold;
    display: block;
}

.blog .widget.widget_recent_entries .post-date {
    display: block;
    position: relative;
    margin-top: 5px;
    margin-left: -3px;
    font-size: 12px;
    color: var(--theme-gray-dark);
}

.blog .entry-header-content {
    margin-top: -30px;
}






/* Share (at the bottom) */

.blog .share {
    border-top: 1px solid var(--theme-gray-light);
    padding: 7px 0;
}

.blog .share > div > a {
    font-size: 16px;
    font-weight: bold;
    color: var(--theme-secondary);
}

.blog .share > div > span {
    color: var(--theme-gray-dark);
    font-size: 14px;
}

.blog .share > div:last-of-type {
    text-align: right;
}

.blog .share > div:last-of-type > span:first-of-type:before {
    content: "\e97d";
    font-family: unicons;
    margin-right: 5px;
}

.blog .share .facebook:before {
    content: "\ec5d";
    font-family: unicons;
}

.blog .share .twitter:before {
    content: "\ec0c";
    font-family: unicons;
}

.blog .share .facebook:hover,
.blog .share .twitter:hover {
    text-decoration: none !important;
}