:root{
    --orange: #e67e22;
    --black: #333;
    --light-color: #777;
    --border:.1rem solid rgba(0,0,0.2);
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
}

*{
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    font-weight: lighter;
}


html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
 
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    background: lightgray;
    color: black;
    border-radius: .5rem;
    padding: .9rem 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    width: 30%;
    font-weight: 600;

}

.btn:hover{
    background: var(--orange);
    color: white;
}

section{
    padding: 2rem 7%;

}

.header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    padding: 1.2rem 7%;
    height: 8rem;
}

.header .logo{
    color: var(--black);
    font-size: 2.5rem;
    margin-right: auto;
}

.header .logo span{
    color: var(--orange);
}
.header .navbar a{
    color: var(--light-color);
    margin-right: 2rem;
    font-size: 1.7rem;
    text-transform: capitalize;
}

.header .navbar a:hover{
    color: var(--orange);
}

#menu-bars{
    display: none;
}

.py-5{
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 23rem;
    margin-right: 5rem;
    
}

.py-5 .container h2{
    font-size: 3rem;
    padding: 10px;
}
.py-5 .container p{
    font-size: 2rem;
}
.py-5 .container{
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
   
}
.legal a{
    color: white;
    font-size: 1.5rem;
}
.legal a:hover{
    color: orange;
}

