.trending-block__wrapper {
    margin: 40px 0;
}

.trending-block__user-logged-in {
    position: relative;
}

.trending-block__user-logged-in-link {
    font-size: 32px;
    font-weight: 700;
    line-height: 50px;
    position: absolute;
    top: -15px;
    right: 0;
    display: none;
    width: 100px;
    height: 50px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    color: #FFF !important;
    border-radius: 8px;
    background-color: #000;
}

@media screen and (min-width: 992px) {
    .trending-block__user-logged-in:hover .trending-block__user-logged-in-link {
        display: block;
    }
}

.trending-block__title {
    font-family: var(--bm-font-family);
    font-size: 24px;
    font-weight: 600;
    line-height: 125%;
    margin-bottom: 16px;
    color: #102C3D;
}

.trending-block__posts {
    display: flex;
    gap: 16px;
}

.trending-block__post {
    display: flex;
    flex-flow: column;
    width: 288px;
    padding: 24px;
    border: 1px solid #E4E4EE;
    border-radius: 8px;
    background: #FFF;
}

.trending-block__post:hover {
    text-decoration: none;
}

.trending-block__post-title {
    font-family: var(--bm-font-family);
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    line-height: 125%;
    margin-bottom: 16px;
    color: #102C3D;
}

.trending-block__post:hover .trending-block__post-title {
    text-decoration: underline;
}

.trending-block__post-excerpt {
    font-family: var(--bm-font-family);
    font-size: 16.5px;
    font-weight: 400;
    font-style: normal;
    line-height: 150%;
    margin-bottom: 16px;
    letter-spacing: 0.165px;
    color: #404463;
}

.trending-block__read-more,
.trending-block__read-more:hover {
    font-family: var(--bm-font-family);
    font-size: 16.5px;
    line-height: 150%;
    letter-spacing: 0.165px;
    color: #102C3D;
    text-decoration-line: underline;
    text-decoration-thickness: 0.5px;
}

.trending-block__post-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.trending-block__author-name-job {
    max-width: 168px;
}

.trending-block__author-name {
    font-family: var(--bm-font-family);
    font-size: 14.5px;
    line-height: 150%;
    margin-bottom: 4px;
    letter-spacing: 0.145px;
    color: #404463;
}

.trending-block__checked-icon-job {
    position: relative;
    left: -8px;
    white-space: nowrap; 
    height: 17px;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.trending-block__checked-icon {
    display: inline;
    float: left;
}

.trending-block__checked-icon svg {
    position: relative;
    left: 8px;
    vertical-align: top;
}


.trending-block__author-job {
    font-family: var(--bm-font-family);
    font-size: 12px;
    display: inline;
    background: #FFE3EA;
    color: #B81F44;
    line-height: 17px;
    padding: 0 6px 0 12px;
    text-transform: uppercase;
    border-radius: 0px 4px 0px 0px;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.trending-block__author-avatar {
    overflow: hidden;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.trending-block__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    .trending-block__wrapper {
        margin: 24px 0;
    }

    .trending-block__title {
        font-size: 20px;
    }

    .trending-block__posts {
        position: relative;
        left: -16px;
        overflow: scroll;
        width: calc(100% + 32px);
        padding: 0 16px;
        gap: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .trending-block__posts::-webkit-scrollbar {
        display: none;
    }

    .trending-block__post {
        width: 290px;
        min-width: 290px;
        padding: 20px;
    }

    .trending-block__post-title {
        font-size: 20px;
    }

    .trending-block__post-excerpt {
        font-size: 14.5px;
        letter-spacing: 0.145px;
    }

    .trending-block__read-more,
    .trending-block__read-more:hover {
        font-size: 14.5px;
        letter-spacing: 0.145px;
    }

    .trending-block__author-name-job {
        max-width: 178px;
    }
}

/** SIDEBAR **/

.sidebar .trending-block__wrapper {
    margin: 32px 0;
}

.sidebar .trending-block__title {
    font-size: 20px;
}

.sidebar .trending-block__posts {
    display: block;
}

.sidebar .trending-block__post {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.sidebar .trending-block__post:not(:last-child) {
    margin-bottom: 16px;
}

.sidebar .trending-block__post-author {
    display: none;
}

.sidebar .trending-block__post:not(:first-child) .trending-block__post-excerpt {
    display: none;
}

.sidebar .trending-block__post-excerpt {
    margin-bottom: 0;
}

.sidebar .trending-block__post-title {
    font-size: 18px;
}

.sidebar .trending-block__post:not(:first-child) .trending-block__post-title {
    margin-bottom: 0;
}

@media screen and (max-width: 991px) {
    .sidebar .trending-block__wrapper {
        margin: 24px 0;
    }

    .sidebar .trending-block__post-excerpt,
    .sidebar .trending-block__read-more {
        font-size: 16.5px;
        margin-bottom: 0;
        letter-spacing: 0.165px;
    }
}