
/*Blog Carousel*/
.cafe-carousel.cafe-posts {
    .cafe-carousel-btn {
        top: -80px;
        transform: none;
    }
}

/*End Blog Carousel*/
/*Boxed layout*/
.grid-layout {
    &.boxed {
        .inner-post-content {
            border-radius: 15px;
            background: $white_text;
            box-shadow: 0 5px 10px var(--box-shadow);
            transition: all 300ms;
            overflow: hidden;
            &:hover {
                box-shadow: 0 10px 15px var(--box-shadow);
            }
        }
        .wrap-post-item-content {
            padding: 25px 30px;
        }
        .post-loop-item .entry-title a {
            color: $black_text;
        }
        .wrap-media {
            border-radius: 0;
        }
        .title-post {
            margin-bottom: 10px;
        }
        .post-info {
            color: var(--accent-color);
            text-transform: none;
            letter-spacing: normal;
            font-size: 1rem;
            margin-bottom: 10px;
        }

    }
    &.image-shadow {
        .wrap-media {
            transition: box-shadow 300ms;
            box-shadow: 0 5px 15px var(--box-shadow);
        }
        .post-loop-item:hover {
            .wrap-media {
                box-shadow: 0 5px 20px 5px var(--box-shadow);
            }
        }
        .wrap-post-item-content {
            display: flex;
            flex-direction: column;
        }
        .entry-title {
            margin-bottom: 30px;
            a:hover {
                text-decoration: none;
            }
        }
        .post-info {
            order: -1;
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 5px;
            a {
                color: inherit;
            }
        }
        .readmore {
            padding: 0;
            font-size:18px;
            border:none;
            &:hover{
                background: transparent;
            }
            &:after {
                display: none;
            }
        }
    }
    &.img-left {
        .cafe-post-item {
            display: flex;
            align-items: center;
        }
        .wrap-media {
            width: 30%;
            transition: box-shadow 300ms;
            box-shadow: 0 15px 40px -5px var(--box-shadow);
        }
        .post-loop-item:hover {
            .wrap-media {
                box-shadow: 0 15px 40px var(--box-shadow);
            }
        }
        .post-date {
            margin-bottom: 20px;
        }
        .title-post {
            margin-bottom: 10px;
        }
        .has-post-thumbnail .wrap-post-item-content {
            width: 70%;
            padding-left: 30px;
        }
        .post-loop-item .entry-title a:hover {
            text-decoration: none;
        }
        .author-post {
            a {
                font-weight: 600;
                color: var(--accent-color);
            }
        }
        .list-cat {
            width: auto;
            a {
                margin-bottom: 0;
                text-decoration: none !important;
            }
        }
        .entry-content {
            margin-bottom: 20px;
        }
    }
    &.first-large {
        margin-left: 0 !important;
        margin-right: 0 !important;
        .wrap-right-col {
            width: 100%;
        }
        .wrap-media {
            border-radius: 0;
        }
        .list-cat a {
            font-weight: 600;
        }
        .wrap-right-col {
            & > .post-loop-item {
                border-top: 1px solid var(--border-color);
                padding-left: 0;
                padding-right: 0;
                padding-top: 10px;
                width: 100%;
                max-width: 100%;
                flex: 0 0 100%;
                &:first-child {
                    border: none;
                    .wrap-post-item-content {
                        padding-top: 0
                    }
                }
            }
        }
        & > .post-loop-item {
            box-shadow: 0 10px 30px var(--box-shadow);
            padding: 0;
            .wrap-post-item-content {
                padding: 15px 20px;
            }
        }
    }
    &.content-overlay {
        &.cafe-posts {
            margin: 0;
            width: 100%;
        }
        .cafe-post-item {
            padding: 0;
            margin: 0;
            position: relative;
        }
        .wrap-media {
            border-radius: 0;
            display: block;
            position: relative;
            margin:0;
            img {
                transform: none !important;
                width: 100%;
            }
            &:after {
                opacity: 0;
                background-image: linear-gradient(130deg, rgba(39, 212, 153, 0.8) 20%, rgba(65, 53, 186, 0.9) 60%)
            }
            &:before {
                background-image: linear-gradient(180deg, rgba(24, 38, 61, 0.3) 0%, rgba(0, 0, 0, 0.5) 90%);
            }
            &:after, &:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: block;
                transition: all 300ms;
            }
        }
        .wrap-post-item-content {
            padding: 50px;
            position: absolute;
            bottom: 0;
            left: 0;
            display: flex;
            flex-direction: column;
            transform: translateY(30px);
            transition: all 300ms;
        }
        .list-cat {
            order: -2;
            margin-bottom: 32px;
            a {
                font-size:13px;
                font-weight: 600;
                letter-spacing: 1px;
                padding: 2px 20px;
            }
        }
        .post-info {
            order: -1;
            color: $white_text;
        }
        .title-post {
            line-height: 1.2;
            margin-bottom: 15px;
            a {
                color: $white_text;
                text-decoration: none;
                font-weight: 500;
                font-size:30px
            }
        }
        .entry-content {
            color: $white_text;
            margin-bottom: 35px;
        }
        .readmore {
            padding: 0;
            margin: 0;
            opacity: 0;
            font-weight: normal;
            color: $white_text;
            &:after {
                display: none;
            }
            &:hover {
                color: var(--accent-color);
            }
        }
        .cafe-post-item:hover {
            .wrap-post-item-content {
                transform: translateY(0);
            }
            a.readmore {
                opacity: 1;
            }
            .wrap-media {
                &:after {
                    opacity: 1;
                }
                &:before {
                    opacity: 0;
                }
            }
        }

    }
    &.basic{
        .post-info{
            text-transform: none;
            letter-spacing: 0;
            font-size: 15px;
            .list-cat{
                margin-bottom: 0;
                width: auto;
                a{
                    background: none;
                    padding:0;
                    margin-right: 10px;
                    color: var(--accent-color);
                    font-weight: 500;
                    text-transform: capitalize;
                    font-size:15px
                }
            }
        }
    }
}

.post-date {
    .date {
        font-size:36px;
        font-weight: 600;
        color: var(--accent-color);
    }
    .month {
        color: var(--accent-color);
        text-transform: uppercase;
        font-size:14px
    }
}

/*End Boxed layout*/
@media(min-width: 991.98px) {
    .grid-layout {
        &.img-left {
            .wrap-media {
                width: 40%;
            }
            .has-post-thumbnail .wrap-post-item-content {
                width: 60%;
                padding-left: 60px;
                padding-right: 60px;
            }
        }
    }
}

@media(max-width: 768.98px) {
    .cafe-slide-desc h2 {
        font-size: 36px !important;
        margin-bottom: 5px;
    }
}

@media(min-width: 768.98px) {
    .grid-layout.first-large {
        justify-content: space-between;
        & > .post-loop-item {
            width: 50%;
            flex: 0 0 50%;
        }
        .wrap-right-col {
            padding: 0;
            width: calc(50% - 80px);
            flex: 0 0 calc(50% - 80px);
        }
        & > .post-loop-item {
            .title-post {
                font-size:36px
            }
            .wrap-post-item-content {
                padding: 30px 40px;
            }
        }
    }
}