.banner{
    min-height: 90vh;
    background: url(pexels-minan1398-1448709.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    padding-top: 8rem;
    
}


.banner .content{
    text-align: center;
    background: transparent;
    backdrop-filter: blur(4px);
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    padding: 3rem;
    max-width: 50rem;
}

.banner .content h3{
    font-size: 4rem;
    color: white;
    text-transform: uppercase;
}

.banner .content p {
    font-size: 1.6rem;
    color: white;
    text-transform: uppercase;
    padding: 1rem 0;
    line-height: 1.5;

}

.container{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 0 auto;
}

.container .posts-container .post{
    width: 95%;
    padding: 1.2rem;
    background-color: rgb(251, 253, 253);
    border: var(--border);
    border-radius: .5rem;
    margin-bottom: 1.1rem;
    
}


.container .posts-container .post .image{
    height: 27rem;
    width: 100%;
    border-radius: .5rem;
    object-fit: cover;
    margin: 0 auto;
    max-height: 400px;
    display: block;
}
.container .posts-container .post .imagear{
    height:28rem;
    width: 100%;
    border-radius: .5rem;
    object-fit: fill;
    margin: 0 auto;
    max-height: 400px;
    display: block;
}

.container .posts-container .post .date{
    padding-top: 2rem;
    font-size: 1.5rem;
    color: var(--orange);
}

.container .posts-container .post .title{
    padding-top: 1.5rem;
    font-size: 2rem;
    color: black;
    text-decoration: none;

    
}
.container .posts-container .post .title a{
    color: purple;
}

.container .posts-container .post .text{
    color: black;
    font-size: 1.6rem;
    line-height: 1.7;
    padding: 1rem 0;
}

.container .posts-container .links{
    border-top: var(--border);
    margin-top: .5rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.container .posts-container .links .user{
    margin-right: auto;
}

.container .posts-container .links .icon {
    padding-right: 1rem;
}

.container .posts-container .links a {
    font-size: 1.5rem;
    color: black;
}

.container .posts-container .links a i{
    padding-right: .2rem;
    color: black;
}

.container .posts-container .links a:hover{
    color: orange;
}
.container .posts-container .links a:hover i{
    color: orange;
}


.container .sidebar{
    width: 70%;
}

.container .sidebar .box{
    border: var(--border);
    border-radius: .5rem;
    background: white;
    margin-bottom: 1.5rem;
  
    
}

.container .sidebar .box .title{
    padding: 1.5rem;
    outline-style: 2rem;
    color: white;
    background: var(--black);
    text-transform: capitalize;
}

.container .sidebar .box .about{
    text-align: center;
    padding: 1rem 1.5rem;
}

.container .sidebar .box .about img{
    height: 15rem;
    width: 15rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem 0;
    overflow: hidden;
    object-position: center 25%;

}

.container .sidebar .box .about h3{
    color: var(--black);
    font-size: 2rem;
}

.container .sidebar .box .about p{
    color: var(--light-color);
    font-size: 1.5rem;
    line-height: 1.5;
    padding: 1rem;
}

.container .sidebar .box .about .follow{
    padding: 1rem 0;
}

.container .sidebar .box .about .follow a{
    height: 4rem;
    line-height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background: var(--black);
    color: white;
    font-size: 1.7rem;
    margin: 0 .1rem;
}

.container .sidebar .box .about .follow a:hover{
    background: var(--orange);

}

.container .sidebar .box .category{
    padding: 1rem 1.5rem;
}
.container .sidebar .box .category a{
    padding: .4rem 0;
    font-size: 1.5rem;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container .sidebar .box .category a span{
    background: var(--light-color);
    color: white;
    border-radius: .5rem;
    padding: .5rem;
}

.container .sidebar .box .category a:hover{
    color: var(--orange);
}

.container .sidebar .box .category a:hover span{
    background-color: var(--orange);
}

.container .sidebar .box .p-post{
    padding: 1rem 2rem;
}

.container .sidebar .box .p-post a{
    padding: 1rem 0;
    display: block;
    
}

.container .sidebar .box .p-post a h3{
    color: var(--black);
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

.container .sidebar .box .p-post a span{
    color: var(--light-color);
    font-size: 1rem;
    color: orange;
}

.container .sidebar .box .p-post a span i{
    padding-right: .2rem;
}

.container .sidebar .box .p-post a:hover h3{
    color: var(--orange);
}

.container .sidebar .box .tags{
    padding: 1rem;
}

.container .sidebar .box .tags a{
    display: inline-block;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    color: var(--black);
    border-radius: .5rem;
    border: var(--border);
    margin: .5rem;
}

.container .sidebar .box .tags a:hover{
    background:  var(--black);
    color: white;
}


.poster-box img{

    object-fit: fill;
}


.poster-box.container .poster-box.hide{
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
     transition: opacity 1s ease, visibility 1s ease;
}


.filter{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}
.filter-item{
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.active-filter{
    background: black;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
}

.poster-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    gap: 1.5rem;
    background: whitesmoke;
    box-shadow: 0 4px 14px rgba(35deg 25% 15% / 10%);
    padding: 15px;
    border-radius: 0.5rem;
}

.post-img{
    width: 100%;
    height: 50px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}


.category{
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: orange;

}
.post-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamb: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-date{
    display: flex;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 400;
    color: orange;
}
.post-description{
    font-size: 1.07rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile{
    display: flex;
    align-items: center;
    gap: 10px;
}
.poster-box img{
    height: 17rem;
}
.poster-box .profile img{
    height: 3rem;
}


.profile-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);
}

.profile-name{
    font-size: .8rem;
    font-weight: 500;
}
.footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-content: center;
    background: black;
    
}

.footer .credit{
    text-transform: capitalize;
    font-size: 1.7rem;
    color: white;
    padding: 1rem 0;
}


.footer .credit span{
    color: var(--orange);
}


.footer .follow{
    padding: 1rem 0;
    display: flex;
    
    
}

.footer .follow a{
    height: 4.5rem;
    line-height: 4.5rem;
    width: 4.5rem;
    border-radius: 50%;
    font-size: 1.7rem;
    background: var(--black);
    color: white;
    margin: 0 1rem;
    text-align: center;
   
}

.footer .follow a:hover{
    background: var(--orange);
}
 


  


@media (max-width:991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 1.5rem;
        height: 11rem;
    }
    section{
        padding: 2rem;
    }
        .container {
            grid-template-columns: 2fr 1fr;
            
        }
}

@media (max-width:768px){
    #menu-bars{
        display: inline-block;
        color: black;
    }
    .popular{
        background: red;
    }
    .container .sidebar .box .p-post a h3{
        font-size: 12px;
    }
    .container .sidebar .box .p-post a h3 .span{
        font-size: 1px;
        background: red;
    }
    .container .posts-container .post .title{
        font-size: 15px;
        color: black;
    }.container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    
}
.sidebar .box{
    width: 41.7rem;
    
    
}
.container .posts-container{
    width: 44rem;
}

