.hero {
  height: 370px;
  background-position: center center;
  background-attachment: scroll;
  background-image: url("../img/blog.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
}

@media (width >= 768px) {
  .hero {
    height: 650px;
  }
}

@media (width >= 1280px) {
  .hero {
    height: 800px;
  }
}

.hero-wrapper {
  display: flex;
  align-items: center;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

@media (width < 768px) {
  .media {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.blog-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (width >= 768px) {
  .blog-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    grid-template-rows: repeat(3, 270px);
    justify-content: space-evenly;
    justify-items: center;
  }
}


@media (1280px <= width < 1440px) {
  .blog-wrapper {
    grid-template-columns: repeat(3, 370px);
    grid-template-rows: repeat(2, 300px);
    column-gap: 12px;
  }
}

@media (width >= 1440px) {
  .blog-wrapper {
    grid-template-columns: repeat(2, 560px);
    grid-template-rows: repeat(3, 420px);
    row-gap: 70px;
    justify-content: space-between;
  }
}

.text-image-link {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: black;
}

@media (width >= 768px) {
  .text-image-link {
    font-size: 18px;
    line-height: 30px;
    margin: 0;
  }
}

@media (width >= 1280px) {
  .text-image-link {
    font-size: 26px;
    line-height: 40px;
  }
}

.link {
  text-decoration: none;
}

.padding-block {
  padding: 30px 20px;
}

@media (width >= 768px) {
  .padding-block {
    padding: 70px 20px;
  }
}

@media (width >= 1280px) {
  .padding-block {
    padding: 100px 40px;
  }
}

@media (width >= 1440px) {
  .padding-block {
    padding: 100px 110px;
  }
}

@media (768px <= width < 1440px) {
  .blog-image {
    width: 350px;
    height: 233px;
  }
}

@media (width < 768px) {
  .blog-image {
    width: 280px;
    height: 186px;
  }
}

@media (width < 768px) {
  .blog-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
