@use "../utilities" as *;

/**----------------------------------------
START: Theme Blog Details CSS
----------------------------------------*/

.blog-details-content{
    .blog-details-thumb{
        img{
            width: 100%;
        }
    }
    .details-meta{
        display: flex;
        align-items: center;
        column-gap: 20px;
        margin: 30px 0 25px 0;
        .category {
            background-color: var(--mt-color-theme-primary);
            color: var(--mt-color-common-white);
            font-family: var(--mt-ff-body);
            font-size: 16px;
            font-weight: 500;
            padding: 5px 20px;
            border-radius: 30px;
            text-transform: uppercase;
        }
        p{
            font-family: var(--mt-ff-body);
            color: var(--mt-color-text-body);
            font-size: 16px;
            font-weight: 400;
            margin-bottom: 0;
        }
    }
    .details-title{
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        max-width: 640px;
        width: 100%;
        line-height: 1.5;
    }
    .feature-item-wrap{
        max-width: 600px;
        width: 100%;
    }
    .blog-details-img{
        max-width: 630px;
        width: 100%;
        margin-bottom: 40px;
        img{
            width: 100%;
        }
    }
    .comments-area{
        .comment-header{
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 30px;
        }
        .comment-item{
            display: grid;
            grid-template-columns: 90px 1fr;
            align-items: center;
            grid-gap: 20px;
            margin-bottom: 50px;
            padding-bottom: 50px;
            border-bottom: 1px solid var(--mt-color-border-1);
            @include breakpoint(sm){
                grid-template-columns: 1fr;
            }
            .comment-info{
                .author{
                    font-size: 22px;
                    font-weight: 700;
                    margin-bottom: 10px;
                    line-height: 1;
                }
                p{
                    font-size: 16px;
                    color: var(--mt-color-text-body);
                    max-width: 530px;
                    width: 100%;
                    margin-bottom: 0;
                }
            }
            .comments-meta{
                display: flex;
                align-items: center;
                margin-top: 10px;
                span{
                    font-size: 17px;
                    font-family: var(--mt-ff-body);
                    font-weight: 400;
                    line-height: 1;
                }
                button{
                    font-family: var(--mt-ff-body);
                    color: var(--mt-color-theme-primary);
                    font-size: 17px;
                    font-weight: 600;
                    line-height: 1;
                    margin-left: 50px;
                }
            }
            &:nth-child(3){
                margin-left: 90px;
                @include breakpoint(sm){
                    margin-left: 0;
                }
            }
        }
    }
    .blog-form{
        .form-header{
            font-size: 35px;
            font-weight: 700;
            margin-bottom: 40px;
        }
        .form-group{
            .form-control{
                color: var(--mt-color-text-body);
                box-shadow: none;
                border: 1px solid var(--mt-color-border-1);
                padding: 15px;
                padding-left: 20px;
                margin-bottom: 30px;
                @include tp-placeholder{
                    color: var(--mt-color-text-body);
                }
                option{
                    padding: 10px;
                }
            }
        }
        .submit-btn{
            margin-top: 20px;
        }
    }
}

.sidebar-widget{
    padding: 40px 30px;
    border: 1px solid var(--mt-color-border-1);
    border-radius: 20px;
    &:not(:last-of-type){
        margin-bottom: 50px;
    }
    &.search{
        border: none;
        padding: 0;
        .search-form{
            position: relative;
            .form-control{
                border: 1px solid var(--mt-color-border-1);
                border-radius: 30px;
                box-shadow: none;
                padding-left: 20px;
            }
            .search-btn{
                position: absolute;
                right: 5px;
                top: 50%;
                transform: translateY(-50%);
                background-color: var(--mt-color-theme-primary);
                color: var(--mt-color-common-white);
                display: block;
                height: 30px;
                width: 30px;
                @include flex-center;
                border-radius: 50%;
            }
        }
    }
    .widget-title{
        font-size: 22px;
        font-weight: 700;
        position: relative;
        display: inline-block;
        margin-bottom: 30px;
        &:before{
            background-color: var(--mt-color-theme-primary);
            content: "";
            width: 50%;
            height: 3px;
            position: absolute;
            bottom: -5px;
            left: 0;
        }
    }
    .category-list{
        li{
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-family: var(--mt-ff-body);
            font-size: 16px;
            font-weight: 400;
            &:not(:last-of-type){
                margin-bottom: 10px;
            }
            &:hover{
                color: var(--mt-color-theme-primary);
            }
            a{
                i{
                    padding-right: 10px;
                }
            }
        }
    }
    .tags{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 20px;
        list-style: none;
        li{
            &:not(:last-of-type){
                margin-right: 20px;
            }
            a{
                font-family: var(--mt-ff-body);
                font-size: 16px;
                font-weight: 400;
                padding: 5px 15px;
                border: 1px solid var(--mt-color-border-1);
                &:hover{
                    background-color: var(--mt-color-theme-primary);
                    color: var(--mt-color-common-white);
                    border: 1px solid var(--mt-color-theme-primary);
                }
            }
        }
    }
    .sidebar-post{
        display: grid;
        align-items: center;
        grid-template-columns: 95px 1fr;
        grid-gap: 20px;
        &:not(:last-of-type){
            margin-bottom: 20px;
        }
        .post-content{
            .post-meta{
                li{
                    display: flex;
                    align-items: center;
                    column-gap: 10px;
                }
            }
            .title{
                font-size: 17px;
                margin-bottom: 0;
                font-weight: 600;
                a{
                    &:hover{
                        color: var(--mt-color-theme-primary);
                    }
                }
            }
        }
    }
}

.sticky-widget{
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
}

/* !END: Theme Blog Details CSS */
