body {
  margin: 0;
  padding: 0;
}

.navbar {
  width: 100%;
  align-items: center;
  vertical-align: middle;
  background-color: #0077b6;
  height: 80px;
  display: flex;
}

.navbar a .logo {
  height: 55px;
  width: auto;
  margin-left: 30px;
}

.menu-icon {
  height: 20px;
  cursor: pointer;
  display: none;
  padding-right: 15px;
}

.navbar nav {
  flex: 1;
  text-align: right;
  position: relative;
}

.navbar nav ul li {
  display: inline-block;
  list-style: none;
  padding-right: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.navbar ul li::after {
  content: "";
  width: 0px;
  height: 3px;
  background: white;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.navbar ul li:hover::after {
  width: 100%;
}

.title {
  display: flex;
}

h1 {
  font-weight: 500;
  font-family: "Montserrat";
  padding: 40px 20px 40px 100px;
  flex-basis: auto;
}
h1::after {
  margin-top: 5px;
  content: "";
  width: 120px;
  height: 5px;
  background: #0077b6;
  display: block;
}

.all-blogs-list {
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 4px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: 20px 0;
  padding: 0 100px;
}

.blog-item {
  margin: 15px;
  width: 270px;
  height: 320px;
  cursor: pointer;
  transition: 0.5s;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

#post-date {
  margin-left: 10px;
  color: black;
  margin-top: 10px;
  font-family: "Montserrat";
}

#post-title {
  padding-left: 10px;
  padding-right: 10px;
  font-family: "Montserrat";
  margin-top: 10px;
}

#noPosts{
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media only screen and (max-width: 1200px) {
  .all-blogs-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (max-width: 700px) {
  .all-blogs-list {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: unset;
    margin: 20px;
    padding: 0;
    gap: 1px;
  }

  .blog-item {
    margin: 15px;
    width: 150px;
    height: 230px;
    cursor: pointer;
    transition: 0.5s;
    overflow: hidden;
  }

  .card-img {
    width: 100%;
    height: 50%;
    object-fit: cover;
  }

  #post-date {
    margin-left: 10px;
    color: black;
    margin-top: 5px;
    font-family: "Montserrat";
    font-size: 10px;
  }

  #post-title {
    padding-left: 10px;
    padding-right: 10px;
    font-family: "Montserrat";
    margin-top: 10px;
    font-size: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .navbar {
    height: 60px;
    padding-top: 5px;
  }
  .navbar nav {
    padding: 25px 0;
  }
  .navbar nav ul {
    width: 100%;
    background-color: #0077b6;
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 10;
  }

  .navbar nav ul li {
    display: block;
    list-style: none;
    padding: 10px;
  }

  .menu-icon {
    display: block;
    width: 25px;
  }

  #menuList {
    overflow: hidden;
    transition: 0.5s ease;
  }

  .navbar a .logo {
    width: 50px;
    margin-left: 10px;
  }

  h1 {
    font-weight: normal;
    font-size: 25px;
    font-family: "Montserrat";
    padding: 40px 30px;
    flex-basis: auto;
  }
}
