/*------------------------------------*\

    Posts CSS

    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/


.post-item {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 30px;
}

.post-item:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.post-item__heading a {
    text-decoration: none;
}

.post-item .btn,
.post-item .btn-primary {
    margin-top: 30px;
}

.post-item__meta {
    font-size: .8em;
}


@media (min-width: 1025px) {

    .post-item {
        padding-top: 50px;
        margin-top: 50px;
    }

}


/**
 * Sidebar
 */

/* Blog Sidebar */

.blog .page-sidebar .widget {
	margin-bottom: 40px;
}

.blog-listing {
    display: grid;
    gap: 3rem 0;
}

.blog-container {
    margin-block: 2rem 3rem;
}

.blog-post__item {
    box-shadow: 1px 2px 5px 1px #00000024;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-post__img,
.blog-post__img img {
    width: 100%;
/*     height: 215px; */
    object-fit: cover;
}

.blog-post__meta {
    margin: 1.3rem 0 1.5rem;
    padding: .5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 0 0;
}

.single .blog-post__meta {
  margin: 1.5rem 0;
  padding: .5rem 0;
  border-bottom: 1px solid #d6dff0;
  display: flex;
  flex-direction: row;
}

.blog-post__title__link {
    padding-bottom: 0;
}

.blog-post__title {
    margin-top: 0;
    padding-bottom: 0.6rem;
    font-size: 26px;
    line-height: 1.2;
}

.blog-post__item-wrapper {
    height: 100%;
    width: 100%;
}

.blog-listing-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.load-more {
    margin-block: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-post__link {
    margin-top: auto;
}

.blog-post__date {
  color: #001F5B;
  font-size: 98%;
  margin-bottom: 5px;
  margin-right: 5px;
}

.blog-post__tags {
    margin-bottom: 1rem;
}

.blog-post__tags a:after {
    content: "\22C5";
    font-size: 36px;
    line-height: 0;
    padding: 0 .2rem 0 .4rem;
    position: relative;
    top: 5px;
}

.blog-post__tags a:last-of-type:after {
    content: "";
}

.widget_search {
    margin-bottom: 1.2rem;
}

@media (min-width: 800px) {
   .blog-listing {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-post__img {
/*         height: 315px; */
    }

    .blog-post__title {
        font-size: 36px;
    }

    .blog-post__tags {
        margin-bottom: .5rem;
    }

    .single .blog-post__tags {
        margin-bottom: 0;
    }
}


/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 0;
    min-width: 250px;
}
progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
    height: 10px;
    border: 0;
    border-radius: 0;
}
progress::-webkit-progress-bar {
    background-color: #ddd;
}
progress::-webkit-progress-value {
    background-color: #4a4a4a; /* TODO: Please add a branded background color for progress bar value */
}

/* Loading Indicator */
.is-loading:before  {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #E3E3E3 #E3E3E3 transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */
.load-more__btn {
    border: 0;
    display: block;
    margin-top: 20px;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    width: 20px;
    height: 20px;
}

/* Placeholder Space */
.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    width: 50px;
    height: 50px;
}

@-webkit-keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}


/* Search Results */
.search-result {
    text-decoration: none;
    display: block;
    margin-bottom: 50px;
}

.search-result__title {
    margin-bottom: 0;
}

.search-result__excerpt {
    margin-bottom:0;
}

.search-result:hover {
    text-decoration: none;
}


/* Sidebar */

.widget > h3 {
    padding-bottom: 10px;
    padding-top: 0;
    margin-top: 0;
}

.widget_recent_entries ul {
    margin-top: 0;
}

@media (min-width: 600px) {
    .single .page-sidebar {
        margin-top: 4rem;
    }
}
