:root {
    --a-color: lightgray;
    --regular-font: 16px;
    --date-font: 0.8em;
    --name-font: 2em;
}

/* Menu */

.column>.row {
    display: flex;
    align-content: space-around;
    margin-left: -12px;
    margin-right: -12px;
}

.row>a {
    color: var(--a-color);
    font-size: 16px;
}

.news>a {
    color: black;
    font-weight: bold;
}

/* Popular now */

.desc-tags {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    padding: 3px;
    cursor: pointer;
    transition: color background-color .3s;
}


.desc-tags:hover {
    color: #fff;
    background-color: rgb(53, 125, 196);
    border-radius: 3px;
}

.active_tag_choose {
    color: white;
    background-color: #b6b6b6;
}

.choose_tag {
    color: #444444;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    line-height: 1.5;
    cursor: pointer;
}

.choose_tag:hover {
    background-color: #b6b6b6;
}

/* Most readed */

.list_tags {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.all_tags {
    margin: 0 0 50px 0;
}

.all_tags>.column {
    padding-left: 0;
}

.popular {
    padding: 25px 0;
    border-top: 1px solid #e8e8e8;
}

.popular:nth-child(2) {
    border-top: 0;
}


.title_popular {
    color: #000;
}

.title_popular:hover {
    color: rgb(53, 125, 196);
}

.desc-tags {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    cursor: pointer;
    padding: 3px;
    transition: color background-color .3s;
}

.desc-tags:hover {
    color: #fff;
    background-color: rgb(53, 125, 196);
    border-radius: 3px;

}

.filter-item {
    color: #000;
}

.active-filter-item {
    color: rgb(53, 125, 196);
}


/* news div */

.block-div.row {
    justify-content: flex-start;
}

/* filter bar with date */

.filter-bar {
    display: flex;
    flex-flow: row nowrap;
    padding: 10px 15px;
    align-items: center;
    margin: 0 auto 20px auto;
    width: 100%;
    background-color: transparent;
    border: 1px lightgray solid;
}

.column>.filter-bar>a {
    color: black;
}

.filter-bar ul {
    display: flex;
    flex-flow: row nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-bar li {
    margin-right: 20px;
}

.filter-bar a {
    color: #000;
}

.filter-bar .active_date {
    color: rgb(53, 125, 196);
}


/* news item */

.block-item.column {
    padding: 12px;
}

.info {
    border: 1px solid #e8e8e8;
    height: 100%;
    transition: box-shadow 0.3s;
}

.info-item {
    padding: 0 25px;
}

.info:hover {
    -webkit-box-shadow: 0px 5px 22px 2px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 5px 22px 2px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 5px 22px 2px rgba(34, 60, 80, 0.2);
}

picture,
picture>a {
    display: block;
}

.desc-img {
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    cursor: pointer;
}

.desc-img:hover {
    opacity: 0.6;
}

.desc-text {
    font-size: var(--regular-font);
    line-height: 22px;
    margin-top: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.date {
    font-size: var(--date-font);
    line-height: 16px;
    margin-top: 12px;
}

.name {
    font-size: var(--name-font);
    font-weight: 600;
    line-height: 1.1;
    margin-top: 15px;
    color: #000;
}

.name:hover {
    transition: 0.5s;
    color: blue;
}

/* not first news item */

.block-div>.block-item:not(:first-child)>.info>picture>a>img {
    height: 200px;
}

/* first news item */

.block-div>.column-33:first-child {
    width: 66.66666%;
}

.block-div>.column-33:not(:first-child) .name {
    font-size: 18px;
    line-height: 1.2;
}

.block-div>.block-item:first-child>.info {
    height: 100%;
    position: relative;
}

.block-div>.block-item:first-child>.info>.info-item {
    position: absolute;
    bottom: 10px;
}

.block-div>.block-item:first-child>.info>picture>a {
    position: relative;
    display: inline-block;
}

.block-div>.block-item:first-child>.info>picture,
.block-div>.block-item:first-child>.info>picture>a,
.block-div>.block-item:first-child>.info>picture>a>img {
    height: 100%;
    width: 100%;
}

.block-div>.block-item:first-child>.info>.info-item>a>.name,
.block-div>.block-item:first-child>.info>.info-item>.date,
.block-div>.block-item:first-child>.info>.info-item>.tags {
    color: white;
    font-weight: bold;
    padding: 0 10px;
    min-height: 30px;
    max-height: fit-content;
    width: fit-content;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.5);
    /*word-break: break-all;*/
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.block-div>.block-item:first-child>.info>.info-item>.tags>.desc-tags {
    text-align: center;
    color: white;
    font-weight: bold;
}

.block-div>.block-item:first-child>.info:hover>.info-item>.date,
.block-div>.block-item:first-child>.info:hover>.info-item>.tags,
.block-div>.block-item:first-child>.info:hover>.info-item>a>.name {
    transition: 0.2s;
    background-color: rgba(0, 0, 0, 1);
}

.block-div>.block-item:first-child>.info>.info-item>.desc-text {
    display: none;
}


/* set amount of items */
.dropdown a {
    display: none;
}

.text-box:hover a {
    display: flex;
    flex-flow: column nowrap;
}

nobr {
    cursor: pointer;
}

.active {
    color: rgb(53, 125, 196);
    display: block;
}

.news-root {
    padding-bottom: 30px;
}