.articles {
  padding: 8em 0;
  width: 75%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(310px,1fr));
}

.articles article {
  width: 310px;
  margin: 2em 1em;
}

.articles article > div {
  position: relative;
  z-index: 1;
}

.articleImg {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  cursor: pointer;

}

.articles article > div:hover:before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0.7;
  background: #FFF;
  z-index: 2;
}

article h3 {
  border-bottom: 2px dotted #0f367a;
  padding: 0 0 5px;
  font-weight: 600;
  line-height: 1.8;
  display: block;
  color: var(--mainColor);
  font-size: 1.2rem;
}

.articleHref {
  display: block;
  text-align: center;
  border-radius: 20px;
  padding: 0.5em 0;
  letter-spacing: 0.28em;
  background: var(--mainColor);
  color: var(--textColor);  
}

article p {
  font-size: 1.1rem;
  line-height: 1.8rem;
}

@media screen and (max-width: 1280px) {
  .articles {
    width: 90%;
  }
}

@media screen and (max-width: 820px) {
  .articles {
    padding: 4em 0;
  }
}

@media screen and (max-width: 430px) {
  .articles article {
    margin: 0 auto;
  }
  .articles {
    padding: 2em 0;
  }
}



