/* Blog Card ---------------------------------- */
.blog-title {
    font-size: 30px;
}
.blog-card {
    box-shadow: 0px 10px 15px rgba(8, 14, 28, 0.06);
    border-radius: 0px;
    background-color: $white-color;
    .box-title {
        margin-bottom: 24px;
        a {
            background-image: linear-gradient(to left, $white-color, $white-color);
            background-repeat: no-repeat;
            background-position: bottom left;
            background-size: 0 2px;
            transition: 0.5s ease-in-out;
            &:hover {
                background-size: 100% 2px;
            }
        }
    }
    .blog-img {
        overflow: hidden;
        border-radius: 0px;
        img {
            width: 100%;
            transition: 0.4s ease-in-out;
        }
    }
    .blog-meta {
        margin-bottom: 13px;
        span, 
        a {
            > i {
                color: $theme-color;
            }
        }
    }
    .blog-content {
        padding: 33px 40px 35px;
        transition: 0.4s;
        position: relative;
        z-index: 0;
        &:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 0;
            width: 100%;
            background: $white-color;
            transition: 0.4s;
            z-index: -1;
        }
        .blog-bg-shape {
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }
    .blog-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid $border-color;
        padding-top: 30px;
    }
    .author {
        color: $body-color;
        img {
            margin-right: 5px;
        }
        &:hover {
            color: $theme-color;
        }
    }
    .blog-text {
        margin-top: -0.5em;
        margin-bottom: 22px;
        transition: 0.4s;
    }
    .link-btn {
        color: $title-color;
        &:before {
            background-color: $theme-color;
        }
        &:hover {
            color: $theme-color;
        }
    }
    &:hover {
        .blog-img {
            img {
                transform: scale(1.08);
            }
        }
        .blog-meta span, .blog-meta a {
            color: $border-color;
        }
        .box-title a {
            color: $white-color;
        }
        .blog-text {
            color: $border-color;
        }
        .link-btn {
            color: $theme-color;
        }
        .blog-content:after {
            background: $title-color;
            height: 100%;
        }
    }
    &.style2 {
        box-shadow: none;
        .blog-img {
            position: relative;
            &:after {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                background: $black-color;
                opacity: 0;
                transition: 0.4s;
            }
        }
        .blog-content {
            background: #FFFFFF;
            box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
            margin: 0 30px;
            margin-top: -127px;
            padding: 30px;
            &:after {
                display: none;
            }
        }
        &:hover {
            .blog-img:after {
                opacity: 0.7;
            }
            .blog-meta span, .blog-meta a {
                color: $body-color;
            }
            .box-title a {
                color: $title-color;
                background-image: linear-gradient(to left, $title-color, $title-color);
            }
            .blog-text {
                color: $body-color;
            }
        }
    }
    &.style3 {
        .blog-meta {
            margin-bottom: 5px;
        }
        .blog-title {
            font-weight: 800;
            margin-bottom: 23px;
            a {
                background-image: linear-gradient(to left, $theme-color, $theme-color);
                background-repeat: no-repeat;
                background-position: bottom left;
                background-size: 0 2px;
                transition: 0.5s ease-in-out;
                &:hover {
                    background-size: 100% 2px;
                }
            }
        }
        .blog-text {
            color: $body-color;
            margin-bottom: 32px;
        }
        .blog-content {
            padding: 39px 40px 20px;
            &:after {
                display: none;
            }
        }
        .blog-bottom {
            padding-top: 20px;
        }
        &:hover {
            .blog-content {
                background: $white-color;
            }
            .blog-meta span, 
            .blog-meta a {
                color: $title-color;
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }
    &.style4 {
        padding: 20px 20px 0 20px;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08);
        .blog-img {
            position: relative;
            &:after {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                background: rgba(0, 0, 0, 0.7);
                transition: 0.4s;
                opacity: 0;
            } 
            .icon-btn {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                z-index: 1;
                transition: 0.4s;
                opacity: 0;
            }
        }
        .blog-content {
            padding: 33px 20px 40px;
            &:after {
                display: none;
            }
        }
        .blog-text {
            margin-bottom: -0.5em;
        }
        &:hover {
            .blog-content {
                background: transparent;
            }
            .blog-meta span, .blog-meta a {
                color: $title-color;
            }
            .box-title a {
                color: $title-color;
                &:hover {
                    background-image: linear-gradient(to left, $title-color, $title-color);
                }
            }
            .blog-text {
                color: $body-color;
            }
            .blog-img {
                .icon-btn,
                &:after {
                    opacity: 1;
                }
            }
        }
    }
}
.blog-grid-card {
    display: flex;
    background: #FFFFFF;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
    gap: 40px;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
    .blog-img {
        overflow: hidden;
        flex: none;
        position: relative;
        img {
            width: 100%;
            transition: 0.4s ease-in-out;
        }
        .blog-date {
            background: $theme-color;
            position: absolute;
            right: 30px;
            top: 30px;
            color: $white-color;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            padding: 11px 6.5px 3px;
            &::first-line {
                font-size: 22px;
                line-height: 20px;
            }
        }
    }
    .blog-meta {
        margin-bottom: 13px;
    }
    .box-title {
        margin-bottom: 11px;
        a {
            background-image: linear-gradient(to left, $theme-color, $theme-color);
            background-repeat: no-repeat;
            background-position: bottom left;
            background-size: 0 2px;
            transition: 0.5s ease-in-out;
            &:hover {
                background-size: 100% 2px;
            }
        }
    }
    .blog-content {
        padding: 24px 40px 20px 0;
    }
    .blog-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid $border-color;
        padding-top: 20px;
    }
    .link-btn {
        color: $title-color;
        &:before {
            background-color: $theme-color;
        }
        &:hover {
            color: $theme-color;
        }
    }
    &:hover {
        .blog-img {
            img {
                transform: scale(1.08);
            }
        }
    }
}
.blog-navigation {
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
    padding: 40px 0;
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    .nav-btn {
        display: flex;
        align-items: center;
        &:hover {
            .icon-btn {
                background: transparent;
                color: $theme-color;
            }
        }
    }
    .icon-btn {
        --btn-size: 60px;
        border-radius: 50%;
        background-color: $theme-color;
        color: $white-color;
        border: 1px solid $theme-color;
    }
    .nav-title {
        font-size: 20px;
        font-weight: 700;
        font-family: $title-font;
        color: $title-color;
        display: block;
        margin-bottom: 8px;
    }
    .nav-text {
        font-size: 14px;
        font-weight: 700;
        color: $body-color;
        font-family: $title-font;
    }
}
@include xl {
    .blog-card .blog-content {
        padding: 30px 30px;
    }
}
@include ml {
    .blog-grid-card {
        gap: 30px;
        .box-title {
            font-size: 22px;
        }
        .blog-content {
            padding: 24px 30px 20px 0;
        }
    }
}
@media (max-width: 1200px) {
    .blog-card.style2 .blog-content {
        margin: 0;
        box-shadow: 0px 10px 15px rgba(8, 14, 28, 0.06);
    }
    .blog-grid-card .blog-img {
        width: 200px;
        img {
            height: 100%;
            object-fit: cover;
        }
    }
    .blog-card.style4 .blog-content {
        padding: 33px 10px 40px;
    }
}
@include lg {
    .blog-card.style2 .blog-content {
        margin: -127px 30px 0;
    }
    .blog-grid-card {
        .blog-content {
            width: 100%;
        }
        .blog-img {
            width: auto;
            height: 200px;
        }
    }
}
@include md {
    .blog-card {
        .blog-content {
            padding: 30px 30px;
        }
        .box-title {
            font-size: 22px;
        }
    }
    .blog-card.style2 .blog-content {
        margin: 0;
    }
    .blog-grid-card .blog-img {
        height: 231px;
    }
}