.container .posts-container .post .imagear{
    height:21rem;
    width: 100%;
    border-radius: .5rem;
    object-fit: fill;
    margin: 0 auto;
    max-height: 400px;
    display: block;
}


.header .logo{
    font-size: 2rem;
}

    .about h3{
        color: gray;
        font-weight: 600;
        border-radius: 15px;

    }
    .footer .follow .fab.fa-facebook{
        font-size: 23px;
        margin-bottom: 3rem;
       
    }
    .footer .follow .fab.fa-twitter{
        font-size: 23px;
        margin-bottom: 6rem;
       
    }
    
    .hamburger div {
      width: 25px;
      height: 3px;
      background-color:black;
      margin: 5px 0;
      margin-left: 18rem;
    }
    .header .navbar{
        height: 8rem;
    }
    .btn{
       
        align-items: center;
        justify-content: center;
        margin-right: 3rem;
        

        
        
    }

    .header .navbar a{
    
    color:black;
    font-size: 10px;
    width: 100%;
    display: flex;
    width: 60px;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    
 
  }
 
    
    .header .navbar{
        position: absolute;
        top: 100%; left: 0; right: 0;
        border-top: var(--border);
        border-bottom: var(--border);
        background: white;
    }
    .search-form{
        display: none;
    }

    
    .py-5{
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 29rem;
    margin-left: 1.33rem;
    margin-bottom: 2rem;
    
    
}
.py-5 .container{
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
    margin-right: 3rem;
    
   
}
.btn{
    width: 55%;
    margin-bottom: 5rem;
    margin-top: .01rem;
    margin-left: 3rem;
}

.py-5 .input-type{
    font-size: 8rem;
    color: gray;
    
}
form input::placeholder{
    margin: 2px;
    color: gray;
    border-radius: 20px;
    height: 15px;
   
}
input{
    padding-left: 50px;
    margin: 8px;
    font-size: 12px;
    
    
}



    .header .navbar{
        position: absolute;
        top: 100%; left: 0; right: 0;
        border-top: var(--border);
        border-bottom: var(--border);
        background:white;
        display: none;
    }

    .header .navbar.active{
        display: block;
    }

    .header .navbar a{
        display: block;
        background: #f7f7f7;
        padding: 1.5rem;
        margin: 1.5rem;
        border-radius: .5rem;
        border: var(--border);
        margin-left: 3rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
        .container {
            grid-template-columns: 1fr;
            gap: 0; 
        }
        .container .posts-container .post .image{
            height: 20rem;
            
        }
        
        
        .poster-box img{
            height: 20rem;
            overflow: hidden;
            
            
           
        }
        .poster-box .profile img{
            height: 3.5rem;
            object-fit: fill;
        }
        .footer{
            flex-flow: column;
            text-align: center;
            height: 10rem;

        }
        .header .search-form{
            display: none;
            background: red;
        }
        
        .footer .credit{
            margin-top: -70px;
            font-size: 1.4rem;
        }
        .footer .legal{
            font-size: 2rem;

        }
        .footer .legal a{
            font-size: 1.2rem;
        }
        .legal a:hover{
            color: orange;
        }
        .footer .follow a{
            font-size: .5rem;
            margin-bottom: 4rem;
            width: 25px;
            height: 25px;
            padding: 7px;
            background: black;
            
        }
        .footer .follow a:hover{
            background: black;
        }
        
        
}



@media (max-width:450px) {
    html {
        font-size: 50%;
    }
    .legal a:hover{
            color: orange;
        }
    
    
    
}

