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

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


.single .bialty-container section:first-child {
    padding-top: 0 !important;
}

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

.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-post__img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
}

.blog-listing,
.post-listing {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
}

.blog-post__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
    width: calc(100% / 1 - 40px);
    margin: 20px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    position: relative;
}

.blog-post__item::before {
    content: '';
    position: absolute;
    bottom: 0;
    letter-spacing: 0;
    width: 0;
    height: 6px;
    border-radius: 0 0 10px 10px;
    background-color: var(--color-orange);
    -webkit-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
}

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

.blog-post__img-container {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.blog-post__img-container.has-img {
    height: 180px;
    margin-bottom: 0;
}

.blog-post__img-container{ margin-bottom: 40px; }

.blog-post__meta {
    position: relative;
    padding: 30px 40px 30px;
    margin-top: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.blog-post__meta.has-img {
    margin-top: -13px;
    padding: 0 40px 30px;
}

    .blog-post__tags {
        max-width: -webkit-fit-content;
        max-width: -moz-fit-content;
        max-width: fit-content;
        top: 160px;
        left: 40px;
        background: #003264;
        border-radius: 50px;
        padding: 2px 15px 0;
        font-size: 12px;
        text-transform: uppercase;
        -webkit-transition: 0.3s;
        -o-transition: 0.3s;
        transition: 0.3s;
    }

        .blog-post__tags a {
            display: inline-block;
            color: #fff;
            padding: 0;
            text-decoration: none !important;
            font-weight: 700;
        }

.blog-post__title {
    margin-top: 15px;
    font-size: 18px;
    text-transform: capitalize;
}

    .blog-post__title a {
        font-weight: 700;
        line-height: 1.4;
        color: #003b5d;
        -webkit-transition: 0.3s;
        -o-transition: 0.3s;
        transition: 0.3s;
    }

.blog-post__link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    text-decoration: none !important;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.blog-post__link::before {
    height: 2px;
}

.blog-post__link:after {
    content: "\e95e";
    font-family: 'icomoon' !important;
    margin-left: 10px;
    font-size: 20px;
}

#block-8 {
    margin-bottom: 0;
}

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

@media(min-width: 768px) {
    .blog-post__item {
        width: calc(100% / 2 - 50px);
    }
}

@media (min-width: 1025px) {

    .blog-single-container {
        padding-top: 100px;
    }

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

    .blog-post__item:hover::before,
    .blog-post__item:hover .blog-post__link::before {
        width: 100%;
    }

    .blog-post__item:hover .blog-post__img {
        -webkit-transform: scale(1.1);
            -ms-transform: scale(1.1);
                transform: scale(1.1);
    }

    .blog-post__tags:hover {
        background: #034d97;
    }

    .blog-post__title a:hover {
        font-weight: 700;
        line-height: 1.4;
        color: #f37121;
    }
}

/**
 * Sidebar
 */

/* Blog Sidebar */

.page-sidebar {
    margin-top: 60px;
}

.widget_block > .container {
    padding-left: 0;
    padding-right: 0;
}

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

@media (min-width: 1025px) {
    .page-sidebar {
        margin-top: 0;
    }
    
    .widget_block > .container {
        padding-left: var(--bs-gutter-x,21px);
        padding-right: var(--bs-gutter-x,21px);
    }
}



/**
* 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%);
    -ms-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-top: 20px;
}

.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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.placeholder-block__inner {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-line-pack: center;
        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%;
    -webkit-box-flex:  0;
        -ms-flex:  0 0 48%;
            flex:  0 0 48%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            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 { 
    -webkit-transform:  rotate(180deg); 
        -ms-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-result {
    text-decoration: none;
    padding-bottom: 55px;
    display: block;
    background: none;
    margin-bottom: 40px;
    border-bottom: 1px solid #ebebeb;
}

.search-result:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

.search-result__title {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 0;
}

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

.search-result__excerpt p {
    font-size: 1em;
    font-weight: 500;
    color: #000;
}

.search-result__img-container { margin-bottom: 30px; }

.search-result__img-container img {
    width: 320px;
    height: 150px;
    -o-object-fit: cover;
       object-fit: cover;
}

@media(min-width: 768px) {
    .search-result__img-container img {
        width: 600px;
        height: 200px;
        -o-object-fit: cover;
           object-fit: cover;
    }
}

.page .search-result__img-container { display: none; }

.search-highlighted {
    background-color: #0032643d;
    color: #F37121;
}

.wp-block-categories .cat-item-6,
.wp-block-categories .cat-item-12,
.wp-block-categories .cat-item-14,
.wp-block-categories .cat-item-11,
.wp-block-categories .cat-item-11 {
    display: none;
}