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

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


.blog-post__item {
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 0 16px 2px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-wrap: wrap;
    overflow: hidden;
}

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

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

.blog-post__item .blog-post__img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-post__link,
.blog-post__item .btn,
.blog-post__item .btn-primary {
    display: block;
    position: relative;
    bottom: 0;
    left: 0;
    width: calc(100% - 32px);
    height: inherit;
    margin: 0 auto;
}

.blog-post__meta {
    font-size: 16px;
    padding: 20px;
    position: relative;
    flex: 1;
}

.blog-post__tag {
    font-size: 16px;
    color: var(--color-tertiary);
}

.blog-listing {
    display: flex;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.blog-listing__item {
    padding: 0 8px;
    margin-top: 16px;
}

.blog-post__cta {
    width: 100%;
    padding: 16px 0;
}

.blog-single__disclaimer {
    padding: 32px 0;
}

.blog-single__disclaimer p {
    font-size: 13px;
}

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

.single-post .breadcrumb_last,
.single-post .breadcrumbs ul li:nth-child(2):after {
    display: none !important;
}


@media (min-width: 1025px) {
    .blog-post__img-container {
        height: 230px;
    }
}


/**
 * Sidebar
 */

/* Blog Sidebar */

.blog .page-sidebar .widget,
.single-post .page-sidebar .widget,
.archive .page-sidebar .widget,
.category .page-sidebar .widget {
	margin-bottom: 40px;
}

.blog .page-sidebar .widget .container,
.single-post .page-sidebar .widget .container,
.archive .page-sidebar .widget .container,
.category .page-sidebar .widget .container {
    padding: 0;
}

.wp-block-search__inside-wrapper,
.page-sidebar [type="search"] {
    border-radius: 40px !important;
}

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

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

.page-sidebar .widget-popular-posts ul li {
    font-size: 16px;
    line-height: 1.5em;
}

.page-sidebar .widget-search input[type=text] {
    padding-right: 52px !important;
}

.page-sidebar .widget-search form {
    position: relative;
}

.page-sidebar .widget-search .search__btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
}

@media (min-width: 1200px) {
    .blog .page-sidebar {
        padding-left: 8px;
    }
}


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

.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: #ccc;
    color: #fff;
    background-image: 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;
}

.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-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 {
    text-decoration: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0;
    padding: 30px 0 30px;
}

.search-result__img-container {
    width: 150px;
}

.search-result:not(:first-child) {
    border-top: 1px solid var(--color-tertiary)
}

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

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

.search-results .tab-accordion__panel__toggle {
    padding: 16px;
    border-radius: 14px 28px;
}

@media ( min-width: 1200px ) {
    .search-results .tab-accordion__tab {
        width: auto;
        margin: 0 8px 0 0;
        padding: 16px;
        border: 1px solid var(--color-tertiary);
        background: var(--color-button-disabled);
        border-radius: 14px 28px 0 0;
        box-shadow: none !important;
    }

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

    .search-results .tab-accordion__panel__content {
        padding: 30px;
        border: 1px solid var(--color-tertiary);
    }

    .search-result {
        flex-wrap: nowrap;
    }
}


.single .team {
    padding-bottom: 30px;
}

.single .team .team-box__item {
    flex: 1;
}