/**
  * Posts
  * Used on blog, category, archive and search results pages
  */

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

@media (min-width: 1025px) {

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

}

/* Custom styling for blog, category, archive and search results pages */
.single .blog-listing-container {
    padding-top: 0;
}

.blog-listing {
    margin-top: var(--section-margins);
}

.blog-post__item-container {
    width: 100%;
    margin-bottom: 40px;
}

.blog-listing [class*="col-"] {
    padding-top: 20px;
    padding-bottom: 20px;
}

.blog-post__item {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 30px 0 rgb(0 0 0 / 10%);
    overflow: hidden;
    transition: 0.5s ease;
    color: var(--body-text-color);
    cursor: pointer;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    will-change: transform;
    -webkit-transform: scale( 1 ) translateZ( 0 );
            transform: scale( 1 ) translateZ( 0 );
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.blog-post__img-container {
    height: 231px;
    background-color: #f5f5f5;
    border-radius: 0;
}

.blog-post__img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

.blog-post__meta {
    padding: 20px;
    display: block;
    flex-grow: 1;
    height: 100%;
}

.blog-post__title {
    margin-top: 13px;
    margin-bottom: 16px;
}

.blog-post__title__link {
    text-decoration: none;
}

.blog-post__title__link:hover {
    color: var( --blue-hover );
}

.blog-post__excerpt p {
    margin-top: 13px;
}

.blog-post__tag {
    font-size: 11px;
    color: #fff;
    background-color: var(--blue);
    line-height: 2em;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 3px;
    font-weight: 500;
    padding-bottom: 0;
    display: inline-flex;
    text-decoration: none;
}

.blog-listing__pagination {
    margin-top: 20px;
    display: block;
    clear: both;
}

/* Infinite Scroll */
.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 8px;
    min-width: 250px;
}

progress::-webkit-progress-bar {
    height: 10px;
    border: 0;
    background-color: var(--bg-blue);
    border-radius: 8px;
}

progress::-webkit-progress-value {
    height: 10px;
    border: 0;
    background-color: var(--blue);
    border-radius: 8px;
}

progress::-moz-progress-bar {
    height: 10px;
    border: 0;
    border-radius: 8px;
}

.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 {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 20px;
    border: 5px solid;
    border-color: var(--border-color) var(--border-color) 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;
}

.blog-post__content,
.blog-post__sidebar {
    margin-bottom: 25px;
}

.blog-post-hero__img-container img {
    border-radius: var(--border-radius);
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-post-hero__img-container {
    height: 150px;
}

.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: var(--border-color) var(--border-color) 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;
}

@-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-post__content-container,
.blog-post__sidebar {
    padding: 20px;
}

.blog-post__sidebar .widget_search form {
    position: relative;
    float: none;
    display: flex;
    align-items: center;
}

.blog-post__sidebar .widget_search form label {
    position: absolute;
    left: 13px;
    margin-bottom: 0;
}

.blog-post__sidebar .icon-search {
    color: var(--body-text-color);
}

.blog-post__sidebar .widget_search [type="text"] {
    padding-left: 36px;
}

.blog-post__sidebar .widget_search button {
    width: 100px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 0;
}

.blog-post__sidebar h3 {
    margin-bottom: 13px;
}

.blog-post__sidebar ul {
    padding-left: 0;
    margin-top: 13px;
}

.blog-post__sidebar ul li {
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    margin-bottom: 0;
}

.blog-post__sidebar ul li:first-child {
    padding-top: 0;
}

@media only screen and (max-width: 599px) {
    .single .blog-listing-container .container {
        padding: 0;
    }

    .blog-post__sidebar {
        background: var(--bg-blue);
    }
}


@media (min-width: 600px) {
    .single .blog-listing-container {
        padding-top: 25px;
    }

    .blog-post__content,
    .blog-post__sidebar {
        box-shadow: 0 1px 30px rgb(0 0 0 / 5%);
        border-radius: 10px;
        background-image: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, 0) 100%);
        overflow: hidden;
    }

    .blog-post__content-container,
    .blog-post__sidebar {
        padding: 30px;
    }

    .blog-post-hero__img-container {
        height: 350px;
    }
}

@media (min-width: 768px) {
    .blog-post__content-container {
        padding: 40px;
    }

    .blog-post__sidebar {
        padding: 35px;
    }
    
    .blog-post-hero__img-container {
        height: 410px;
    }

}

@media (min-width: 1025px) {
    .single .blog-listing-container {
        padding: 100px 0;
    }

    .blog-post__meta {
        padding: 38px;
    }

    .blog-post__item:hover {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        box-shadow: 0 1px 30px 0 rgb(0 0 0 / 30%);
    }

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

    .load-more__btn {
        margin-top: 25px;
    }

    .blog-post__content-container {
        padding: 60px;
    }

    .blog-post__content,
    .blog-post__sidebar {
        margin-bottom: 0;
    }

}

/* Search Results */
.search-result {
    text-decoration: none;
}

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

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

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

/**
  * Custom Social Share Styles
  * Anything that can not be customized by https://sharingbuttons.io/ (updated in plugins/FxSocialShare.css) can be added here
  */