/* blog card start ------------------------------*/

.blog-card {
    position: relative;

    .box-img {
        position: relative;
        margin-bottom: 32px;
        z-index: 6;
    }
    .blog-img {
        z-index: 8;
    }

    .blog-meta {
        margin-bottom: 24px;

        a {
            padding: 4px 12px;
            border: 1px solid #EDEDED;

        }

        i {
            color: $theme-color;
        }
    }

    .box-title {
        font-family: $title-font2;
        font-size: 40px;
        font-weight: 400;

        @include ml {
            font-size: 30px;
        }
    }

    .box-wrapp {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .date {
        font-weight: 400;
        font-size: 16px;
        color: $title-color;

    }

    &.style2 {
        display: flex;
        gap: 80px;

        @include md {
            flex-direction: column;
            gap: 40px;
        }

        .box-content {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .blog-meta span,
        .blog-meta a {
            margin-right: 14px;
        }

        .box-title {
            font-family: $title-font;
            font-weight: 700;
            max-width: 718px;
        }

        .th-btn {
            padding: 19px 25px;
        }
    }

    &.style3 {
        .box-date {
            background-color: $white-color;
            padding: 16px;
            position: absolute;
            left: 16px;
            top: 16px;

            .date {
                display: block;
                font-family: $title-font;
                font-weight: 700;
                font-size: 40px;
                color: $title-color;
                margin-bottom: 12px;

            }

            .month {
                font-weight: 400;
                font-size: 14px;
                display: block;
                color: #6C6D71;
                margin-bottom: -0.4rem;
            }

        }

        .blog-meta a {
            margin-right: 16px;
        }

        .box-title {
            font-family: $title-font;
            font-weight: 600;
            font-size: 24px;
            color: $title-color;
            border-bottom: 1px solid #EDEDED;
            padding-bottom: 32px;
            margin-bottom: 32px;
            

        }
    }

}

/* blog box start ------------------------------*/
.blog-box {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 30px;

    @include sm {
        flex-direction: column;
    }

    .box-img {
        min-width: 387px;

        @include sm {
            min-width: 100%;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .blog-meta {
        margin-bottom: 24px;

        a,
        .date {
            font-weight: 400;
            font-size: 16px;
            color: $gray-color;
            border: 1px solid #333333;
            padding: 4px 12px;
            margin-right: 17px;

        }
    }

    .box-title {
        font-family: $title-font2;
        color: $white-color;
        font-weight: 400;
        font-size: 40px;
        margin-bottom: 50px;

        @include sm {
            font-size: 30px;
        }
    }
}

/* blog grid start --------------------*/
.blog-grid {
    border: 1px solid #DEDFE3;
    border-radius: 24px;
    padding: 30px 32px;

    @include sm {
        padding: 25px;
    }

    &.style2 {
        display: flex;
        gap: 30px;

        @include xxl {
            gap: 20px;
        }

        @include ml {
            display: block;
        }


        .blog-img {
            min-width: 247px;
            height: 100%;
            border-radius: 16px;
            margin-top: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            @include ml {
                width: 100%;
                min-width: 100%;
                height: 340px;
                margin-bottom: 13px;
            }
        }

        .box-title {
            letter-spacing: 0.02em;
        }

        .box-text {
            margin-bottom: 27px;
        }
    }

    .blog-img {
        border-radius: 16px;
        margin-top: 32px;

        img {
            width: 100%;
            border-radius: 14px;
        }
    }

    .blog-meta {
        margin-bottom: 13px;

        i {
            color: $theme-color;
        }
    }

    .box-title {
        letter-spacing: 0.02em;
        color: #010F1C;
        margin-bottom: 10px;

        @include xxl {
            font-size: 24px;
            line-height: 34px;
        }
    }

    .box-text {
        font-size: 18px;
        border-bottom: 1px solid #DEDFE3;
        margin-bottom: 32px;
        padding-bottom: 22px;
    }

    .th-btn {
        font-size: 18px;
        padding: 13px 24px;
    }
}

/* blog-item start ---------------------*/
.blog-item {
    position: relative;
    z-index: 2;
    --space: 30px;

    @include md {
        --space: 20px;
    }

    .box-img {
        border-radius: 20px;
        margin-bottom: -125px;
        overflow: hidden;
        position: relative;
        z-index: 3;

        img {
            border-radius: 20px;
        }
    }

    .box-content {
        position: relative;
        max-width: calc(100% - var(--space)* 2);
        margin-left: var(--space);
        background: $white-color;
        box-shadow: 0px 4px 30px #EFEFEF;
        border-radius: 20px;
        padding: 40px;
        z-index: 3;
        transition: all 0.4s ease-in-out;

        @include ml {
            padding: 30px;
        }

    }

    .blog-meta {
        margin: -0.3rem 0 20px 0;
    }

    .box-title {
        font-size: 22px;

        a {
            color: inherit;
        }
    }

    .blog-btn {
        margin-bottom: -1.3rem;
        transform: translateY(30px);
        opacity: 0;
        height: 0;
        transition: all 0.4s ease-in-out;
    }

    &:hover {
        .box-content {
            background: $theme-color;
        }

        .blog-meta {
            a {
                color: $white-color;
            }

            i {
                color: $white-color;
            }
        }

        .box-title {
            color: $white-color;
        }

        .blog-btn {
            height: 100%;
            opacity: 1;
            transform: translateY(0px);
            margin-bottom: 0;
        }

        .line-btn {
            color: $white-color;

            &:before {
                background-color: $white-color;
            }
        }
    }
}