

/* Start:/bitrix/templates/university_default/components/bitrix/news.list/my_news/style.css?17455793228001*/
.news-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.news-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.news-search-box input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.news-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
}

/* === Основной контейнер новостей === */
.my-news-container {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Уменьшите gap для меньшего расстояния между элементами */
    max-width: 1200px;
}

/* === Первая большая новость === */
.my-news-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 250px; /* Уменьшите минимальную высоту */
    margin: 0;
    padding: 0;
    border-bottom: none;
}

/* === Картинка слева === */
.my-news-img-main {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.my-news-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Контент справа === */
.my-news-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px; /* Уменьшите padding */
    margin: 0;
}

/* === Заголовки новостей === */
.my-news-title {
    font-size: 1.2em;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.3;
    margin-top: 4px; /* Уменьшите верхний отступ заголовков */
}

.my-news-title-small {
    font-size: 1.1em;
    font-weight: bold;
    color: #1A1A1A;
    margin-bottom: 4px; /* Уменьшите нижний отступ заголовков */
    margin-top: 4px; /* Уменьшите верхний отступ заголовков */
}

/* === Даты новостей === */
.my-news-date,
.my-news-date-small {
    font-size: 0.85em;
    color: #6C757D;
    margin-top: 10px; /* Уменьшите верхний отступ дат */
	margin-bottom: 10px; /* Уменьшите нижний отступ дат */

}
.my-news-description
{    font-size: 1em !important; /* Установите одинаковый размер шрифта */
    color: #495057 !important;
    line-height: 1.4 !important; /* Уменьшите межстрочный интервал */
    margin: 4px 0 0 0 !important; /* Уменьшите верхний отступ */
    padding: 10 !important;
    font-weight: normal !important;}

/* === Описание новостей (фиксируем размер для всех элементов) === */
.my-news-description-small,
.my-news-content-small,
.my-news-description-small *, /* Применяем стили ко всем дочерним элементам */
.my-news-description-small p,
.my-news-description-small div,
.my-news-description-small span {
    font-size: 0.95em !important; /* Установите одинаковый размер шрифта */
    color: #495057 !important;
    line-height: 1.4 !important; /* Уменьшите межстрочный интервал */
    margin: 4px 0 0 0 !important; /* Уменьшите верхний отступ */
    padding: 10 !important;
    font-weight: normal !important;
}

/* === Сетка для обычных новостей === */
.my-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Уменьшите gap для меньшего расстояния между элементами */
    margin-top: 16px; /* Уменьшите верхний отступ сетки */
}

/* === Карточки обычных новостей === */
.my-news-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.my-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Картинки новостей */
.my-news-img-wrapper {
    width: 100%;
    height: 200px; /* Уменьшите высоту изображений */
    overflow: hidden;
    margin-bottom: 8px; /* Уменьшите нижний отступ изображений */
}

.my-news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент новостей */
.my-news-content-small {
    padding: 16px; /* Уменьшите padding */
}

/* === Основной стиль ссылок === */
a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #0073e6;
    text-decoration: none;
}

/* === Ссылки в заголовках новостей === */
.my-news-title-link,
.my-news-title-small a {
    font-weight: bold;
    font-size: 1.1em;
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.my-news-title-link:hover,
.my-news-title-small a:hover {
    color: #0073e6;
    text-decoration: none;
}

/* === Ссылки внутри описаний === */
.my-news-description a,
.my-news-description-small a {
    color: #0056b3;
    font-weight: normal;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.my-news-description a:hover,
.my-news-description-small a:hover {
    color: #0073e6;
    text-decoration: none;
}
/* Контейнер для категорий */
.my-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Отступ между категориями */
    margin-bottom: 8px;
}

/* Стили для бейджа категории */
.my-news-category-badge {
    display: inline-block;
    background: #F0F4F8; /* Светлый фон */
    color: #4A5C6A; /* Темный текст */
    font-size: 0.75em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px; /* Закругленные края */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* === Контейнер пагинации === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

/* === Стрелки === */
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pagination-arrow:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* Если нужно чуть сместить иконку для «предыдущей» */
.pagination-arrow.prev {
  /* ничего не меняем, FontAwesome chevron-left смотрится сразу */
}
.pagination-arrow.next {
  /* FontAwesome chevron-right */
}

/* === Адаптив === */
@media (max-width: 600px) {
  .pagination {
    gap: 8px;
  }
  .pagination-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}


/* === Адаптивность === */
@media (max-width: 900px) {
    .my-news-main {
        flex-direction: column;
    }

    .my-news-img-main {
        width: 100%;
        height: 300px; /* Уменьшите высоту изображения */
    }

    .my-news-content {
        width: 100%;
        padding: 12px; /* Уменьшите padding */
    }

    .my-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .my-news-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* End */
/* /bitrix/templates/university_default/components/bitrix/news.list/my_news/style.css?17455793228001 */
