/* Горизонтальное меню */
.kifk-circle-block
{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 350px;
    overflow-x: auto;
    gap: 20px;
    justify-content: space-evenly;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Стили для дочерних элементов */
.kifk-circle-block > div
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    background-color: #ffffffed;
    box-shadow: 0px 0px 35px -20px #00000080;
    border-radius: 15px;
    gap: 10px;
    padding: 10px;
    transition: transform 0.5s ease;
}

.kifk-circle-block > div:hover{
    transform: scale(1.02);
}

/* Стили для кнопок */
.category-link{
    display: flex;
    background-color: #3C547C;
    border: 1px solid #3C547C;
    border-radius: 5px;
    line-height: 1;
    transition: transform 0.5s ease;
    color: white;
    justify-content: center;
    text-align: center;
    padding: 5px 5px;
    min-height: 50px;
    align-items: center;
    text-decoration: none;
}

.category-link:hover{
    color: white;
    transform: scale(1.02);
}

.read-more-link{
    display: block;
    color: white;
    text-decoration: none;
    text-align: center;
    background-color: #3C547C;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #3C547C;
	transition: transform 0.5s ease;
    line-height: 1;    
}

.read-more-link:hover{
    color: white;
    transform: scale(1.02);  
}

/* Стили для информационного блока */
.kifk-circle-block h5
{
    line-height: 1;
    margin: 0px;
}

.kifk-circle-block span
{
    font-size: 12px;
    color: rgb(145, 143, 143);
}

/* Img */
.kifk-circle-block-img
{
    height: 170px;
    margin-bottom: 15px;
}

.kifk-circle-block-img img
{
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/* Vertical menu */
.kifk-news-post-vertical{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

.kifk-news-post-vertical > div{
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 300px auto 1fr auto;
    min-height: 300px;
    background-color: #ffffffed;
    box-shadow: 0px 0px 50px -20px #00000080;
    border-radius: 15px;
    padding: 20px 20px 20px 20px;
    transition: transform 0.5s ease;
    gap: 20px;  
}

.kifk-news-post-vertical > div:hover{
    transform: scale(1.02);
}

.kifk-news-post-veritcal-img{
    justify-self: center;
}

.kifk-news-post-veritcal-img img {
    width: 100%;      
    height: 100%;     
    object-fit: contain; 
}

.kifk-news-post-vertical h3{
    margin: 0px;
    padding: 0px;   
    font-weight: 500;
    color: inherit;
    font-family: inherit;
}

.kifk-news-post-vertical p{
    margin: 0px;
    padding: 0px;
    font-family: inherit;
    color: inherit; 
}

.kifk-news-post-vertical span{
    color: #8d8787;
}

.kifk-news-post-vertical a{
    font-size: inherit;
    text-decoration: none;
    color: white;
    justify-self: end;
    align-self: flex-end;
    text-align: center;
    background-color: #3C547C;
    padding: 10px 20px;
    border-radius: 5px;
	transition: transform 0.5s ease;
    border: 1ps solid #3C547C;
}

.kifk-news-post-vertical a:hover{
    transform: scale(1.1);
}