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

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

.blog-listing-container {
    background: var(--c-light-blue);
}

.post-item {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 30px;
}

.blog-single-container h2,
.blog-single-container .h2 {
    font-size: 40px;
}

.blog-single-container h3,
.blog-single-container .h3 {
    font-size: 30px;
}

.blog-single-container .single-image img {
    -o-object-fit: cover;
    object-fit: cover;
    max-height: 400px;
    width: 100%;
    height: 100%;
}

.blog-single-container .single-image+.wysiwyg {
    padding-top: 20px;
}

.post-item:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.post-item__heading a {
    text-decoration: none;
}

.post-item .btn,
.post-item .btn-primary {
    margin-top: 30px;
}

.post-item__meta {
    font-size: .8em;
}

.blog-single-container .single-image {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.blog-single-container .single-image::before {
    content: "";
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: 90px;
    height: 90px;
    z-index: -1;
    background: #EBEDF4;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.social-share-row li:before,
.social-share-row li:after {
    display: none;
}

.social-share-row li:first-child {
    padding-left: 0;
}

.social-share-row li {
    padding-left: 10px;
}


/* Start Image Cards*/
.js-image-card {
    margin: 0 -22px 0 -10px;
    padding-bottom: 75px;
}

.image-card-item {
    padding: 0 10px;
    margin-bottom: 20px;
}

.js-image-card .slick-track {
    display: flex !important;
}

.js-image-card .slick-slide {
    height: inherit !important;
}

.js-image-card .slick-slide div {
    height: 100%;
}

.js-image-card .slick-slide .image-card div {
    height: auto;
}

.image-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    width: 100%;
    background: #fff;
    border-bottom: 4px solid #394C93;
}

.image-card__img {
    height: 177px;
}

.image-card__details {
    padding: 20px 25px 15px;
}

.image-card__heading {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #394C93;
    margin-bottom: 5px;
    line-height: 1.230em;
    padding-bottom: 0;
}

.image-card__title {
    padding: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.277em;
    font-weight: 700;
    color: #444444;
}

.image-card__botom {
    text-align: right;
}

.image-card__cta {
    position: relative;
    width: 57px;
    height: 38px;
    background: #394C93;
    border: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 13px;
    margin-left: auto;
    transition: all ease-in-out 0.3s;
}

.image-card__cta::before {
    content: '';
    position: absolute;
    width: 28px;
    height: calc(100% + 1px);
    left: 0;
    top: -1px;
    background: #fff;
    clip-path: polygon(100% 0, 0 0, 0 100%);
}

.image-card__cta span {
    width: 202px;
    position: absolute;
    transition: all linear 0.6s;
    opacity: 0;
}


.js-image-card .slick-prev {
    left: 10px;
    margin-left: 0;
}

.js-image-card  .slick-next {
    left: 63px;
    margin-right: 0;
}

.image-card__img img {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-single-container .col-md-3 {
    margin-top: 20px;
}

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

.blog-single-container blockquote {
    background: #ffffff;
}

.blog-single-container .blockquote-image {
    background: #ffffff;
}

.blog-single-container img.alignnone {
    height: auto;
}

.post--meta span {
    color: #0a4b78;
}

@media (min-width: 768px) {
    .blog-single-container .col-md-3 {
        margin-top: 30px;
    }

    .js-image-card {
        margin: 0 -52px 0 -16px;
        padding-bottom: 0;
    }

    .image-card-item {
        padding: 0 16px;
    }

    .image-card {
        width: 100%;
    }

    .image-card__img {
        height: 180px;
    }

    .image-card__details {
        padding: 22px 26px 18px;
    }

    .image-card__heading {
        font-size: 14px;
        margin-bottom: 7px;
    }

    .image-card__title {
        font-size: 20px;
        line-height: 1.3em;
    }

    .image-card__cta {
        height: 42px;
        width: 62px;
        padding-right: 14px;
        font-size: 14px;
    }

    .image-card__cta::before {
        width: 32px;
    }

    .js-image-card .slick-arrow {
        bottom: 57px;
    }

    .js-image-card .slick-prev {
        left: -334px;
    }

    .js-image-card  .slick-next {
        left: -279px;
    }
}


@media (min-width: 1025px) {
    .js-image-card {
        margin: 0 -16px;
    }

    .js-image-card .fx-slide {
        display: block;
    }

    .image-card {
        width: 100%;
    }

    .image-card:hover {
        background: #fff;
    }

}

@media (min-width: 1200px) {

    .blog-single-container .col-md-3 {
        margin-top: 0;
    }

    .blog-single-container .col-md-9 {
        padding-right: 40px;
    }

    .image-card__cta span {
        font-size: 17px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        font-weight: 600;
        padding-right: 10px;
    }

    .image-card:hover .image-card__cta span {
        display: inline-block;
        opacity: 1;
        width: 170px;
    }

    .image-card:hover .image-card__cta {
        width: 220px;
    }

    .image-card-item {
        padding: 0 20px;
        margin-bottom: 80px;
    }

    .image-card__title a,
    .image-card__heading a {
        background: none;
    }

    .image-card__title a:hover,
    image-card__heading a:hover {
        background: none;
    }

}

@media (min-width: 1366px) {

    .image-card:hover {
        background: #fff;
    }

    .image-card {
        position: relative;
    }

    .image-card__top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .image-card__img {
        width: 100%;
        height: 250px;
        position: relative;
    }

    .image-card__img img {
        position: absolute;
    }

    .image-card__details {
        width: calc(100% - 220px);
        padding-bottom: 68px;
    }

    .image-card__botom {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

@media (min-width: 1600px) {


    .image-card__img {
        width: 100%;
    }

    .image-card__details {
        width: 100%;
        padding: 35px 40px 78px 40px;
    }

    .image-card {
        border-bottom-width: 5px;
    }

    .image-card__cta {
        height: 55px;
        font-size: 19px;
        width: 81px;
        padding-right: 18px;
        padding-left: 44px;
    }

    .image-card__cta::before {
        width: 44px;
    }

    .image-card__heading {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .image-card__title {
        font-size: 26px;
        line-height: 1.269em;
    }



}

@media (min-width: 2000px) {
    .image-card__cta::before {
        left: -1px;
    }
}
/* End Image Cards*/

@media (min-width: 1200px) {
    .blog-single-container .single-image::before {
        left: -30px;
        bottom: -30px;
        width: 212px;
        height: 203px;
        clip-path: polygon(0 0, 0% 100%, 100% 100%);
    }

    .blog-single-container .single-image img {
        max-height: 675px;
        clip-path: polygon(100% 0, 100% 91%, 94% 100%, 0 100%, 0 0);
    }

}


@media (min-width: 1025px) {

    .post-item {
        padding-top: 50px;
        margin-top: 50px;
    }

}


/**
 * Sidebar
 */

/* Blog Sidebar */

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


.wp-block-search__inside-wrapper {
    position: relative;
    border: none;
    padding: 0;
}

.wp-block-search__inside-wrapper .wp-block-search__input {
    border: 1px solid #D8D8D8;
}

.wp-block-search__inside-wrapper .wp-block-search__input:active,
.wp-block-search__inside-wrapper .wp-block-search__input:focus {
    outline: none;
    border: 1px solid var(--c-blue);
    border-bottom: 5px solid var(--c-blue);
}

.wp-block-search__button.has-icon {
    background: transparent;
    border: none;
    position: absolute;
    right: 5px;
    top: calc(50% - 16px);
    background: #fff;
}

.page-sidebar {
    padding: 30px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    background: var(--c-white);
    z-index: 1;
}

.page-sidebar label,
.page-sidebar h3 {
    text-transform: uppercase;
    color: #444;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.page-sidebar .wp-block-categories-dropdown label {
    position: relative;
    height: 100%;
    width: 100%;
    clip-path: unset;
    margin-bottom: 10px;
}

.page-sidebar .widget-popular-posts,
.page-sidebar .widget_recent_entries,
.single-post form.wp-block-search,
.page-sidebar .widget_searchwp_live_search,
.single-post .wp-block-categories {
    padding-right: var(--bs-gutter-x, 52px);
    padding-left: var(--bs-gutter-x, 52px);
}

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

.page-sidebar .searchwp-live-search-widget-search-form .search-submit {
    display: none;
}

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

.page-sidebar .is-open .choices__inner {
    border: 1px solid #EBEDF4;
}

.page-sidebar .is-open .choices__inner {
    outline: none;
    border: 1px solid var(--c-blue);
    border-bottom: 5px solid var(--c-blue);
}


/**
* 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: #4a4a4a;
}

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

@media (min-width: 1200px) {
    .btn-post-pagination:hover {
        background:  #ebebeb;
    }
}

/* Search Results */
.search-result {
    text-decoration: none;
    padding: 30px 0;
    display: block;
    background: none !important;
    border-bottom: solid 1px #D8D8D8;
}

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

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

.blog .image-text {
    position: relative;
}

.bottom-border-on::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 148px;
    height: 20px;
    background: var(--c-light-blue);;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}


@media (min-width: 1200px) {
    /*Bottom Border*/
    .bottom-border-on::after {
        width: 790px;
        height: 40px;
        clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}