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

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

.blog-post__item-wrapper {
    padding-bottom: 50px;
}

.blog-post__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    background: #fff;
    border-radius: 50px 30px 24px 24px;
    overflow: hidden;
    /* height: calc(100% - 50px); */
    /* max-width: 420px; */
    transition: all 0.3s ease-in-out;
}

.blog-post__item a {
    background: none;
}

.blog-post__item.blog-post__featured {
    display: block;
    max-width: 100%;
}

.blog-post__img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* for 16:9 aspect ratio */
    overflow: hidden;
}

.blog-post__img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 48px 24px 24px 24px;
}

.blog-post__title {
    margin-bottom: 15px;
}

.blog-post__title a {
    display: block;
    text-decoration: none;
    color: #4F5052;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25em;
    background: none;
}

.blog-post__link,
.blog-post__item .btn,
.blog-post__item .btn-primary {
    margin-top: 10px;
}

/* .search-result__link,
.blog-post__link {
    padding: 15px 20px;
    background-color: #5971f0;
    width: fit-content;
    text-decoration: none;
    color: #FFFFFF;
    border-radius: 5px;
} */


.blog-post__link:hover {
    color: #FFFFFF;
}

.blog-post__meta {
    font-size: .8em;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post__tag {
    /*padding: 5px;*/
    /*margin-right: 5px;*/
    /*background-color: #f0f0f0;*/
    /*border-radius: 5px;*/
    margin-bottom: 5px;
    text-decoration: none;
    color: #0a58ca;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.blog-post__bottom__date,
.blog-post__featured_label {
    padding-bottom: 5px;
}

.blog-post__excerpt {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 20px;
    color: #4F5052;
    text-decoration: none;
    background: none;   
}

.blog-post__featured .blog-post__excerpt {
    padding-bottom: 60px;
}

.blog-post__featured .blog-post__img-container,
.blog-post__featured .show {
    height: 100%;
}

.blog-post__featured .blog-post__meta {
    position: relative;
}

.blog-post__featured .blog-post__bottom {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 20px);
}

.blog-post__bottom {
    display: flex;
    justify-content: space-between;
    border-top: solid 1px #ddd;
    padding-top: 20px;
    text-decoration: none;
    color: #4F5052;
    background: none;
}


@media (min-width: 1025px) {
    .blog-post__featured .blog-post__meta {
        padding: 20px 20px 20px 0;
    }
}


@media (min-width: 1200px) {
    .dummy-link:hover {
        color: #4F5052;
    }

    .blog-post__tag:hover {
        color: #4F5052;
    }

    .blog-post__item:hover {
        border: none;
        box-shadow: 0 0 16px rgba(175, 219, 182, 1);
        transition: all .5s;
        -webkit-transform : translateY(-10px);
                transform : translateY(-10px);
    }
}


        /**
         * Sidebar
         */

/* Blog Sidebar */

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



/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.load-more__progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 8px;
    border: 0;
    border-radius: 8px;
    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: #D9D9D9;
}

progress::-webkit-progress-value {
    background-color: var(--blue);
}

/* Loading Indicator */
.is-loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #D9D9D9 #D9D9D9 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:disabled {
    display: none;
}

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

/* 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: #fff;
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
    border-radius: 8px;
}

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

.btn-post-pagination:hover {
    background: var(--bright-blue);
}

.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;
    text-decoration: none;
}

.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 {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }
}


/* Search Results */

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result {
    text-decoration: none;
    display: block;
    padding: 0 0 25px 0;
    background: none;
}

.search-result__title {
    margin-bottom: 16px;
    color: #4F5052;
}

.search-result__excerpt {
    margin-bottom: 20px;
    color: #4F5052;
    font-weight: 400;
}

.search-result__img-container img {
    max-width: 280px;
    max-height: 280px;
    -o-object-fit: contain;
       object-fit: contain;
}

.search_bar,
.blog_title_bar {
    padding: 40px 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.blog_title_bar {
    margin-bottom: 20px;
}

.blog_title_bar input,
.blog_title_bar select,
.search_bar input,
.search_bar select {
    /* height: 35px; */
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 5px;
    padding-left: 10px;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .search-result {
        flex-direction: column-reverse;
    }
}

.blog_title_bar select {
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_input {
    position: initial;
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_submit,
.search_bar input.search_bar_submit {
    position: absolute;
    width: 100%;
    /* background-color: #1f7dea; */
    color: #4F5052;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    border-radius: 5px;
    right: 0;
    width: 75px;
    height: 100%;
    opacity: 0;
}

.search_form {
    position: relative;
}

.search_form::after {
    content: "\e911";
    font-family: 'toi-icons';
    position: absolute;
    right: 10px;
    top: 14px;
    font-size: 18px;
}

.search_bar input.search_bar_submit,
.search_form input.search_bar_submit {
    /* height: 50px; */
    /* border: solid 1px #1f7dea; */
}

.search_bar .choices__inner,
.blog_title_bar .choices__inner {
    /* height: 50px; */
    background: #fff;
}

.search_bar .choices__inner .choices__list,
.blog_title_bar .choices__inner .choices__list {
    height: 40px;
    line-height: 22px;
}

.right-title-bar {
    display: flex;
    justify-content: flex-end;
}

.right-title-bar .choices,
.right-title-bar .search_form {
    width: 50%;
}

.right-title-bar .search_form form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.toc-container {
    margin: 20px 0;
}

.search-bar-form {
    margin-top: 15px;
}
@media (min-width: 600px) {

    .blog_title_bar input.search_bar_input,
    .search_bar input.search_bar_input {
        position: relative;
        top: 1px;
        left: 10px;
    }

    .right-title-bar input.search_bar_input {
        top: 1px;
    }


    .search_bar input.search_bar_input,
    .blog_title_bar input.search_bar_input {
        /*width: 60%;*/
    }

    .search-bar-form {
        margin-top: 0;
    }

    .blog_title_bar input.search_bar_submit,
    .search_bar input.search_bar_submit {
        /* position: relative; */
        /* background-color: #1f7dea;
        color: #FFFFFF; */
        padding-left: 20px;
        padding-right: 20px;
        width: auto;
        border-radius: 0 5px 5px 0;
    }

    .search_bar input.search_bar_input,
.search_form input.search_bar_input {
    height: 50px;
    max-width: 265px;
}

}

@media (min-width: 1025px) {
    .search_bar .choices,
    .blog_title_bar .choices {
        width: 363px;
        max-width: 363px;
    }
}

.popular-posts h2 {
    text-align: center;
    padding-bottom: 20px;
}

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

.blog-single-container .blog-post__img-container {
    margin-bottom: 20px;
    text-align: center;
    padding-top: 0;
    height: auto;
}

.blog-single-container .blog-post__img-container img {
    position: relative;
    -o-object-fit: none;
       object-fit: none;
    width: auto;
    height: auto;
}

.blog-single-meta {
    padding-bottom: 20px;
}

.blog-single-meta .social-share-row {
    padding: 0 !important;
    text-align: right;
}

.blog-listing__pagination {
    padding-top: 20px;
}