.articles {
    display: grid;
    grid-template-columns: 3fr 1fr;
    column-gap: 20px;
    position: relative;
}

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

.articles__title30 {
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 20px;
}

.article__sub-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
}

.articles__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.articles__item_first {
    grid-row: 1 / span 2;
    grid-column: 1 / span 2;
}

.articles__item_first img {
    margin-bottom: 26px;
}

.articles__item_first :is(.articles__title, .articles__content) {
    margin-bottom: 20px;
}

.articles__item_first .articles__content {
    max-height: 55px;
}

:is(.articles__title, .articles__content, .articles__footer) {
    padding-inline: 20px;
}


.articles__item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.articles__img {
    border-radius: 20px 20px 0 0;
    margin-bottom: 20px;
}

.articles__title {
    margin-bottom: 10px;
}

.articles__content {
    overflow: hidden;
    margin-bottom: 10px;
    max-height: 41px;
    text-overflow: ellipsis;
}

.articles__footer {
    display: flex;
    justify-content: space-between;

}

.articles__time {
    position: relative;
    color: rgba(10, 45, 54, .3);
}

.articles__time::after {
    content: "";
    background: url('/wp-content/themes/salusmed/assets/svg/clock.svg') no-repeat;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 1px;
    left: -20px;

}

.articles__badge {
    position: absolute;
    top: 30px;
    left: 0;
    padding-inline: 10px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary);
    color: white;
    font-size: 12px;
}


.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.s-popular__article {
    display: grid;
    grid-template-columns: 96px 2.2fr;
    column-gap: 20px;
    margin-bottom: 10px;
}
.s-popular__title {
    max-height: 88px;
    overflow: hidden;
}
.s-popular__img {
    border-radius: 10px 0 0 10px;
    height: 106px;
    object-fit: cover;
    object-position: 25% 25%;
}

.s-popular__article-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.s-popular__footer {
    display: flex;
    justify-content: space-between;
}

.s-popular__date {
    opacity: 50%;
}

.sidebar__block {}

.sidebar__btn:not(.sidebar__btn:hover) {
    background-color: rgba(245, 245, 245, 1);
    color: var(--color-dark);
}

.sidebar__btn {
    height: 34px;
    font-size: 12px;
    width: max-content;
    padding: 9px 17px;
    margin-bottom: 10px;
}

/* single article */

.single-article {
    display: flex;
    flex-direction: column;
}

.single-article img {
    border-radius: 20px;
    margin-bottom: 20px;
}

.single-article__author-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}
.single-article__author, .single-article__date {
    color: rgba(10, 45, 54, .3);
}
.single-article__date {
    margin-left: auto;
    text-align: end;
}
.single-article__content {
    margin-bottom: 20px;
}

.single-article__content p {
    line-height: 22px;
}

.single-article__content img {
    display: inline;
    margin: 20px 20px 20px 0px;
    width: 400px;
    height: 259px;
}

.single-article__content ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.single-article__content li {
    padding-left: 20px;
    margin-bottom: 10px;
}

.single-article__content li::before {
    content: "\2022";
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-left: -15px;
    margin-right: 10px;
}

.single-article__green {
    padding: 22px;
    background-color: var(--color-secondary);
    border-radius: 20px;
    margin-bottom: 20px;
}
.single-article__green :is(p, li) {
    line-height: 22px;
}
.single-article__green ol {
    list-style-type: decimal;
}

.single-article__green li {
    margin-left: 20px;
}

.single-article__green :is(li, p, ol) {
    margin-bottom: 10px;
}

.singe-article__author-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 55px;
}

img.single-article__author-img {
    margin: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.singe-article__controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.single-article__feedback {
    background-color: var(--color-gray);
    padding-inline: 17px;
    height: 54px;
    border-radius: 10px;
    margin-bottom: 60px;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 24px;
}

.single-article__social {
    display: flex;
    gap: 20px;
}

.single-article .social__link img {
    margin-bottom: 0;
}
.single-article__share {
    position: relative;
}
.single-article__share::before {
    position: absolute;
    content: "";
    background: url("/wp-content/themes/salusmed/assets/svg/share.svg");
    width: 15px;
    height: 15px;
    left: -25px;
}

.single-article__thumbs {
    display: flex;
    margin-right: auto;
    gap: 19px;
}

.single-article__thumbs img {
    width: 20px;
    height: 20px;
    margin-bottom: 0;
}

.single-article__interesting-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.single-article__interesting h2 {
    text-align: center;
}



@media screen and (max-width: 1340px) {
    .articles {
        grid-template-columns: 436px 208px;
    }
    .articles__list {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 464px auto;
        gap: 10px;
    }

    .articles__title30 {
        font-size: 20px;
        line-height: 24px;
    }

    :is(.articles__title, .articles__content, .articles__footer) {
        padding-inline: 13px;
    }

    .articles__badge {
        height: 26px;
        top: 20px
    }

    .articles__item_first img {
        height: 277px;
    }

    .articles__item_first .articles__title {
        margin-bottom: 10px;
    }
    .singe-article__author-bottom .articles__time {
        margin-left: 20px;
        width: 140px;
    }
    .articles__content {
        max-height: 55px;
    }

    .article__title {
        font-size: 22px;
        line-height: 22px;
        margin-bottom: 10px;
    }

    .s-popular__article {
        display: block;
        border-radius: 10px;
        box-shadow: 0px 4px 10px 0px rgba(11, 46, 54, 0.06);
        margin-bottom: 10px;
    }

    .s-popular__img {
        display: none;
    }

    .sidebar {
        gap: 30px;
    }
    .single-article__author-block {
    gap: 10px;
    flex-wrap: wrap;
   }
    .single-article__author {
        /* display: flex;
        flex-direction: column; */
        width: 100%
    }
    .single-article__content ul {
        grid-template-columns: 1fr 1fr;
    }
    .singe-article__author-bottom {
        margin-bottom: 30px;
    }
    .single-article__share {
        font-size: 14px;
        max-width: 120px;
    }
    .articles .social__item img {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 720px) {
    .articles {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .articles__list {
        grid-template-rows: 370px auto;
    }

    .articles__item_first img {
        height: 212px;
    }

    .articles__img {
        height: 128px;
    }

    .articles__title30,
    .article__sub-title {
        font-size: 16px;
        line-height: 17px;
    }

    .articles__item_first .articles__content {
        max-height: 48px;
    }

    .articles__content,
    .articles__item_first .articles__content {
        font-size: 14px;
        line-height: 17px;
    }

    .sidebar .articles__title30 {
        text-align: center;
    }

}