/* Стили для слайдера статей на главной странице */

.home-news__excerpt {
  font-weight: 400;
  font-size: 1rem;
  line-height: 140%;
  color: inherit;
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* максимум 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
  margin-bottom: 1rem;
}

.home-news__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1rem;
}

.home-news__tag {
  padding: 8px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 100%;
  white-space: nowrap;
  min-width: 80px;
  font-weight: 400;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.home-news__tag:hover {
  background: rgba(255, 255, 255, 0.05);
}

.home-news__meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-news__time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9a6ff;
  font-size: 16px;
}

.home-news__time-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.home-news__title {
  min-height: 60px;
}

.home-news__date {
  font-size: 0.875rem;
}

/* Позиционирование ссылки-стрелки */
.home-news__image {
  position: relative;
}

.home-news__link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.home-news__link:hover {
  background: rgba(0, 0, 0, 0.7);
}

.home-news__link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

@media (max-width: 768px) {
  .home-news__tags {
    gap: 2px;
  }

  .home-news__tag {
    padding: 6px;
    font-size: 12px;
    min-width: 60px;
  }

  .home-news__time {
    font-size: 14px;
  }

  .home-news__excerpt {
    font-size: 0.875rem;
  }
}
