/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


.entry::after { background-color: #EEE !important; }
.dark .entry::after { background-color: rgba(255,255,255,0.15) !important; }

.entry:not(:last-child)::after {
    --cnvs-post-item-margin: 30px;
    display: block;
}

/* Responsive Device more than 992px (.device-md >)
-----------------------------------------------------------------*/
@media (min-width: 992px) {


    .dark .border-between > [class*='col-']::before { background: rgba(255, 255, 255, 0.2); }

    .border-between > [class*='col-']:first-child::before { display: none; }

    /* Re-Edit Bootstrap */
    .border-between > [class*='col-'],
    .border-between .container,
    .border-between .container-fluid {
        padding-right: 30px;
        padding-left: 30px;
    }

    .border-between.row {
        margin-right: -30px;
        margin-left: -30px;
    }
}

/**
 * Begin Recipe Categories ------------------------------------------------------------------------------------------
 */

.recipe-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.recipe-category {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px;
    height: 80px;
    background-size: cover;
    background-position: center center;
    border-radius: 250px;
    transition: all 0.5s cubic-bezier(.02, .01, .5, 1);
}

.recipe-category::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0,0,0,0.2);
}

.recipe-category-inner {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}


.recipe-category-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    border-radius: 100%;
    background-color: #FFF;
    padding: 8px;
    margin-right: 10px;
    color: #000;
    transition: transform .5s ease-out;
}

.recipe-category:hover .recipe-category-icon {
    transform: rotate(360deg);
}

.recipe-category-info {
    color: #FFF;
    font-size: 18px;
    text-align: center;
}

@media (min-width: 768px) {

    .recipe-category {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

}


@media (min-width: 992px) {

    .recipe-category {
        flex: 0 0 60px;
        max-width: 60px;
        height: 300px;
        margin: 15px;
        background-size: auto 105%;
        background-position: center;
        border-radius: 30px;
    }

    .recipe-category:hover {
        flex: 0 0 363px;
        max-width: 363px;
        background-size: auto 100%;
        border-radius: 10px;
    }

    .recipe-category-inner {
        width: auto;
        height: auto;
        left: 0;
        top: auto;
        bottom: 0;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

    .recipe-category:hover .recipe-category-inner {
        writing-mode: horizontal-tb;
        transform: rotate(0);
    }

    .recipe-category:not(:hover) .recipe-category-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
        transform: rotate(180deg);
    }

    .recipe-category::after {
        background: -webkit-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
        background: -o-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
    }

}



.recipe-items .card img,
.rotating {
    transform: rotate(0deg);
    transition: transform 1.5s linear;
}

.recipe-items .card:hover img,
.rotating:hover {
    transform: rotate(360deg);
    transition: transform 20s linear;
}

.recipe-items .row  {
    border-top: 1px solid #EEE;
    margin-top: -1px;
    margin-bottom: -1px;
}

.recipe-items .row [class^=col-] {
    border-right: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
}

.recipe-items .card {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 20px 10px;
}

.recipe-items .card-author {
    font-size: 12px;
    font-weight: 400;
    color: #AAA;
    margin-bottom: 0;
}

.recipe-items .card-title {
    font-size: 18px;
    line-height: 1.3;
}
.recipe-items .card-author a {
    color: #999;
    text-transform: uppercase;
    margin-left: 2px;
    font-weight: 600;
}

.recipe-items .card-title a { color: #222; }

.recipe-items .card-date {
    margin-top: 15px;
    color: #555;
    margin-bottom: 0;
    font-weight: 400;
}

.recipe-items .card-date i { margin-right: 6px; }

/**
 * End Recipe Categories ------------------------------------------------------------------------------------------
 */
.section {
    margin: 0;
}


.move-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    -webkit-backface-visibility: hidden;
}


/* img-hover-wraps */
.img-hover-wrap {
    -webkit-transition: transform .3s ease;
    -o-transition: transform .3s ease;
    transition: transform .3s ease;
    -moz-transform-style: flat !important;
    -webkit-backface-visibility: hidden;
}

.img-hover-wrap:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    z-index: 99;
}

.img-hover-card:after {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    transition: all .3s ease;
    opacity: 0;
}

.img-hover-wrap.show-title .img-hover-card:after { opacity: 0.5; }

.img-hover-wrap:hover .img-hover-card:after { opacity: 1 }

.img-hover-card {
    position: relative;
    display: block;
    will-change: transform;
    transition: all .3s ease;
    box-shadow: 0 10px 40px transparent;
}

.img-hover-card img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.img-hover-card.hover-in {
    transition: -webkit-transform .2s ease-out;
    transition: transform .2s ease-out;
    transition: transform .2s ease-out, -webkit-transform .2s ease-out;
}

.img-hover-card.hover-3d { z-index: 99; }

.img-hover-card.hover-out {
    transition: -webkit-transform .2s ease-in;
    transition: transform .2s ease-in;
    transition: transform .2s ease-in, -webkit-transform .2s ease-in;
}

.img-hover-wrap:hover .img-hover-card { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }

.img-hover-wrap.show-title .img-hover-title,
.img-hover-wrap.show-title .img-hover-category {
    -webkit-transform: translateY(0) scale(1);
    -ms-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    opacity: 1;
}

.img-hover-wrap.show-title:hover .img-hover-title,
.img-hover-wrap.show-title:hover .img-hover-category {
    -webkit-transform: scale(1.106);
    -ms-transform: scale(1.106);
    transform: scale(1.106);
}

.img-hover-wrap:hover .img-hover-title,
.img-hover-wrap:hover .img-hover-category {
    -webkit-transform: translateY(0) scale(1);
    -ms-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    opacity: 1;
}

.img-hover-detail {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 40px;
    bottom: 40px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    -webkit-transform: translateZ(40px);
    transform: translateZ(40px);
    -webkit-backface-visibility: hidden;
}

.img-hover-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    transition: .4s ease;
    opacity: 0;
    -webkit-transform: translateY(40px) scale(0);
    -ms-transform: translateY(40px) scale(0);
    transform: translateY(40px) scale(0);
    will-change: transform;
}

.img-hover-category {
    opacity: 0;
    margin: 0 0 18px;
    font-family: 'Lato';
    transition: .4s ease;
    transition-delay: .1s;
    -webkit-transform: translateY(40px) scale(0);
    -ms-transform: translateY(40px) scale(0);
    transform: translateY(40px) scale(0);
    will-change: transform;
}

.img-hover-detail a { color: #FFF; }

.img-hover-wrap a {
    pointer-events: auto; /* Allow links to be clickable */
}

.section-title {
    font-size: 1.125rem !important;
    line-height: 2.6 !important;
    font-weight: 600 !important;
}

/* ***** section divider start ***** */
.section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.section-divider .vertical-line {
    width: 4px;
    height: 30px;
    background-color: #000;
    margin-right: 10px;
}

.section-divider .title {
    font-weight: 400;
    font-size: 1.5rem;
    margin-right: 10px;
    white-space: nowrap;
}

.section-divider .horizontal-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    margin-right: 10px;
}

.section-divider .read-more {
    text-decoration: none;
    color: #007BFF;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.section-divider .read-more:hover {
    color: #0056b3;
}
/* ***** section divider end ***** */
