/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.blog-post__column .blog-card-item {
    margin: 0;
    width: auto;
}

.blog-post__column .blog-card-detail {
    display: flex;
    padding: 25px 35px 35px;
}

.blog-post__column .blog-card__border {
    display: flex;
    flex-direction: column;
}

.blog-post__column .blog-card-detail .btn {
    align-self: flex-start;
    left: 0;
    bottom: 0;
    margin-top: auto;
    position: relative;
}

.blog-post__column {
    margin-bottom: 30px;
}


/**
 * Sidebar
 */

/* Blog Sidebar */
.page-sidebar {
    margin-top: 44px;
}

.page-sidebar .widget + .widget,
.widget + .widget {
	margin-top: 44px;
}

.page-sidebar .widget_search form {
    width: 100%;
    height: 40px;
    background-color: #EAEAEA;
    position: relative;
}

.page-sidebar .widget_search form input {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    color: #3E3A3A;
    font-size: 16px;
    font-weight: 300;
    padding-right: 30px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.page-sidebar .widget_search form button {
    position: absolute;
    color: #990033;
    font-size: 19px;
    right: 15px;
    top: 0;
    border: none;
    height: 100%;
    background: none;
}

.widget_categories .choices {
    margin-bottom: 4px;
}

.widget_categories_clearer {
    display: block;
    text-align: right;
    font-size: 14px;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .page-sidebar {
        margin-top: 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 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    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;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.4;
}

/* 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 Template
*/
.single-post .wysiwyg {
    padding: 0;
}

.single-post .wysiwyg .container {
    padding: 0;
}

.single-post .wysiwyg .col-md-8 {
    margin-left: unset;
    flex: 0 0 auto;
    width: 100%;
}

.post__thumbnail {
    max-width: 50%;
    max-height: 320px;
}

.post__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem 0;
}

.post__author-avatar {
    flex: 2;
    border: 5px solid #dadada;
    border-radius: 100%;
    height: 100px;
    max-width: 100px;
    margin-right: 10px;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.post__author-details {
    flex: 3;
    background: #dadada;
    padding: 15px;
}

/* Single Post Pagination */
.post-footer {
    border-top: 1px solid rgba(41,48,84,0.15);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
}

.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background:  #dadada;
    font-size:  15px;
    padding:  10px 20px;
    color:  #747474;
    position: relative;
}

.post-pagination-text {
    display: none;
}

.btn-post-pagination:hover {
    background: #ebebeb;
    color: #747474;
}

.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 #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 { 
    transform:  rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align:  inherit;
    }
}

@media (min-width: 1024px) {
    .post__author {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Search Results */
.search-result {
    background: transparent;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    text-decoration: none;
}

.search-result + .search-result {
    margin-top: 2rem;
}

.search-result__img-container img {
    height: auto;
}

.search-result__excerpt {
    margin-bottom: 20px;
}

.search-result__excerpt p {
    color: #3e3a3a;
}

.searchwp-live-search-result a {
    background: none;
}

.search-result__title {
    color: #3e3a3a;
    text-transform: none;
}

.search-result__title mark {
    text-transform: capitalize;
}

.search-result__link {
    align-self: flex-start;
}

.search-result:hover {
    text-decoration: none;
}

.search-result {
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}

.search-result:last-child {
    border: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .search-result {
        display: flex;
        flex-direction: row;
    }

    .search-result__img-container {
        flex-basis: 30%;
    }

    .search-result__body {
        flex-basis: 70%;
        padding-left: 1.2rem;
    }

    .search-result__body.no-img {
        flex-basis: 100%;
        padding-left: 0;
    }
}

@media (min-width: 1025px) {

    .search-result__img-container {
        flex-basis: 25%;
    }

    .search-result__body {
        flex-basis: 75%;
    }
}


@media (min-width: 1025px) {

    .search-result:hover {
        background: transparent;
    }
}

/* WP Page Navi */
.wp-pagenavi .pages {
    display: block;
    margin-bottom: 20px;
}

.wp-pagenavi a,
.wp-pagenavi span {
    padding: 0;
}

.wp-pagenavi a,
.wp-pagenavi span.current,
.wp-pagenavi span.extend,
.wp-pagenavi .page,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
    border-color: transparent;
    background: transparent;
    line-height: 1;
    color: #990033;
}

.wp-pagenavi span.extend {
    font-weight: bold;
}

.wp-pagenavi a:hover {
    color: #5F0020;
}

.wp-pagenavi span.current,
.wp-pagenavi .page {
    margin: 0 2px;
    padding: 10px 15px;
    transition:
        border-color 0.3s,
        background 0.3s,
        color 0.3s;
}


.wp-pagenavi a:hover {
    border-color: transparent;
}

.wp-pagenavi .page:hover,
.wp-pagenavi span.current {
    border-color: #5F0020;
    background: #5F0020;
    color: #fff;
}