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

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

.single-resource .blog-single-container h1 {
    font-size: 50px;
}

.blog-post__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto 50px auto;
    border: 2px solid transparent;
    background-color: var(--light-blue);
    border-radius: 20px;
    overflow: hidden;
    height: calc(100% - 50px);
    max-width: 420px;
    transition: all 0.3s ease-in-out;
}

.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;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post__img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-post__title a {
    display: block;
    text-decoration: none;
    color: #000000;
}

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

    a:not(.btn) {
        background: none;
        text-decoration: none;
        color: inherit;
        -webkit-text-fill-color: var(--near-black);
    }

    .btn {
        align-self: flex-start;
        margin-top: 0;
    }
}

.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;
    margin-bottom: 20px;
    color: #000000;
    text-decoration: none;

    a {
        font-weight: 500;

        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.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: 1px solid #f1f1f2;
    padding-top: 20px;
    text-decoration: none;
    color: #000000;
}


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


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

    .blog-post__tag:hover {
        color: #000000;
    }

    .blog-post__item:hover {
        /* box-shadow: 5px 5px 60px rgb(235, 235, 235), -5px -5px 60px rgb(237, 237, 237); */
        border-color: var(--bright-red);
        background-color: var(--white);
        transition: all .5s;
    }
}


        /**
         * Sidebar
         */

/* Blog Sidebar */

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



/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more {
    text-align: center;
}

.load-more__counter {
    font-weight: 500;
}

.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    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: var(--bright-blue-linear);
    /* 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 {
    display: block;
    margin: 20px auto;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #f0f0f0;
    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);
    }
}

.blog-single__description {
    margin-top: 30px;
}

/* Single Post Pagination */
.blog-post__info-bottom {
    margin-top: 50px;
    border-top: 1px solid #ccc;
    padding-top: 30px;
}

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

.btn-post-pagination {
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
    border: 1px solid var(--bright-blue);
    border-radius: 8px;
}

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

.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: 60px;
}

.btn-next-post {
    padding-right: 60px;
}

.mobile-arrow:after {
    content: '\e90d';
    font-family: 'mws-icons';
    font-size: 20px;
    display: block;
    background: linear-gradient(90deg, #0071CE 0%, #004883 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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-previous-post {
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .btn-post-pagination:hover {
        border-color: var(--bright-red);
        
        .mobile-arrow:after {
            background: linear-gradient(90deg, #EC222E 0%, #AD0D15) 100%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }
}


/* Search Results */

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

.search-result {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 10px 0;
    background: none;
    -webkit-text-fill-color: var(--near-black);
    border-bottom: 1px solid var(--medium-blue);
    padding-bottom: 40px;

    &:hover {
        background: none;
        -webkit-text-fill-color: var(--near-black);
    }
}

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

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

.search-result__img-container img {
    max-width: 280px;
    max-height: 280px;
    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;

    .row {
        align-items: center;
    }
}

.blog_title_bar input,
.blog_title_bar select,
.search_bar input,
.search_bar select {
    height: 35px;
    width: 100%;
    border-radius: 8px;
    padding-left: 10px;
    border: 2px solid var(--medium-blue);
}

.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 {
    background-color: #1f7dea;
    color: #FFFFFF;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    border-radius: 5px;

    position: absolute;
    top: 0;
    right: 0;
    border: 0;
}


.search_bar input.search_bar_input,
.search_form input.search_bar_input {
    height: 50px;
    max-width: 500px;
    margin-left: auto;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    color: var(--near-black);

    border: 2px solid var(--medium-blue);

    &::placholder {
        font-weight: 600;
    }
}

.search_form form {
    position: relative;
}

.search_bar .choices__placeholder,
.search_form .choices__placeholder {
    opacity: 1;
}

.search_bar input.search_bar_submit,
.search_form input.search_bar_submit {
    height: 50px;
}

.search_bar .choices__inner,
.blog_title_bar .choices__inner {
    height: 50px;
    background: #fff;
    padding: 12px 60px 12px 25px !important;

    border-radius: 12px;
    background: linear-gradient(#fff, #fff) padding-box, var(--medium-blue) border-box;
    border: 2px solid transparent;
}

.search_bar .is-open .choices__inner,
.blog_title_bar .is-open .choices__inner {
    background: linear-gradient(#fff, #fff) padding-box, var(--red-linear) border-box;
    border: 2px solid transparent;
}

.search_bar .choices[data-type*='select-one']:after,
.blog_title_bar .choices[data-type*='select-one']:after {
    right: 12px;
    font-size: 30px;
}

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

.search_bar .choices,
.blog_title_bar .choices {
    width: 363px;
    max-width: 363px;
}

@media (min-width: 1200px) {
    .search_bar .choices,
    .blog_title_bar .choices {
        margin-bottom: 0;
    }
}

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

.right-title-bar input.search_bar_submit {
    height: 50px;
    border: solid 1px #1f7dea;
}

.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_submit {
    font-size: 20px;
    background: var(--bright-blue-linear);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.blog-post__date {
    font-size: 20px;
    font-weight: 600;
    color: var(--near-black);
}

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

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

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

.blog-single-meta {
    padding-bottom: 20px;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f1f2;
}

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

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

.blog-single-container {
    .social-share-row {
        li {
            display: inline-block;
            vertical-align: middle;
            margin-bottom: 0;
            padding-left: 0;
        }

        li:before {
            display: none;
        }
    }
}

.search-results {
    .tab-accordion__panel__content,
    .tab-accordion__tab,
    .tab-accordion__panel__toggle,
    .tab-accordion__tab:focus:not(:focus-visible),
    .tab-accordion__panel__toggle:focus:not(:focus-visible) {
        border-color: var(--medium-blue);
    }

    .tab-accordion__panel__content {
        padding: 30px 30px 50px;

        .blog-listing__pagination {
            margin-top: 40px;
        }
    }
}

@media (min-width: 1025px) {
    .search-results {
        .tab-accordion__panel__content {
            border-bottom-right-radius: 8px;
            border-bottom-left-radius: 8px
        }

        .tab-accordion__tab:focus:not(:focus-visible),
        .tab-accordion__panel__toggle:focus:not(:focus-visible) {
            border-bottom: 0;
        }
    }
}