*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
    font-size: 10px;
    font-family: sans-serif;
}
body{
  overflow-x: hidden;
}
img{
  width: 100%;
  transition: all .5s;
}
a{
  text-decoration: none;
  color: #eee;
}
section{
  padding: 30px 0;
  text-align: center;
   background:linear-gradient(to bottom,#0059b3,#004080,#003366,#001a33);
    width: 80%;
  width: 100%;
  height: 100vh;

}

.container{
  max-width: 1295px;
  width: 100%;
  margin: 0 auto;

}
main{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0 15px;
  margin: 30px 15px 0px 15px;
}
.body{
  width: 70%;
  margin: 0 auto;
}
.body h2{
  margin-top: 55px;
  font-size: 70px;
  color: white;
  font-weight: 5000;
}

.single_blog{
  position: relative;
  overflow: hidden;
  max-width: 580px;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px #ccc;
  transition: all .5s;
}
.single_blog:hover img{
  transform: scale(1.1);
  transition: all .4s;
}

.blog_content{
  position: absolute;
  left: 0;
  bottom: -65px;
  width: 100%;
  color: #fff;
  padding: 10px 5px;
  background: linear-gradient(45deg, black 0%, rgba(144, 192, 229, .4)100%);
  transition: all .5s;
}

.single_blog:hover{
  box-shadow: 0 2px 13px; #ccc;
  transition: all .5s;
}
.single_blog:hover .blog_content{
  bottom: 0;
  transition: all .5s;
}

.blog_content h3{
  font-size: 25px;
  font-weight: 700;
  margin: 0;
}
.blog_content h3 span{
  display: block;
  font-size: 60%;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: 600;
  color:yellow;
}

.blog_content a{
  font-size: 14px;
  font-weight: 500;
}
.blog_content .btn{
  margin-top: 10px;
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid white;
  border-radius: 3px;
    font-weight: 600;
      text-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
}

.blog_content .btn:hover{
  color: white;
  background: linear-gradient(to right,#f030a7,#f03061,#f03061);
  transition: all .5s;
  text-decoration: none;
}

.blog_content a:hover{
  text-decoration: underline;
}

.nav_bar{
  max-width: 120rem;
  width: 90%;
  margin: 0 auto;
}

.brand{
  color: white;
  font-size: 30px;
  transform: translateX(-100rem);
  animation: slider .5s forwards;
}

nav{
  padding-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 1.6rem;
}

nav ul{
  display: flex;
}

nav ul li {
  display: inline-block;
  list-style: none;
  transform: translateX(100rem);
    animation: slider .5s forwards;
}


nav ul li a{
  text-decoration: none;
  padding: 1rem 0;
  margin: 0 5rem;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  position: relative;
  letter-spacing: 2px;
  cursor: pointer;
}

nav ul li a:last-child{
  margin-right: 0;
}

nav ul li a::before,
nav  ul li a::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: yellow;
    left: 0;
    transform: scaleX(0);
    transition: all .5s;
  }

  nav ul li a.yel::before,
  nav  ul li a.yel::after{
      content: '';
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: white;
      left: 0;
      transform: scaleX(0);
      transition: all .5s;
    }

  nav ul li a::before{
    top: 0;
    transform-origin: left;
  }
  nav ul li a::after{
    bottom: 0;
    transform-origin: right;
  }

  nav ul li a:hover::before,
  nav ul li a:hover::after{
    transform: scaleX(1);
  }

  nav ul li:nth-child(1){
    animation-delay: 0s;
  }
  nav ul li:nth-child(2){
    animation-delay: .5s;
  }
  nav ul li:nth-child(3){
    animation-delay: 1s;
  }
  nav ul li:nth-child(4){
    animation-delay: 1.5s;
  }
  nav ul li:nth-child(5){
    animation-delay: 2s;
  }

  nav ul li:nth-child(1){
    animation-delay: 0s;
  }
  nav ul li:nth-child(2){
    animation-delay: .5s;
  }
  nav ul li:nth-child(3){
    animation-delay: 1s;
  }
  nav ul li:nth-child(4){
    animation-delay: 1.5s;
  }
  nav ul li:nth-child(5){
    animation-delay: 2s;
  }

  .yel{
    border: 1px solid transparent;
    color: yellow;
  }

  .hub{
    color: yellow;
  }
  .author{
    font-weight: 700;
    color: white;
  }
  @keyframes slider {
    from{

    }
    to{
      transform: translateX(0);
    }
  }

@media (max-width:922px){
  main{
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
  }
}

@media(max-width:767px){
  main{
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
  }
  header{
    width: 100%;
  }
  .blog_content{
    bottom: 0;
  }
}

@media (max-width:500px){
  main{
    grid-template-columns: repeat(1, 1fr);
  }
}
