@use "../utilities" as *;

/**----------------------------------------
START: Blog CSS
----------------------------------------*/

.post-card {
    border-radius: 12px;
    overflow: hidden;
    .post-thumb {
        position: relative;
        height: 255px;
        overflow: hidden;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.3s ease-in-out;
            transform: scale(1);
        }
    }
    .post-content-wrap{
        background: var(--bz-color-grey-4);
        padding: 40px;
        @include breakpoint(sm){
            padding: 30px 20px;
        }
    }
    .post-content {
        margin-bottom: 30px;
        padding-bottom: 25px;
        border-bottom: 1px solid #DDDEE1;
        .title {
            font-size: 24px;
            font-weight: 600;
            line-height: 1.4;
            text-transform: capitalize;
            margin-bottom: 0;
            @include breakpoint(sm){
                font-size: 18px;
            }
            a {
                background: linear-gradient(var(--bz-color-theme-primary) 0%, var(--bz-color-theme-primary) 98%);
                background-size: 0 2px;
                background-repeat: no-repeat;
                background-position: left 100%;
                @include transition(all 0.3s ease-in-out);
                &:hover {
                    color: var(--bz-color-theme-primary);
                    background-size: 100% 2px;
                }
            }
        }
    }
    .read-more{
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--bz-color-theme-primary);
        @include flex-vertical-center;
        i{
            font-size: 14px;
            margin-left: 5px;
            @include transition(all 0.3s ease-in-out);
        }
        &:hover{
            i{
                margin-left: 8px;
            }
        }
    }
    &:hover{
        .post-thumb{
            img{
                transform: scale(1.02);
            }
        }
    }
}


.post-meta {
    @include flex-vertical-center;
    list-style: none;
    flex-wrap: wrap;
    row-gap: 10px;
    margin-bottom: 20px;
    li {
        font-family: var(--bz-ff-body);
        color: var(--bz-color-text-body);
        font-size: 16px;
        font-weight: 500;
        @include flex-vertical-center;
        column-gap: 10px;
        i{
            font-size: 15px;
            color: var(--bz-color-theme-primary);
        }
        &:not(:last-of-type){
            margin-right: 20px;
        }
        a {
            &:hover {
                color: var(--bz-color-theme-primary);
            }
        }
        @include breakpoint(sm){
            font-size: 12px;
        }
    }
}

.post-card-3{
    position: relative;
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    .post-thumb{
        height: 540px;
        width: 100%;
        border-radius: 15px;
        @include breakpoint(sm){
            height: 450px;
        }
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .post-content{
        background-color: var(--bz-color-common-white);
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 585px;
        width: 100%;
        padding: 40px;
        border-radius: 15px;
        visibility: hidden;
        opacity: 0;
        z-index: 2;
        @include transition(all 0.3s ease-in-out);
        @include breakpoint(lg){
            max-width: 410px;
        }
        @include breakpoint(md){
            padding: 40px 30px;
            max-width: 325px;
        }
        @include breakpoint(sm){
            max-width: 270px;
            padding: 30px 20px;
        }
        .title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
            @include breakpoint(sm){
                font-size: 20px;
            }
            a {
                background: linear-gradient(var(--bz-color-theme-primary) 0%, var(--bz-color-theme-primary) 98%);
                background-size: 0 2px;
                background-repeat: no-repeat;
                background-position: left 100%;
                @include transition(all 0.3s ease-in-out);
                &:hover {
                    color: var(--bz-color-theme-primary);
                    background-size: 100% 2px;
                }
            }
        }
        .blog-btn{
            font-family: var(--bz-ff-heading);
            color: var(--bz-color-heading-primary);
            @include flex-vertical-center;
            column-gap: 10px;
            font-size: 16px;
            font-weight: 500;
            &:hover{
                color: var(--bz-color-theme-red);
            }
            i{
                background-color: var(--bz-color-theme-red);
                color: var(--bz-color-common-white);
                height: 40px;
                width: 40px;
                border-radius: 50%;
                @include flex-center;
            }
        }
    }
    &:hover{
        .post-content{
            visibility: visible;
            opacity: 1;
            bottom: 30px
        }
    }
}

.post-inner{
    margin-bottom: 30px;
    .post-thumb{
        height: 450px;
        @include breakpoint(md){
            height: 350px;
        }
        .video-btn{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            a{
                background-color: rgba(30, 110, 231, 0.9);
                color: var(--bz-color-common-white);
                font-size: 30px;
                height: 100px;
                width: 100px;
                border-radius: 50%;
                @include flex-center;
            }
            img{
                margin-bottom: 5px;
            }
            .ripple{
                height: 100px;
                width: 100px;
                &:before,
                &:after{
                    height: 100px;
                    width: 100px;
                }
                
            }
        }
    }
    .post-content{
        .title{
            font-size: 30px;
            @include breakpoint(sm){
                font-size: 22px;
            }
        }
        p{
            margin-top: 15px;
            margin-bottom: 0;
        }
    }
    &:hover{
        .post-thumb{
            .swiper-arrow{
                @include transition(all 0.3s ease-in-out);
                visibility: visible;
                opacity: 1;
            }
        }
    }
}

.post-thumb-carousel{
    .swiper-arrow{
        visibility: hidden;
        opacity: 0;
        @include transition(all 0.3s ease-in-out);
        .swiper-nav{
            background-color: rgba(30, 110, 231, 0.9);
            color: var(--bz-color-common-white);
            height: 50px;
            width: 50px;
            @include flex-center;
            border-radius: 0 5px 5px 0;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            z-index: 2;
            &.swiper-next{
                left: auto;
                right: 0;
                border-radius: 5px 0 0 5px;
            }
        }
    }
}

.pagination-wrap{
    @include flex-vertical-center;
    list-style: none;
    column-gap: 10px;
    li{
        a{
            background-color: var(--bz-color-grey-1);
            color: var(--bz-color-heading-primary);
            font-weight: 600;
            height: 50px;
            width: 50px;
            font-size: 14px;
            @include flex-center;
            line-height: 1;
            border-radius: 10px;
            &:hover{
                background-color: var(--bz-color-theme-primary);
                color: var(--bz-color-common-white);
            }
        }
        .active{
            background-color: var(--bz-color-theme-primary);
            color: var(--bz-color-common-white);
        }
    }  
}



/* !END: Theme Blog CSS */
