@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
    --max-width: 1100px;
    --primary-color: #2F3645;
  --primary-color-dark: #000000;
  --secondary-color: #939185;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: #faf5ff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  a{
    text-decoration: none;
  }
  ul{
    list-style: none;
  }

  #blog{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0px;
    background-color: #f9f8ff;
  }

  .blog-heading h3{
    font-size: 2.4rem;
    color: #252525;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 2.4rem;
  }

  .blog-heading strong{
    color: #0a0ef8;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .blog-box-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1050px;
    width: 90%;
    margin-top: 50px;
  }

.blog-box{
    max-width: 100%;
    height: 100%;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all ease 0.3s;
}
.blog-box:hover{
    background-color: #ffffff;
    box-shadow: 16px 20px 50px rgb(0,0,0,0.12);
}
.blog-box-img{
    width: 100%;
    height: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.blog-box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all ease 0.5s;
}
.blog-img-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #252525;
    box-shadow: 2px 2px 30px rgba(20, 97, 212, 0.12);
    animation: fade 0.3s;
}

.blog-box:hover .blog-box-img a{
    display: flex;
}

.blog-box:hover .blog-box-img img{
    filter: blur(1.5px);
}

@keyframes fade{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100%;
    }
}
.blog-box-text{
    display: flex;
    flex-direction: column;
    padding: 20px 10px 20px 10px;
}

.blog-box-text strong, .blog-box-text p{
    color: #797979;
    font-size: 0.9rem;
    font-weight: 400;
}

.blog-box-text a{
    font-size: 1.4rem;
    color: #252525;
    font-weight: 800;
    line-height: 1.8rem;
    margin: 5px 0px 10px 0px;
}

.blog-box-text p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.blog-author{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
}

.blog-author-img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.blog-author-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.blog-author-text{
    display: flex;
    flex-direction: column;
}

.blog-author-text strong{
    color: #252525;
    font-weight: 800;
}

.blog-author-text snap{
    color: #797979;
    font-size: 0.8rem;
    font-weight: 500;
}

/*Resonsive ;)*/

@media(max-width:920px) {
    .blog-box-container{
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px 0px;
    }
}
@media(max-width:600px) {
    .blog-box-container{
        grid-template-columns: 1fr;
    }
    .blog-heading h3{
        font-size: 1.6rem;
        line-height: 1.6rem;
    }
}

/*Navigation bar*/
a {
    text-decoration: none;
  }
  
  body {
    font-family: "Poppins", sans-serif;
  }
  nav {
      width: 100%;
      position: relative;
      top: 0;
      left: 0;
      background-color: #ffffff;
      z-index: 99;
    }
    
    
  .nav__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
    nav .logo a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
        transition: 0.3s;
      }
      nav .logo a:hover {
        color: var(--primary-color-dark);
      }
    
    nav .checkbox {
      display: none;
    }
    
    nav input {
      display: none;
    }
    nav .checkbox i {
      font-size: 2rem;
      color: var(--primary-color);
      cursor: pointer;
    }
    
    ul {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      list-style: none;
      transition: left 0.3s;
    }
    
    ul li a {
      padding: 0.5rem 0.5rem;
      border: 2px solid transparent;
      text-decoration: none;
      font-weight: 600;
      color: var(--text-dark);
      transition: 0.3s;
    }
    
    ul li a:hover {
      border-top-color: var(--secondary-color);
      border-bottom-color: var(--secondary-color);
      color: var(--secondary-color);
    }
  
    /*To make it responsive*/

    @media (width < 550px) {
        nav .checkbox {
          display: block;
        }
      
        ul {
          position: relative;
          width: 100%;
          height: calc(80vh - 70px);
          left: -80%;
          top: 95px;
          background-color: var(--extra-light);
          flex-direction: column;
          justify-content: center;
          gap: 3rem;
        }
      
        nav #check:checked ~ ul {
          left: 0;
        }
      
        ul li a {
          font-size: 2rem;
        }
    }