@include sm {
    .blog-card {
        .blog-content {
            padding: 30px 40px;
        }
        .box-title {
            font-size: 24px;
        }
    }
    .blog-card.style2 .blog-content {
        margin: -127px 30px 0;
    }
    .blog-card.style3 .blog-content {
        padding: 29px 30px 20px;
    }
    .blog-card.style3 .blog-title {
        font-size: 24px;
    }
    .blog-grid-card .blog-img {
        height: 259px;
        width: 185px;
    }
}
@include xs {
    .blog-grid-card {
        display: block;
        .blog-img {
            width: 100%;
            height: auto;
        } 
        .blog-content {
            padding: 24px 30px 20px;
        }
    }
}
@media (max-width: 410px) {
    .blog-card {
        .blog-content {
            padding: 30px 30px;
        }
        .box-title {
            font-size: 22px;
        }
    }
}
@include vxs {
    .blog-card.style2 .blog-content {
        margin: 0;
        padding: 30px 20px;
    }
    .blog-card.style3 .blog-content {
        padding: 29px 20px 20px;
    }
    .blog-grid-card .blog-content {
        padding: 24px 20px 20px;
    }
    .blog-card.style4 .blog-content {
        padding: 23px 0px 25px;
    }
}
@media (max-width: 350px) {
    .blog-card {
        .blog-content {
            padding: 30px 20px;
        }
        .box-title {
            font-size: 20px;
        }
        .blog-meta span, .blog-meta a {
            margin-right: 0px;
            padding-right: 10px;
        }
        .blog-meta span:after, .blog-meta a:after {
            margin-left: 12px;
        }
        .blog-meta span:last-child, .blog-meta a:last-child {
            padding-right: 0;
        }
    }
    .blog-grid-card .blog-meta {
        span,
        a {
            margin-right: 0px;
            padding-right: 10px;
        }
        span:after, 
        a:after {
            margin-left: 12px;
        }
        span:last-child, 
        a:last-child {
            padding-right: 0;
        }
    }
}