@import '../../../scss/base';

/** Blog Style CSS --------------
-----------------------------------*/
.reactheme-blog-grid {
    .reactheme-pagination-area {
        text-align: center;
        .nav-links {
            span.current {
                background: var(--primaryColor);
                color: #fff;
                font-size: 16px;
                text-decoration: none;
                transition: var(--transition);
                text-align: center;
                color: #fff;
                display: inline-block;
                vertical-align: top;
                border: 1px solid #E9E9E9;
                font-weight: 700;
                width: 50px;
                height: 50px;
                line-height: 50px;
                border-radius: 4px;
            }
            a {
                line-height: 50px;
                color: #000;
                font-size: 16px;
                text-decoration: none;
                transition: var(--transition);
                text-align: center;
                background: transparent;
                opacity: 0.96;
                display: inline-block;
                vertical-align: top;
                border: 1px solid #E9E9E9;
                border-radius: 4px;
                font-weight: 700;
                width: 50px;
                height: 50px;
                &:hover {
                    background: var(--primaryColor);
                    color: var(--whiteColor);
                }
                &.next.page-numbers,
                &.prev.page-numbers {
                    max-width: max-content;
                    width: max-content;
                    padding: 0 4px;
                }
            }
        }
    }
    .rts-blog-h-2-wrapper {
        overflow: hidden;
    }
    .rts-read-more {
        color:#fff;
        font-weight: 600;
        i{
            text-align: center;
            color: var(--titleColor);            
            font-size: 14px;
            transition: 0.3s;;
        }
        &:hover{
            i{
                color: var(--primaryColor);
            }
        }
    }
    &.blog--style1, 
    &.blog--style4,
    &.blog--style5,
    &.blog--style6 {
        .blog-item {
            padding: 30px;
            border-radius: 6px;
            border: 1px solid #DDD8F9;
            overflow: hidden;
            .col-top {                
                position: relative;
                .image-part {
                    overflow: hidden;
                    border-radius: 6px;
                    a {
                        img {
                            width: 100%;
                            transition: 0.3s;
                            &:hover {
                                transform: scale(1.1);
                            }
                        }
                    }
                }
            }
            .blog-meta {
                margin: 0;
                list-style: none;
                padding: 30px 0 10px;
                display: flex;
                align-items: center;
                li {
                    margin-right: 30px;
                    i {
                        font-size: 16px;
                        line-height: 16px;
                        color: var(--primaryColor);
                        margin-right: 2px;
                    }
                    a {
                        padding: 5px 9px;
                        background: #E6E5FF;
                        color: var(--primaryColor);
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 22px;
                        text-transform: capitalize;
                        border-radius: 2px;
                    }
                    .blog-badge {
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 22px;
                        text-transform: capitalize;
                        position: relative;
                        &::before {
                            content: '';
                            width: 5px;
                            height: 5px;
                            background: #497696;
                            position: absolute;
                            left: -15px;
                            top: 50%;
                            transform: translateY(-50%);
                            border-radius: 30px;
                        }
                    }
                }
                &.cat_list_wrapper {
                    position: absolute;
                    top: 15px;
                    left: 15px;
                    padding-top: 0;
                    i {
                        display: none;
                    }
                    .cat_list {
                        a {
                            display: flex;
                            padding: 4px 10px;
                            border-radius: 2px;
                            background: #EEEBFF;
                            max-width: max-content;
                            color: var(--primaryColor);
                        }
                    }
                }
            }
            .blog_content {
                text-align: left;
                .title {
                    font-size: 24px;
                    line-height: 1.24;
                    font-weight: 700;
                    a {
                        color: var(--titleColor);
                        &:hover {
                            color: var(--primaryColor);
                        }
                    }
                }
                .blog-btn {
                    a {
                       padding: 10px 28px;
                       i {
                        color: #fff;
                       }
                       &:hover {
                        i {
                            color: var(--primaryColor);
                           }
                       }
                    }
                }
                .blog-footer-area {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    .left-area {
                        display: flex;
                        align-items: center;
                        img {
                            width: 40px;
                            height: 40px;
                            line-height: 40px;
                            border-radius: 100%;
                        }
                        .info {
                            margin-left: 15px;
                            h6 {
                                margin: 0;
                                font-size: 16px;
                                line-height: 15px;
                            }
                            span {
                                font-size: 14px;
                            }
                        }
                    }
                }
            }
        }
    }
    &.blog--style4,
    &.blog--style5{ 
        .blog-item {
            .blog-meta.cat_list_wrapper {
                position: relative;
                left: auto;
                right: auto;
                top: auto;
            }
        }
    }
    &.blog--style5 {
        .blog-item {
            .rts-blog-h-2-wrapper {
                display: flex;
                align-items: center;
                gap: 28px;
                .col-top {
                    position: relative;
                    max-width: max-content;
                    display: block;
                    min-width: max-content;
                    overflow: hidden;
                    border-radius: 6px;
                }
                .blog-meta-area ul.blog-meta {
                    padding-top: 0;
                    margin-left: -3px;
                    li {
                        margin-right: 20px;
                        i {
                            color: var(--bodyColor);
                        }
                    }
                }
                .blog_content {
                    .title  {
                        margin-bottom: 10px;
                        margin-top: 10px;
                    }
                    .content {
                        margin-bottom: 20px;
                    }
                }
            }
        }
    }
    &.blog--style6{
        .reactheme-blog-grid1{
            background: #fff;
        }
        .single-blog-list-wrapper {
            display: flex;
            align-items: center;
            gap:28px;
            @media screen and (max-width: 700px) {
                flex-direction: column;
                align-items: flex-start;
            }
            .col-top{
                max-width: max-content;
                display: block;
                min-width: max-content;
                overflow: hidden;
                border-radius: 6px;
                img {
                    transition: 0.3s;
                }
            }
            .blog-content{
                .cat_list_wrapper{
                    position: inherit;
                }
                .title{
                    margin-bottom: 10px;
                    margin-top: 20px;
                    font-size: 22px;
                }
                p.txt{
                    margin-bottom: 20px;
                }
                .blog-meta {
                    padding-bottom: 0;
                }
                .blog-meta-area{
                    ul{
                        padding: 0;
                        gap: 20px;
                        li{
                            margin-right: 0;
                            gap: 12px;
                            i{
                                color: var(--bodyColor);
                            }
                        }
                    }
                }
            }
        }
    }
}

