/*------------------------------------*\
    
    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: 0.8em;
}

@media (min-width: 1025px) {
    .post-item {
        padding-top: 50px;
        margin-top: 50px;
    }
}

/** Blog Archive **/
.blog-post__item {
    border-top: 1px solid #ddd;
    box-shadow: 0 0 16px rgba(76, 102, 105, 0.12);
    background: #fff;
    border: none;
    color: #575757;
    border: none;
    width: 100%;
    display: block;
    height: calc(100% - 50px);
    margin-bottom: 50px;
}
.blog-post__item a,
.blog-post__item a:hover {
    border: none;
}
.blog-post__title {
    font-size: 45px;
}
.blog-post__meta {
    padding: 30px 32px 60px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    height: calc(100% - 198px);
    justify-content: space-between;
}
.blog-post__excerpt {
    font-style: normal;
    font-weight: normal;
}
/**
 * Sidebar
 */

/* Blog Sidebar */
.page-sidebar {
    margin-top: 30px;
}
.blog .page-sidebar .widget,
.page-sidebar .widget {
    margin-bottom: 50px;
}
.widget_search {
    position: relative;
    margin: 0px;
    right: -5px;
    top: 100%;
    margin-top: 0;
    margin-bottom: 30px;
}

.widget_search.js-search-active {
    display: block;
}

.widget_search button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translate(0, -50%);
    background: none;
    border: none;
    font-size: 15px;
}

.widget_search input {
    padding-right: 50px;
    color: #242424;
    font-size: 16px;
    border: none;
    height: 55px;
    border-radius: 10px;
    border: 1px solid #dedede;
    margin-left: -5px;
    font-style: normal;
    font-weight: 400;
    padding: 14px 15px;
}

.widget_search input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.page-sidebar h3 {
    font-size: 45px;
    line-height: 1.218em;
}

.page-sidebar .widget .container {
    padding-left: 0;
    padding-right: 0;
}

.blog-listing-container .page-sidebar .widget_categories,
.post-listing-container .page-sidebar .widget_categories {
    margin-bottom: 26px;
}

@media (min-width: 1200px) {
    .page-sidebar {
        margin-top: 0px;
    }
    .page-sidebar h3 {
        font-size: 75px;
        line-height: 1.213em;
    }
}
/**
* 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; */
    margin: 20px auto 0 auto;
}

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

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

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #4a4a4a;
}

/* 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);
    }
}

/* Single Post Pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background: #2a3c46;
    font-size: 15px;
    padding: 10px 20px;
    color: #fff;
    position: relative;
}

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

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

.btn-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;
}

.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 #ffffff;
}

.mobile-arrow {
    position: absolute;
}

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

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

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

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

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

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

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

.search-result__title {
    margin-bottom: 16px;
}

.search-result__excerpt {
    margin-bottom: 20px;
}
