/* Article list styles */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 36px;
}

.article-item .article-image {
  position: relative;
  width: 100%;
  height: 219px;
  background-color: var(--pears-light-grey);
  margin-bottom: 20px;
}

.article-item .img-article {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-item .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Humble Nostalgia, serif;
  font-size: 43px;
  line-height: 1.235;
  margin-bottom: 20px;
}

.article-item .article-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Brandon Grotesque, serif;
  font-size: 18px;
  line-height: 1.3333;
  margin-bottom: 20px;
}

.article-item .article-preview p {
  margin: 0;
}

.article-item .article-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 29px;
  border-radius: 70px;
  background-color: var(--pears-green);
  color: var(--pears-black);
  letter-spacing: 5px;
  text-indent: 5px;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
}

.article-item .article-more img {
  margin-left: 6px;
}

@media (max-width: 991.98px) {
  header .menu__nav a:nth-child(2)::after {
    position: absolute;
    left: -3px;
    bottom: -9px;
    height: 2px;
    width: calc(100% + 6px);
    background-color: var(--pears-black);
    content: '';
  }

  /* Article list styles */
  .article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 36px;
  }

  .article-list .article-item {
    width: 259px;
    max-width: 100%;
    justify-self: center;
  }

  .article-list .article-item:nth-child(odd) {
    justify-self: flex-end;
  }

  .article-list .article-item:nth-child(even) {
    justify-self: flex-start;
  }

  .article-item .article-image {
    height: 147px;
    margin-bottom: 15px
  }

  .article-item .article-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .article-item .article-preview {
    font-size: 12px;
    margin-bottom: 15px;
  }
}

@media (max-width: 767.98px) {
  .article-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .article-list .article-item:nth-child(odd) {
    justify-self: center;
  }

  .article-list .article-item:nth-child(even) {
    justify-self: center;
  }
}
