/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/
.blog-post-item {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 16px rgba(0, 0, 0 , 0.12);
}

.blog-post-item a {
    background: none;
    border-bottom: none;
}

.blog-post-item__img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #000;
}

.blog-post-item__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #fff;
}

.blog-post-item__img.is-placeholder {
    object-fit: contain;
}

.blog-post-item__title {
    font-size: 24px;
    line-height: 1.25em;
}

.blog-post-item__title-link {
    display: block;
    text-decoration: none;
    color: #000;
}

.blog-post-item__meta {
    font-size: 0.8em;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-item__tag {
    margin-bottom: 5px;
    text-decoration: none;
    color: #ac2022;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.blog-post-item__excerpt {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 20px;
    color: #4c4c4c;
    text-decoration: none;
}

.blog-post-item__bottom {
    display: flex;
    justify-content: space-between;
    border-top: solid 1px #ccc;
    padding-top: 20px;
    text-decoration: none;
    color: #4c4c4c;
    text-transform: uppercase;
}

.blog-post-item__reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-item__reading-time i {
    font-size: 20px;
}

/* Featured Format */
.blog-post-item--featured {
    flex-direction: column;
}

.blog-post-item--featured > * {
    flex: 0 0 auto;
    width: 100%;
}

.blog-post-item--featured .blog-post-item__media a {
    display: block;
    height: 100%;
}

.blog-post-item--featured .blog-post-item__img-container {
    height: 100%;
}

.blog-post-item--featured .blog-post-item__meta {
    height: auto;
}

/* Blog Search Bar */
.blog-search-bar {
    margin: 25px 0;
    padding: 20px 0;
}

.blog-search-bar:first-child {
    margin-top: 0;
    padding-top: 0;
}

.single-post .blog-search-bar {
    margin: 0 0 25px 0;
    border-bottom: 1px solid #ccc;
}

/* Single Post */
.toc-container {
    margin: 0 0 50px;
    padding: 30px;
    border-radius: 5px;
    background-color: #EAEBED;
}

.single-blog-content {
    margin-bottom: 20px;
}

.single-blog-content .wysiwyg.bg-white {
    padding: 0;
}

.single-blog-content .wysiwyg.bg-white > .container {
    padding: 0;
}

.single-post-pagination {
    display: flex;
    justify-content: space-between;
}

.btn-single-post-pagination {
    background: #dadada;
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
}

.single-post-pagination-text {
    display: none;
}

.btn-single-post-pagination:hover {
    background: #ebebeb;
}

.btn-single-post-pagination strong {
    display: block;
    font-size: 12px;
}

.btn-previous-post,
.btn-next-post {
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-previous-post {
    padding-left: 40px;
}

.btn-next-post {
    padding-right: 40px;
}

.mobile-arrow:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #747474;
}

.mobile-arrow {
    position: absolute;
}

.btn-previous-post .mobile-arrow {
    left: 19px;
}

.btn-next-post .mobile-arrow {
    right: 19px;
}

.btn-previous-post .mobile-arrow:after {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

@media (min-width: 600px) {
    /* Overview */
    .blog-post-item--featured {
        flex-direction: row;
    }

    .blog-post-item--featured .blog-post-item__media {
        width: 33.33%;
    }
    
    .blog-post-item--featured .blog-post-item__meta {
        width: 66.66%;
    }
}

@media (min-width: 768px) {
    /* Single */
    .single-post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }
}

@media (min-width: 1200px) {
    .blog-post-itema {
        transition: color 0.3s;
    }

    .blog-post-item:hover a {
        color: #93191b;
    }

    .blog-post-item__bottom {
        transition: border-top-color 0.3s;
    }

    .blog-post-item:hover .blog-post-item__bottom {
        border-top-color: #93191b;
    }

    .blog-post-item {
        transition: box-shadow 0.3s;
    }

    .blog-post-item:hover {
        box-shadow: 0 0 16px rgba(0, 0, 0 , 0.24);
    }
}