/* Карточка статьи */

.articles {
  padding: 140px 0;
}
.articles__title {
  color: #1c2230;
  font-size: 42px;
  font-weight: 700;
  line-height: 50px;
  margin-bottom: 0;
}
.articles__title > span {
  color: #6a758d;
  font-size: 42px;
  font-weight: 700;
  line-height: 50px;
}

.articles__title-link {
  color: #e42145;
  display: flex;
  gap: 10px;
  font-size: 16px;
  align-items: center;
  font-weight: bold;
}

.articles__title-link svg {
  transition: transform 0.3s ease;
}

.articles__title-link:hover svg {
  transform: rotate(45deg);
}
.articles__title-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 45px;
}

.article-card {
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border-radius: 15px;
  height: 100%;
}

.article-card:hover {
    background: #f5f9fc;
}

.article-card__image-wrapper {
  position: relative;
  width: 100%;
  max-height: 172px;
  min-height: 172px;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.article-card__pic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__read-more {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background: #e42145;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, padding 0.3s ease;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
}

.article-card__read-more svg {
    max-width: 10px;
    max-height: 10px;
}

.article-card:hover .article-card__read-more {
  width: auto;
  padding: 0 16px;
}

.article-card__read-more-text {
  font-size: 16px;
  font-weight: 600;
  color: white;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease 0.1s, width 0s ease 0.4s;
}

.article-card:hover .article-card__read-more-text {
  opacity: 1;
  width: auto;
  transition: opacity 0.3s ease 0.1s, width 0s ease 0s;
  padding-right: 5px;
}

.article-card__read-more svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.article-card__content {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.articles .owl-item {
  height: auto !important;
}

.articles .owl-stage {
  display: flex;
  align-items: stretch !important;
}

.article-card__title {
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: #455271;
}

.article-card__snippet {
  margin: 0 0 15px 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  color: #455271;
  flex: 1;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 14px;
  color: #455271;
}

.article-card__date {
  color: #455271;
  font-weight: 500;
}

@media (max-width: 768px) {
  .article-card__content {
    padding: 15px;
  }
  .articles {
    padding: 60px 0;
  }

  .article-card__snippet {
    font-size: 15px;
  }

  .article-card__read-more {
    width: 36px;
    height: 36px;
    bottom: 10px;
    right: 10px;
  }

  .article-card:hover .article-card__read-more {
    width: auto;
    padding: 0 14px;
  }

  .article-card__read-more svg {
    width: 20px;
    height: 20px;
  }
  .articles__title-wrap {
    flex-direction: column-reverse;
    align-items: start;
  }

  .articles__title {
    font-size: 26px;
  }

  .articles__title>span {
    font-size: 26px;
  }
  .articles__title-wrap {
    margin-bottom: 30px;
  }
}
@media (max-width: 600px) {
  .articles__container {
    padding: 0 !important;
  }

  .articles__title-wrap, .articles__slider{
    padding: 0 10px;
  }
}
