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

    Posts CSS

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

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


.blog-listing {
    display: flex;
    flex-wrap: wrap;
}

.blog-listing:not(:last-child) {
	margin-bottom: 25px;
}

.blog-listing .col-xxs-12 {
    padding: 16px;
}

.blog-listing h3 {
    width: 100%;
}

.blog-post__item {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
    height: 100%;
}

.blog-post__img-container {
    width: 100%;
    height: 200px;
}

.search-results .blog-post__img {
	height: 100px;
}

.blog-post__meta {
    padding: 30px 17px 74px 30px;
}

.blog-post__tag {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-align: left;
    color: #006db5;
    font-weight: 300;
    text-transform: uppercase;
}

.blog-post__tag:not(:last-child)::after {
	content: ',';
	font-size: inherit;
}

.blog-post__title {
    font-size: 18px;
    font-weight: 500;
    color: #013457;
    word-spacing: 0.1em;
    letter-spacing: 0.1em;
    padding: 0;
    text-transform: uppercase;
}

.blog-post__excerpt {
    font-size: 16px;
    word-spacing: 0;
    color: #444444;
    font-weight: 300;
    line-height: 1.625em;
    padding-top: 5px;
}

.blog-post__link {
    position: absolute;
    right: 0;
    bottom: 0;
}

.blog-post__link button {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgb(0, 71, 187);
    background: linear-gradient(0deg, rgba(0, 71, 187, 1) 0%, rgba(0, 109, 181, 1) 100%);
    font-size: 20px;
    color: #fff;
    transition: all ease 0.3s;
    border-radius: 20px 0 0 0;
}

.blog-listing__pagination {
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .blog-listing {
        justify-content: center;
    }

    .blog-post__meta {
        padding: 10px 28px 48px 20px;
    }
    .blog-post__title {
        font-size: 21px;
        line-height: 1.333em;
    }
    .blog-post__excerpt {
        font-size: 17px;
        line-height: 1.529em;
        padding-top: 10px;
    }

    .blog-post__item--search {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1200px) {
    .blog-post__meta {
        padding: 30px 17px 74px 30px;
    }
    .post-item {
        padding-top: 50px;
        margin-top: 50px;
    }
    .blog-post__item:after {
        content: "";
        width: 0;
        right: 0;
        position: absolute;
        height: 6px;
        background-color: #0047BB;
        z-index: 11111;
        bottom: 0;
        transition: all ease 0.3s;
        border-radius: 50px;
    }
    .blog-post__item:hover:after {
        width: 35%;
    }

}


/*
 * Search
 */
 @media (min-width: 768px) {
     .blog-post__item--search {
         flex-direction: row;
         flex-wrap: nowrap;
         align-items: center;
     }
     .blog-post__item--search .blog-post__img-container {
        flex-basis: 200px;
        flex-shrink: 0;
        padding-top: 0;
        padding-left: 30px;
        padding-bottom: 0;
        height: auto;
     }
     .blog-post__item--search .blog-post__meta {
         padding-top: 30px;
         padding-left: 30px;
     }
 }



/**
 * Sidebar
 */

/* Blog Sidebar */

.page-sidebar .widget .container,
.page-sidebar .widget .container .row,
.page-sidebar .widget .container .col-xxs-12 {
    padding: 0;
    margin: 0;
}

.page-sidebar {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    padding: 28px;
}

.page-sidebar h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.widget_search {
    margin-bottom: 40px;
}

/* Search */
.wp-block-search__label {
    display: none;
}

.wp-block-search__inside-wrapper {
    position: relative;
}

.wp-block-search__input {
    border: none;
    padding: 10px 50px 10px 15px;
}

.wp-block-search__button.has-icon {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    height: 100%;
    border: none;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    background: linear-gradient(135deg,#006db5 0%,#0047bb 100%);
    color: #fff;
}

.wp-block-search__button.has-icon:hover {
    background: linear-gradient(135deg,#0047BB 0%,#0047BB 100%);
}

.wp-block-search__button svg {
    width: 30px;
    height: 30px;
}

@media (min-width: 1200px) {
    .page-sidebar {
        padding: 32px;
        margin-left: 16px;
    }
}



/**
* 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: 8px;
    border: 0;
    border-radius: 0;
}
progress::-webkit-progress-bar {
    background-color: #e6e6e6;
}
progress::-webkit-progress-value {
    background-color: #0047BB; /* 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.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: #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;
    margin: 30px 0;
}

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

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

.btn-post-pagination:hover {
    background: #013457;
    color: #fff;
}

.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: left;
}

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

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

.btn-post-pagination:hover .mobile-arrow:after {
    border-left: 6px solid #fff;
}

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

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

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

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