
.news {
  width: 100%;
  height: auto;
  background-color: white;
  padding: 1rem 4rem;
}
.blog-heading {
  font-size: 20px;
  text-align: center;
}
.news-text {
  margin-bottom: 10px;
  text-align: center;
}
.blog-news {
  padding: 5px 0px;
  margin: auto;
  height: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* border: 1px solid black; */
}
.blog-card {
  margin: 5px;
  width: 20rem;
  height: 16rem;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid rgb(189, 185, 185);
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.54);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.54);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.54);
}
.photo {
  width: 100%;
  height: 68%;
  /* border: 1px solid blue; */
  object-fit: cover;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0px 0px;
}
.writtenby {
  width: 100%;
  height: 7%;
  /* border: 1px solid blueviolet; */
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  font-size: 12px;
  font-style: italic;
  color: rgb(196, 196, 196);
}
.blog-title {
  width: 100%;
  height: 3.6rem;
  font-size: 1.2em;
  font-weight: bold;
  color: rgb(0, 52, 3);
  /* border: 1px solid blueviolet; */
  padding: 3px 10px;
  border-radius: 0px 0px 8px 8px;
  background-color: rgb(255, 255, 255);
}

@media (max-width: 1024px) {
  .news {
    padding: 0.5rem 1rem;
  }
  .blog-news {
    width: 100%;
    gap: 5px;
  }
  .blog-card {
    /* border: 1px solid rgb(210, 207, 207); */
    width: 15rem;
    height: 11.25rem;
  }
  .blog-title {
    height: 2.8rem;
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .news {
    padding: 0.5rem 0.5rem;
  }
  .blog-news {
    display: flex;
    justify-content: space-around;
    width: 90%;
    gap: 0px;
  }
  .blog-card {
    margin: 0px 0px 1.2em 0px;
    width: 10rem;
    height: 8.4rem;
  }
  .blog-title {
    height: 2.2rem;
    font-size: 12px;
  }
  .writtenby {
    font-size: 7px;
  }
}
