.page-header-dojo {
    font-family: var(--default-font-demi);
}

#owl-demo .featured-post-image {
    height: 100%;
    object-fit: cover;
}

#owl-demo .owl-nav.disabled {
    display: block !important;
}

#owl-demo .featured-site-image {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
}

#owl-demo .item a h6 {
    margin-bottom: 0;
}

#owl-demo .item {
  position: relative;
}

#owl-demo .item::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0 0 0 0;
  background: #e4e8ed;
  z-index: -1;
  transition: transform .3s ease;
  transform: scaleX(0);
  transform-origin: bottom right;
}

#owl-demo .item:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.main-post-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.latest-post p {
    margin-bottom: 0;
}

.latest-blog-grid .card-grid .card-img-top {
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.latest-blog-grid .card-grid .card-title {
    position: absolute;
    top: calc(125px - 24px - 11px);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    margin-bottom: 0;
}

.latest-blog-grid .card-grid .card-text {
    font-size: 14px;
    line-height: 1.285em;
    min-height: calc(18px * 3);
}

.latest-post-section .title-main {
    padding: 0.5em 0.8em;
}

.latest-post h1 {
    font-size: 20px;
}

.latest-post-section .title-main img {
    width: auto;
    height: 30px;
}

.latest-post > a {
    position: relative;
    display: block;
}

.latest-post > a::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0 0 0 0;
    background: #e4e8ed;
    z-index: -1;
    transition: transform .3s ease;
    transform: scaleX(0);
    transform-origin: bottom right;
}

.latest-post > a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.latest-post > a .col-md-6:last-child {
    transition: transform .3s ease;
}

.latest-post > a:hover .col-md-6:last-child {
    transform: scale(0.95);
}

.card-grid {
    position: relative;
}

.card-grid::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0 0 0 0;
    background: #e4e8ed;
    z-index: -1;
    transition: transform .3s ease;
    transform: scaleX(0);
    transform-origin: bottom right;
}

.card-grid:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.card-grid .card-body>.card-text,
.card-grid .card-body>.date-wrap {
    transition: transform .3s ease;
}

.card-grid:hover .card-body>.card-text,
.card-grid:hover .card-body>.date-wrap {
    transform: scale(0.95);
}


@media (min-width: 992px) {
    .latest-post > .row {
        margin: 0;
    }
    
    .latest-post > .row > .col-md-6:first-child {
        padding-left: 0;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .latest-post .row {
        display: block;
    }
    
    .latest-post .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .latest-post > .row > .col-md-6:first-child {
        margin-bottom: 15px;
    }

    .grid-latest-block-wrappper {
        flex-wrap: wrap;
    }

    .grid-latest-block {
        width: 49%;
        margin-bottom: 15px;
    }    
}


@media (max-width: 767px) {
    .author_section_home{
        font-size: 0.6em!important;    
    }
    #owl-demo {
        margin-bottom: 2rem !important;    
    }
    #owl-demo .item a h6{
        font-size: 0.7em;
    }
    .grid-latest-block .card-grid {
        align-items: center;
        flex-wrap: wrap;
        flex-direction: initial;
        margin-bottom: 20px;
    }

    .latest-blog-grid .card-grid .card-img-link {
        width: 50%;
        padding-right: 5px;
    }
    
    .latest-blog-grid .card-grid .card-body,
    .latest-blog-grid .card-grid .card-footer-cs {
        width: 50%;
        padding-left: 5px;
        margin-left: auto;
    }
    
    .latest-blog-grid .card-grid .card-text {
        min-height: auto;
        margin-top: 0;
    }
    
    .latest-blog-grid .card-grid .card-title {
        left: 0;
    }
    
    .wrapper-load-more {
        margin-top: 0 !important;
    }
    
    div#owl-demo {
        overflow: hidden;
    }
    
    
    .owl-top-home:not(.owl-loaded) .item.cs-carosel {
        min-width: 100%;
    }
    
    
    body .latest-blog-grid .card-grid .card-img-link {
        min-width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }
    
    body .grid-latest-block {
        width: 50%!important;
    }
    
    body .grid-latest-block-wrappper {
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0 -10px!important;
        width: auto;
    }
    
    body .latest-blog-grid .card-grid .card-body {
        width: 100%;
    }
    
    body .latest-blog-grid .card-grid .card-text {
        margin-bottom: 0;
        margin-top: 10px;
    }    
}

.author_section_home{
    font-size: 0.8em;
    font-weight: 400;
    line-height: 1.4em;
    font-family: var(--default-font-regular);
    color: var(--text-color-main);
}

.latest-ebook.mb-5 li {
    display: none;
}