@use "variables" as *;

// Styles for Docy Elementor Widgets
// Transferred from docy-core/docly theme

/*============== doc_features_area css  ===========*/
.doc_features_area {
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
    background: #fbfbfc;

    .doc_features_shap {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -1;
        background-size: cover;
    }
}

.doc_features_inner {
    overflow: hidden;
    box-shadow: 0 30px 60px 0 rgba(2, 2, 48, 0.08);
    border-radius: 10px;
    background: #fff;
    top: -60px;
    position: relative;

    .see_more_item,
    .forumax-collapse-wrap {
        display: none;
        flex-wrap: wrap;
        width: 100%;
    }


    .media-body {
        a {
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    a.see_btn {
        text-decoration: none;

        &:hover {
            text-decoration: underline;
            color: $brand_color;
        }

        &:focus {
            outline: none;
        }
    }
}

.see_btn {
    font-size: 14px;
    line-height: 20px;
    color: $brand_color;
    display: inline-block;
    margin: 16px 50px 12px;
    width: 100%;

    &:hover {
        i {
            background-color: $brand_color;
            color: #fff;
        }
    }

    i {
        font-size: 20px;
        vertical-align: middle;
        margin-right: 5px;
        margin-top: -5px;
        display: inline-block;
        border-radius: 50%;
        border: 1px solid $brand_color;
        transition: background-color .3s;
    }

    .less {
        display: none;
    }

    &.active {
        .less {
            display: inline;
        }

        .more {
            display: none;
        }

        i {
            transform: rotate(180deg);
        }
    }
}

.doc_features_item {
    width: calc(100% / 3);
    float: left;
    padding: 35px 30px;
    border-bottom: 1px solid $black_100;
    border-left: 1px solid $black_100;

    img {
        margin-right: 15px;
    }

    h4 {
        font-size: 16px;
        line-height: 26px;
        font-weight: 700;
        margin-bottom: 2px;

        &:hover {
            color: $brand_color;
        }
    }

    p {
        margin-bottom: 0;
        font-size: 14px;
    }

    &:nth-child(1),
    &:nth-child(4),
    &:nth-child(7),
    &:nth-child(10) {
        border-left: 0;
    }
}

.doc_features_item img {
    max-width: 50px !important;
    max-height: 50px !important;
}

/*============== doc_features_area css  ===========*/

/*============= doc_community_area css  ================*/
.doc_community_area {
    padding: 200px 0 75px;
    position: relative;

    .shap_one,
    .shap_two {
        position: absolute;
        z-index: -1;
    }

    .shap_one {
        width: 1300px;
        right: 0;
        top: 100px;
    }

    .shap_two {
        top: 0;
    }

    .doc_title {
        margin-bottom: 64px;
    }
}

.doc_community_info {
    .question_text {
        color: #a7acb7;
        font-size: 14px;
        font-weight: 400;
        line-height: 22px;
        margin-top: 40px;

        &:hover {
            color: var(--bbpc_brand_color);
        }
    }

    .doc_entry_content {
        a {
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

.doc_community_item {
    display: flex;
    align-items: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 30px 0 rgba(2, 2, 48, 0.06);
    margin-bottom: 20px;
    padding: 38px 70px;
    transition: all 0.2s linear;
    cursor: pointer;

    .doc_community_icon {
        width: 100px;
        height: 100px;
        line-height: 100px;
        border-radius: 50%;
        text-align: center;
        font-size: 36px;
        background: rgba(76, 76, 241, 0.06);
        color: var(--bbpc_brand_color);
        margin-right: 50px;
    }

    h4 {
        font-size: 20px;
        margin-bottom: 5px;
        transition: color 0.2s linear;

        &:hover {
            color: var(--bbpc_brand_color);
        }
    }

    p {
        font-size: 14px;
        color: #6b707f;
    }

    .doc_entry_info {
        display: flex;
        flex-wrap: wrap;
        padding-top: 5px;

        .author_avatar {
            display: flex;
            margin-bottom: 0;
            margin-right: 15px;

            li {
                line-height: 34px;
                border-radius: 50%;
                font-size: 14px;
                font-weight: 500;
                color: var(--black_800);
                text-align: center;
                z-index: 2;
                position: relative;
                border: 2px solid var(--bs-white);
                list-style: none !important;

                img {
                    max-width: 30px;
                    border-radius: 50%;
                }

                &+li {
                    margin-left: -10px;
                }

                &.avatar_plus {
                    border-color: #d7d8db;
                    width: 32px;
                    height: 32px;
                    align-self: end;
                    line-height: 28px;
                    font-size: 12px;
                    padding-left: 2px;
                    z-index: 0;
                    margin-left: -8px;
                }
            }
        }

        .text {
            font-size: 14px;
            line-height: 1.3;
            color: #90939b;
        }
    }

    &:hover {
        box-shadow: 0 10px 30px 0 rgba(2, 2, 48, 0.02);
    }

    &:nth-child(2) {
        .doc_community_icon {
            background: #fef9ee;
            color: #f7b126;
        }
    }

    &:nth-child(3) {
        .doc_community_icon {
            background: #f1fbf8;
            color: #0fbc8b;
        }
    }
}

/*============= doc_community_area css  ================*/