

.searchcompany{
    position: relative;
    transform: none;
    left: 0;
    max-width: none;
}

body{
    justify-content: space-between
}

.customSelect-container{
    position: relative;
    transition: all .5s ease;
}

.customSelect{
    width: 100%;
    color: rgba(50, 53, 85, 1);
    font-size: 16px;
    padding: 10px 30px 10px 10px;
    border-radius: 5px;
    background-color: rgba(255,255,255,1);
    border: 1px solid rgba(210, 210, 210, 1);
    position: relative;
    cursor: pointer;
     transition: all .5s ease;
}
.line, .line2{
    height: 1px;
    border-radius: 5px;
    width: 100%;
    background-color: rgba(221, 221, 221, 1);
}
.line2{background-color: rgba(255,255,255,1);}

.customSelect svg{
    height: 24px;
    width: 24px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: all .5s ease;
}

.customSelect-container.open .customSelect svg{
    transform: translateY(-50%) rotate(180deg);
}

.customSelectMenu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(210, 210, 210, 1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 2;
}

.customOption{
    display: flex;
    padding: 10px;
    cursor: pointer;
    color: rgba(50, 53, 85, 1);
    background-color: rgba(255,255,255,1);
    transition: all .5s ease;
}
.customOption:hover{
    background-color: rgba(200,200,200,1);
}

.tags, .tagsItem{
    padding:  3px 5px;
    font-size: 14px;
    border: 1px solid rgba(22, 65, 148, 0.8) ;
    position: relative;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}

.tags::after, .tagsItem::after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height:100%;
    width: 100%;
    background: linear-gradient(84.12deg, rgba(21, 61, 138, 0.8) 1.59%, rgba(22, 65, 148, 0.8) 50.91%, rgba(19, 165, 56, 0.8) 116.75%);
    opacity: 0;
    transition: all .8s ease;
    border-radius: 5px;
    z-index: 0;
}
 .tags.active::after{
     opacity: 1;
}

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

.newsBlock{
    padding: 6%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 20px;
    gap: 5px;
    position: relative;
    overflow: hidden;
}
.newsBlockImg{
    height: 100%;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    background-size: cover;
    background-position: center;
    transition: all .5s ease;
    transition: all .6s ease;
}

#newsBlockShablon{display: none!important;}

.newsBlock::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50.14%, rgba(11, 31, 69, 0.5) 67.16%, rgba(0, 0, 0, 0.7) 97.6%);

    z-index: 1;
}
.newsBlock div:not(.newsBlockImg), .newsBlock span{z-index: 2;}

.newsBlockTitle{
    font-size: 18px;
    line-height: 18px;
}
.newsBlockDate{
    font-size: 14px;
}

.hideText{
    display: inline-block;  
    max-width: 50%;      
    white-space: nowrap;   
    overflow: hidden;      
    text-overflow: ellipsis; 
}


.newsBlock:hover .newsBlockImg{
    height: 140%;
    width: 140%;
}


.tags  span, .tagsItem span{
    transition: all .5s ease;
    color: white;
    z-index: 1;
    position: relative;
}
.news-container {
   background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 15px 0px rgba(50, 53, 85, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.imgNews{
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 3 / 1;
    border-radius: 20px;
    cursor: pointer;
}

.tagsContainer2{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10;
    justify-content: start;
}

.modal-news .modal-content{
    background: none;
    border: none;
}

.back{
    width: 30px ;
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: 10px;
    z-index: 5;
}

.back svg{
    width:  100%;
    pointer-events: none;
    height: 100%;
}

.back path{
    fill: white;
    transition: all .5s ease;
}

.back:hover path{
    fill: url(#gradHover);
}

.modal-news-img{
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
}


@media (min-width:992px){
.tags:hover span, .tags.active span, .tagsItem:hover span {
     -webkit-text-fill-color:white;
}
.tags:hover::after, .tagsItem:hover::after{
    opacity: 1;
}

#filterMenu{
    display: flex;
}
}

@media (max-width:1400px){
    .newsContainer{grid-template-columns: repeat(2, 1fr);}
}

@media (max-width:992px){
    .newsContainer{grid-template-columns: repeat(1, 1fr);}
    .searchcompany{margin-top: 0;}
    #searchNews{padding-left: 50px;}
    .filterIcon{
        position: absolute;
        top: 50%;
        left: 15px;
        height: 50%;
        z-index: 2;
        transform: translateY(-50%);
    }
    #filterMenu{display: none;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 1);
        z-index: 9999;
        padding: 10px;
        overflow-y: auto;
    }
    .exitMenu{
        padding: 20px;
        display: flex;
        gap: 5px;
        font-size: 16px;
        color: rgba(50, 53, 85, 1);
        align-items: center;
    }
    .exitMenu img{
        height: 18px;
    }
    .tagsContainer{
       border: 1px solid rgba(210, 210, 210, 0.4);
       padding: 10px;
       border-radius: 10px; 
       flex-direction: column;
    }

    .tags{
        align-items: center;
        font-size: 16px;
        background: none;
        padding-left: 28px;
        line-height: 17px;
        border: none;
    }
    .tags img{
        opacity: 0; 
        transition: all .7s ease;
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translate(-50%, -50%);
        width: 16px;
    }
    .tags.active img{
        opacity: 1;
    }
    .tags::after{
        left: 2px;
        top: 2px;
        height: 16px;
        width: 16px;
        z-index: 1;
        opacity: 1;
        background: rgba(255, 255, 255, 1);
    }
    .tags.active::after{
        opacity: 0;
    }
    .tags::before{
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        z-index: 0;
        background:linear-gradient(84.12deg, rgba(21, 61, 138, 0.8) 1.59%, rgba(22, 65, 148, 0.8) 50.91%, rgba(19, 165, 56, 0.8) 116.75%);
        height: 20px;
        border-radius: 5px;
        width: 20px;
    }
    .butMenu{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        color: rgba(241, 241, 241, 1);
        font-size: 16px;
        width: 100%;
        border-radius: 5px;
    }
}