/*------------------------------------*\
    
    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-post__item{
    padding: 0 10px;
    margin-bottom: 30px;
    position: relative;
}

.blog-post__item a{
    text-decoration: none;
}

.blog-post__link{
    position: relative;
    bottom: 0;
}

.trainings-listing{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.blog-post__img-container{
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 235px;
}

.blog-post__img-container:hover:after{
    text-decoration: none;
    border: none;
}


.testimonial--info {
    border-bottom: 1px solid #f3f3f3;
    margin-bottom: 20px;
}

.testimonial--info__name {
    font-style: italic;
}

.testimonial--info__location {
    font-weight: 600;
}

@media (min-width: 768px) {

    .trainings-listing{        
        flex-direction: row;
    }
}


@media (min-width: 1025px) {

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


/**
 * Sidebar
 */

/* Blog Sidebar */

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

.widget-search form {
    position: relative;
}

.widget-search form input {
    padding-right: 65px;
}

.widget-search form button[type=submit] {
    width: 52px;
    height: 52px;
    border: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    right: 0;
}

.page-sidebar .widget .row,
.page-sidebar .widget .container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.page-sidebar .widget .row > * {
    padding: 0;
    width: 100%;
}

.testimonial-single-container .page-sidebar .widget,
.testimonial-listing-container .page-sidebar .widget {
    margin-bottom: 30px;
}

.page-sidebar .choices {
    z-index: 9;
}


/**
* FX Load More
*/

.trainings-listing__pagination, 
.blog-listing__pagination {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

/* 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: #8C1A20; 
}

/* 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: 0 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;
    background-color: #4a4a4a;
    display: none;
}


/* 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-top: 50px;
}

.blog-single-img{
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-single-img:hover{
    background: transparent;
}

.blog-single-img img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.btn-post-pagination {
    /*background:  #dadada;*/
    font-size:  15px;
    padding:  12px 20px;
    color:  #fff;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
}

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

.post-pagination .btn-post-pagination:hover {
    background: linear-gradient(to right,  rgba(216,35,44,1) 0%,rgba(216,35,44,1) 50%,rgba(216,35,44,1) 100%);
}

.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;
    background-image: linear-gradient(to right,#c0232b 0%,#8c1a20 100%);
}

.btn-next-post {
    padding-right:  40px;
    background-image: linear-gradient(to left,#c0232b 0%,#8c1a20 100%);
}

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

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

/** Custom **/


.hard-top{
    padding-top: 0 !important;
    padding-bottom: var(--section-margins);
}

.wp-block-group__inner-container{
    margin-top: 30px;
}

.wp-block-group__inner-container .container{
    padding: 0;
}

.page-sidebar h2{
    font-size: 38px;
}

.page-sidebar a{
    text-decoration: none;
}

.card-item-container{
    padding: 0 10px;
    margin-bottom: 30px;
}


/* Search Results */
.search-result {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.search-result:hover{
    background: transparent;
}

.search-result__title {
    margin-bottom: 0;
    padding-bottom: 10px;
    font-size: 28px;
}

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

.search-result__excerpt p{
    font-weight: normal;
}

.search-results-section .tab-accordion__panel__content{
    padding: 20px;
}

.search-results-section .tab-accordion__panels{
    width: 100%;
}

.search-results-section .load-more__counter,
.search-results-section .load-more{
    text-align: center;
}

.search-result__excerpt h2{
    font-size: 28px;
    line-height: 1em;
}

.search-results-section .tab-accordion__tabs{
    width: 100%;
    flex-direction: row;
}

.search-results-section .tab-accordion__tab{
    width: 15%;
    margin-right: 10px;
}

.search-results-section .tab-accordion{
    padding-top: 0;
}

.search-result__img-container{
    width: 100%;
    height: 100%;
    max-height: 250px;
    margin-right: 20px;
    display: block;
    margin-top: 10px;
    overflow: hidden;
}

.search-result__img-container img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.search-result__details-container{
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .search-result {        
        flex-direction: row;        
    }

    .search-results-section .tab-accordion__tab{
        width: 100%;
        margin-right: 0;
    }


    .search-results-section .tab-accordion__panels{
        width: 100%;
    }

    .search-result__img-container{
        width: 30%;
        height: 100%;
    }

    .search-result__details-container{
        display: block;
        width: 70%;
    }

    .search-result__title {
        margin-bottom: 0;
        padding-bottom: 10px;
        font-size: 33px;
    }

}

@media (min-width: 1024px) {

    .search-result {        
        flex-direction: row;        
    }

    .search-results-section .tab-accordion__tab{
        width: 15%;
        margin-right: 10px;
    }

    .search-result__excerpt h2{
        font-size: 35px;
        line-height: 1em;
    }


    .search-results-section .tab-accordion__panels{
        width: calc(100% - 100px);
    }

    .search-result__img-container{
        width: 250px;
        height: auto;
    }

    .search-result__details-container{
        display: block;
        width: 80%;
    }

    .search-result__title {
        margin-bottom: 0;
        padding-bottom: 10px;
        font-size: 35px;
    }

}

.single-post .wysiwyg {
    padding: 30px 0;
}

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

.single-post .wysiwyg .container .row {
    margin: 0;
}

.single-post .wysiwyg .container .row > * {
    width: 100%;
    margin: 0;
    padding: 0;
}

.testimonial-single-container .social-share-row,
.blog-single-container .social-share-row {
    margin-top: 30px;
}

.testimonial-single-container .social-share-row__item,
.blog-single-container .social-share-row__item {
    padding-left: 0;
}

.social-share-row__item:not(:last-child) {
    margin-right: 20px;
}

.blog-single-container .col-md-8 > .bg-white {
    padding-top: 0;
}

.single ul {
    padding-top: 20px;
}

.single ul li h3 {
    line-height: 30px;
}