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

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

.blog-post__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto 50px auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    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;
}

.blog-post__video-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    svg {
        width: 70px;
        height: auto;
    }

    p {
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
        margin-top: 10px;
    }
}

.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 {
    width: fit-content;
    text-decoration: none;
    border-radius: 5px;
}


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

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

.resource-listing {
    .blog-post__meta {
        align-items: flex-start;
    }
}

.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: #000000;
    text-decoration: none;
    line-height: 1.6;
}

.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: #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);
        transition: all .5s;
        transform : translateY(-10px);
    }
}


        /**
         * Sidebar
         */

/* Blog Sidebar */

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



/**
* FX Load More
*/

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

.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;
    padding: 14px 54px 12px 22px;
    border-radius: 5px;
}

@media (min-width: 1200px) {
    .load-more__btn {
        padding: 14px 54px 12px 22px;
    }

    .load-more__btn:hover {
        background: #555;
        padding-right: 62px;
        background: var(--orange);
        color: var(--black);
    }
}

.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;
    pointer-events: none;
    color: var(--white);
}

/* 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: #333;
    font-size: 16px;
    padding: 10px 20px;
    color: var(--white);
    position: relative;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .btn-post-pagination {
        padding: 20px 30px;
    }
}

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

@media (min-width: 1200px) {
    .btn-post-pagination:hover {
        background: #555;
        opacity: 1;
        color: var(--white);
    }
}

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

@media (min-width: 768px) {
    .btn-previous-post,
    .btn-next-post {
        max-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

.btn-previous-post {
    padding-left: 40px;
}

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

.mobile-arrow:after {
    content: '\e901';
    font-family: var(--font-icon);
    display: block;
}

.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;
        margin-left: auto;
    }

    .btn-previous-post {
        text-align: right;
        margin-left: 0;
    }
}


/* Search Results */

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

.search-result {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 50px 0;
    border-bottom: 1px solid #ddd;
    font-weight: normal;

    &:first-child {
        padding-top: 30px;
    }
}

.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: 0;
    margin-bottom: 30px;
    
    .row {
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }
}

.blog_title_bar {
    margin-bottom: 20px;
    margin-top: var(--section-margins);
}

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

.search_bar,
.search_form {
    form {
        display: inline-block;
        position: relative;
        width: 100%;
        max-width: 350px;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .search_bar,
    .search_form {
        form {
            max-width: 200px;
        }
    }
}

@media (max-width: 767px) {
    .search_bar,
    .search_form {
        width: 100%;

        form {
            max-width: 100%;
            margin-top: 20px;
        }
    }
}

.search_bar input.search_bar_input,
.search_form input.search_bar_input {
    height: 50px;
    max-width: 100%;
    margin-bottom: 0;
    padding-right: 60px;
}

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

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

@media (max-width: 767px) {
    .search_bar .choices,
    .blog_title_bar .choices {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
}

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

@media (max-width: 767px) {
    .right-title-bar {
        flex-wrap: wrap;
        gap: 0;
    }
}

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

@media (min-width: 768px) {
    .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;
}

.blog_title_bar .search_bar_submit,
.search_bar .search_bar_submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 0;
}

@media (min-width: 600px) {

    .blog_title_bar input.search_bar_input,
    .search_bar input.search_bar_input {
        position: relative;
    }

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

.single {
    .popular-posts .blog-listing__container {
        border-top: 1px solid #ddd;
        margin-top: 50px;
        padding-top: 50px
    }
}

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

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

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

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

.blog-single__content {
    margin-bottom: 30px;
}

.blog-single__content {
    .wysiwyg {
        .container {
            padding-inline: 0;
        }
    }

    .wysiwyg__wrapper {
        padding-left: 0;
    }

    .row {
        margin: 0;
    }

    .row > div {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .section-padding:first-child {
        padding-top: 0;
    }
    
    .section-padding:last-child {
        padding-bottom: 0;
    }

    .fx-section__line {
        display: none;
    }
}

.blog-resource__box {
    height: 100%;
}

.blog-resource__wrapper {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--charcoal-10);
    height: 100%;
    text-decoration: none;
    opacity: 1;
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.blog-resource__icon {
    width: 40px;

    svg {
        width: 100%;
        height: auto;
    }
}

.blog-resource__meta {
    flex: 1;
    padding-left: 10px;
    
    .blog-post__title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .blog-post__tags {
        margin-bottom: 10px;
    }

    .blog-post__tag {
        color: var(--orange);
        border: 1px solid var(--orange);
        padding: 2px 6px;
        font-size: 10px;
        font-weight: 500;
        text-transform: initial;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .btn {
        font-size: 12px;
        padding: 6px 25px 6px 0;
        font-weight: 500;

        &:after {
            font-size: 12px;
        }
    }
}

.pdf-library__item {
    margin-bottom: 32px;
}

@media (min-width: 1200px) {
    .blog-resource__wrapper:hover {
        opacity: 1;
        background-color: var(--charcoal-10);

        .blog-post__tag {
            background-color: var(--orange);
            color: var(--white);
        }

        .btn {
            color: var(--orange);
            border-color: var(--orange);
        }
    }
}