/* ИЗМЕНЕНО 03.04.2024. Стили для блока новостей */

.imgnews {
   overflow: hidden;
   position: relative;
   width: 100%;
}

.imgnews img{
    width: 100%;
    transition: all 0.4s ease-out;
}
.imgnews:hover img{
    transform: scale(1.04);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0); /* Настройка цвета и прозрачности для блока с заголовком */
    transition: background 0.5s ease;
}
.imgnews:hover .overlay {
    display: block;
    background: rgba(0, 0, 0, 0.0); /* Настройка цвета и прозрачности для блока с заголовком при наведении */
}

.aboutnews {
    position: absolute;
    width: 100%;
    left:0;
    top: 45%; /* Отступ сверху */
    text-align: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.aboutnews .aboutlink {
    padding: 13px 20px; /* Отступ */
    text-align: center;
    background: #ffb606; /* Цвет кнопки */
    color: white; /* Цвет текста */
    z-index: 1; 
    font-size: 90%;
    text-decoration: none;
}
.aboutlink:hover {
    background:#ffce59;
    transition: 0.5s;
}
.imgnews:hover .aboutnews {
    opacity: 1;
}
.newscontent {
    line-height: 25px;
    border: 1px solid #e5e5e5;
    border-top: 0;
    padding: 0 20px;
}
a:hover {
    transition: 0.4s;
}
.newsmeta {
    overflow: hidden;
    position: relative;
    padding: 14px 0 10px;
    display: block;
    margin: 0;
}
.newsmeta:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 1px;
    height: 1px;
    width: 100%;
    background: #e5e5e5;
}
.newsdateprice {
    float: right;
    margin-right: 0;
}
.fa-calendar:before {
    content: "\f073";
    color: #ffb606;
}

.course-author {
    margin-top: 0;
    position: relative;
    margin-bottom: 0;
}

.course-author img {
    margin-top: -28px;
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

.card-title a {
    text-decoration:none;    
    color: #484848;
}

.card-title a:hover {
    text-decoration:none;    
    color: #ffb606;
}

h6.card-title {
    white-space: nowrap; /* Запрещаем перенос строк */
    overflow: hidden; /* Обрезаем все, что не помещается в область */
    text-overflow: ellipsis; /* Добавляем многоточие */
}

.btn-outline-warning1{
   color:#ffb606;
   border-color:#ffb606; 
   background-color:#ffb606;
}
.btn-outline-warning1:hover{
   color:#212529;
   background-color:#ffce59;
   border-color:#ffce59;
   cursor: pointer;
}
.btn-outline-warning1 a {
    text-decoration: none;
}

.bg_block_img4 {
    background: url(/sm.aspx?guid=48863) #f9f9f9;
    background-attachment: fixed;
}
