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

.blog-single-container .col-md-8 .wysiwyg:first-child {
    padding-top: 0;
    padding-bottom: 50px;
}

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

.blog-single-container .wysiwyg .container {
    padding: 0;
}

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

.card-flex {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.card-item {
    padding: 0 16px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    transition: transform .2s linear;
    background: #F4F4F4;
    border: none;
}

.card:hover {
    background-color: #EEF6FF;
}

.card__img-wrap {
    width: 100%;
    height: 200px;
}

.card__img-wrap .placeholder-image,
.card__img-wrap.Contain img {
    -o-object-fit: contain;
    object-fit: contain;
}

.card__img-wrap.Contain img {
    object-position: top;
}

.card__bottom {
    padding: 0 20px 28px 20px;
}

.card__details {
    padding: 26px 25px 20px 20px;
}

.card__description,
.card__title {
    text-decoration: none;
    -webkit-text-decoration-color: transparent;
            text-decoration-color: transparent;
}

.card__description p {
    color: #737373;
    font-weight: 400;
}

.card__title {
    color: #002855;
    font-size: 18px;
}

.card__cta {
    margin-top: 0;
}

.card__info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 400;
    color: #231F20;
    padding-bottom: 16px;
}

.cards__bttn {
    padding-top: 30px;
}

.cards__title h2 {
    padding-bottom: 0;
}

.cards__headlines {
    padding-bottom: 35px;
}

@media (min-width: 768px) {
    .card__bottom {
        padding: 0 20px 28px 20px;
    }
    
    .card__details {
        padding: 26px 25px 20px 20px;
    }

    .card__title {
        font-size: 16px;
    }

    .cards__headlines {
        padding-bottom: 45px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
}

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


@media (min-width: 1200px) {
    .card__title {
        font-size: 20px;
    }
    
    .cards__headlines {
        padding-bottom: 55px;
    }
}


/**
 * Sidebar
 */

/* Blog Sidebar */

.page-sidebar .widget:not(:last-child) {
	margin-bottom: 50px;
}

.page-sidebar {
    padding-top: 50px
}

.page-sidebar .widget .container {
    padding: 0
}

.page-sidebar .wp-block-search__button {
    background-color: #002855;
    color: #FFF;
    border: 1px solid #002855;
    margin: 0;
    margin-left: 10px;
}

.page-sidebar .wp-block-search__button:hover {
    background-color: #002855;
    border: 1px solid #002855;
}

.page-sidebar .wp-block-search__inside-wrapper input {
    flex-grow: 1;
	margin-left: 0;
	margin-right: 0;
	min-width: 3rem;
	padding: 8px;
	text-decoration: unset !important;    
    border: 1px solid #ddd;
    border-radius: 100px;
    padding-left: 20px;
}

.wp-block-search__label {
    display: none;
}

.page-sidebar .choices__inner {
    border: 1px solid #ddd;
    border-radius: 100px;
}

.blog-single-container .wysiwyg {
    padding-top: 0;
    padding-bottom: 50px;
}

.widget-popular-posts h3 {
    font-size: 30px;
    line-height: 1.33em;
}

.page-sidebar .popular-posts {
    margin: 0;
}

@media (max-width: 767px) {
    .wp-block-search__inside-wrapper {
        flex-direction: column;
    }

    .page-sidebar .wp-block-search__button {
        max-width: 200px;
        margin: 20px auto 0;
    }
}

@media (min-width: 1025px) {
    .page-sidebar {
        padding-top: 0
    }

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

@media (min-width: 1200px) {
    .widget-popular-posts h3 {
        font-size: 35px;
        line-height: 1.28em;
        padding-bottom: 20px;
    }
}


/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 12px;
    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: #fff;
    border: 1px solid #ddd;
    border-radius: 100px; 
}
progress::-webkit-progress-value {
    background-color: #BBDBFF; /* 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;
}

.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;
    margin-bottom: 20px;
    margin-top: 50px;
}

.bg-white + .post-pagination {
    margin-top: 0;
}

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

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

.btn-post-pagination:hover strong,
.btn-post-pagination:hover .post-pagination-text {
    color: #002855;
}

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

/* Search Results */
.search-result-listing .tab-accordion {
    padding: 0;
}

.search-result-listing .tab-accordion__panel__content {
    border: 1px solid #A0A0A0;
    padding: 30px;
}

.search-result-listing .tab-accordion__tab:after {
    display: none;
}

.search-result {
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #A0A0A0;
    padding-bottom: 40px;
    margin-bottom: 30px;
    background: none;
}

.search-result:hover .search-result__excerpt {
    text-decoration: underline;
}

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

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

.search-result-listing .load-more {
    text-align: center;
}

.search-result-listing .load-more__btn {
    margin: 0 auto;
}

.search-result-listing .tab-accordion__tabs {
    justify-content: flex-start;
}

.search-result-listing .tab-accordion__panel__toggle {
    border: 1px solid #A0A0A0!important;
}

.search-result-listing .tab-accordion__tab {
    border-radius: 10px 10px 0 0;
    border: 1px solid #A0A0A0!important;
    width: auto;
    padding: 15px 30px;
}