/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

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

/**
 * Posts
 */

.blog-listing__row {
    flex-direction: column-reverse;
}

.blog-post__column {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.blog-post__item {
    background: none;
    border: 1px solid #E2E2E2;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    height: 100%;
    transition: transform .2s linear;
}
 
.blog-post__img-container {
    height: 210px;
}

.blog-post__img-container.no-img {
    background: #e7e7e7;
}

.blog-post__img-container.no-img img {
    object-fit: contain;
}

.blog-post__body {
    display: flex;
    flex-direction: column;
    height: inherit;
    padding: 15px;
}

.blog-post__date {
    color: var(--color-gray);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
}

.blog-post__title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-item__content {
    padding-bottom: 10px;
}

.blog-post__link {
    align-self: flex-start;
    margin-top: auto;
}

/* Featured Post Section */

.blog-post__featured-img {
    background: none;
    border: 0;
    display: block;
    height: auto;
}

@media ( min-width: 1025px ) {
    .blog-listing__row {
        flex-direction: row;
    }

    .blog-post__column {
        margin-top: 0;
    }

    .blog-post__column:nth-child(n+3) {
        margin-top: 30px;
    }
}

@media ( min-width: 1200px ) {
    .blog-post__title {
        font-size: 28px;
    }

    .blog-post__body { 
        padding: 20px;
    }

    .blog-post__item:hover {
        transform: translate3d(0,-5px,0);
    }
} 

/**
 * Sidebar
 */

/* Blog Sidebar */

.page-sidebar .widget + .widget {
	margin-top: 24px;
}

.page-sidebar .widget_search form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    border: 1px solid #E2E2E2;
    background: #FAFAFA;
    border-radius: 3px;
}

.page-sidebar .widget_search input {
    background: transparent;
    border: 0;
    color: var(--color-black);
    height: 100%;
    font-size: 16px;
    order: 2;
    padding: 0;
    padding-right: 15px;
}

.page-sidebar .widget_search input::placeholder {
    color: var(--color-black);
}

.page-sidebar .widget_search input:focus,
.page-sidebar .widget_search input:active {
    border: 0;
}

.page-sidebar .widget_search button {
    order: 1;
    background: transparent;
    border: 0;
    color: var(--color-primary);
    font-size: 22px;
    line-height: 1;
    padding: 0px 15px;
    -webkit-appearance: none;
    appearance: none;
}

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

.page-sidebar .widget > h3 {
    font-size: 28px;
    font-weight: 700;
    padding-top: 0;
}

@media (min-width: 1024px) {

    .page-sidebar {
        padding-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 {
    border: 0;
    display: block;
    margin: 20px auto 0;
}

.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;
    color: var(--color-white);
    background-color: var(--color-gray);
}

/* 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
*/

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

.blog-single-container .wysiwyg.bg-white + .wysiwyg:not(.bg-white) {
    margin-top: 40px;
    margin-bottom: 40px;
    --section-margins: 40px; 
}

.blog-single-container .wysiwyg.bg-white + .fx-form-wrapper {
    --section-margins: 40px; 
    padding-top: var(--section-margins);
}

/*
** fx_special listing template
*/

.promotions-listing .deal {
    width: 100%;
}

.promotions-listing .deal__item + .deal__item {
    margin-top: 30px;
}

/*
** Single fx_special template
*/

.blog-single-container .form-block,
.blog-single-container .form-block .container {
    padding: 0;
}

@media ( min-width: 768px) {
    .promotions-listing .deal__item + .deal__item {
        margin-top: 0;
    }

    .promotions-listing .deal__item:nth-child(n+3) {
        margin-top: 30px;
    }
}

/*
**  
*/

.post-footer {
    border-top: 1px solid rgba(41,48,84,0.20);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

/* Single Post Pagination */
.post-footer {
    border-top: 1px solid rgba(41,48,84,0.20);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center
}

.btn-post-pagination {
    background: #EBEBEB;
    font-size: 15px;
    padding: 10px 20px;
    color: var(--color-black);
    position: relative;
    transition: background .3s ease-in-out;
}

.pagination-arrow {
    font-size: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%)
}

.pagination-arrow-prev {
    left: 15px
}

.pagination-arrow-next {
    right: 15px
}

.post-pagination-text {
    display: none
}

.btn-post-pagination strong {
    font-size: 12px;
    font-weight: 700;
}

.btn-previous-post,.btn-next-post {
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.btn-previous-post {
    padding-left: 40px;
    /* text-align: left */
}

.btn-next-post {
    padding-right: 40px;
    /* text-align: right */
}

.mobile-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--color-black);
}

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

    .btn-post-pagination:hover {
        background: #D8D8D8;
        text-decoration: none;
    }
}



/* Search Results */
.search-result {
    background: transparent;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.search-result.no-thumbnail .search-result__body {
    flex: 0 0 100%;
}

.search-result:hover {
    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: var(--color-black);
}

.searchwp-live-search-result a {
    display: inline-block !important;
    text-decoration: none;
}

.search-result__title {
    color: var(--color-black);
    font-size: 34px;
    line-height: 1;
    text-transform: none;
}

.search-results .tab-accordion__tabs {
    justify-content: unset;
}

@media (min-width: 768px) {
    .search-result + .search-result {
        margin-top: 3.5rem;
    }

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

    .search-result__img-container {
        flex-basis: 30%;
    }

    .search-result__body {
        flex-basis: 70%;
    }

    .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: 1200px) {
    .search-result:hover {
        background: transparent;
        transition: color .3s ease-in-out;
    }
}

.widget_search input:focus::placeholder {
    color: transparent;
  }