*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}


body{
    background: #f0f2f5;
    color: #5f5f5f;
}

a{
    text-decoration: none;
    color: #5f5f5f;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 6px 6%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


.logo img{
    width: 30px;
    margin-right: 15px;
    display: block;
}

.navbar-center ul li {
    display: inline-block;
    list-style: none;
}

.navbar-center ul li a{
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 5px 8px;
    padding-right: 5px;
    position: relative;

}

.navbar-center ul li a img {
    width: 30px;
}

.navbar-center ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #045be6;
    position: absolute;
    bottom: -15px;
    transition: width 0.3s;

}
.navbar-center ul li a:hover::after,
.navbar-center ul li a.active-link::after
{
    width: 100%;
}

.nav-profile-img{
    width: 40px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    position: relative;

}

.online{
    position: relative;

}
.online::after{
    content:'';
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius:50% ;
    right: 0px;
    top: 0px;
    background: #41db51;
    position: absolute;
}



.search-box{
    background: #f0f2f5;
    width: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}


.navbar-left{
    display: flex;
    align-items: center;
}

.search-box img{
    width: 14px;
}


.search-box input{
    width: 100%;
    background: transparent;
    padding: 8px;
    outline: none;
    border: 0;
}

/* navbar end -close */

.container{
    padding: 20px 6%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*--------------------- left sidebar--------------------------- */



.left-sidebar{
    
    align-self: flex-start;
    position: sticky;
    top: 73px;
    
}

.sidebar-profile-box{
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    padding: .2rem 0.1rem  ;
    
}

.sidebar-profile-info{
    padding: 0 25px ;
}

.sidebar-profile-info img{
    width: 90px;
    border-radius: 50%;
    padding: 4px;
    margin-top: -45px;
}

.sidebar-profile-info h2{
    font-size: 20px;
    font-weight: 600;
    color: #222;
    
}

.sidebar-profile-info h3{
    font-size: 14px;
    font-weight: 500;
    color: #1496f3;
    text-decoration-line: underline;
    cursor: pointer;

}

.sidebar-profile-info ul{
    list-style: none;
    margin: 20px 0;
}


.sidebar-profile-info ul li {
    width: 100%;
    margin: 5px 0;
    font-size: 13px;

}

.sidebar-profile-info ul li span {
    float: right;
    color: #045be6;
}


.sidebar-profile-link{
    display: flex;
    align-items: center;
    border-top: 1px solid #ccc;
}

.sidebar-profile-link a{
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    font-size: 13px;
    border-left: 1px solid #ccc;
}


.sidebar-profile-link a:first-child{
    border-left: 0;
}


.sidebar-profile-link a img{
    width: 20px;
    margin-right: 10px;
}


.discover-more-link{
    border-top: 1px solid #ccc;
    text-align: center;
    margin-top: 20px;
    margin-left: -25px;
    margin-right: -25px;
}

.discover-more-link a{
    color: #045be6;
    display: inline-block;
    margin: 10px 0;

}



/* ------------------right sidebar ----------------------------------------------------------------*/
.right-sidebar{
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 73px;

}

.sidebar-news{
    background: #fff;
    padding: 10px 25px;
}

.info-icon{
    width: 15px;
    float: right;
    margin-top: 15px;

}


.sidebar-news h3{
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 30px;
}


.sidebar-news a{
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: -5px;
}

.sidebar-news span {
    font-size: 12px;
}


.sidebar-news .read-more-links{
    color: #045be6;
    font-weight: 500;
    margin: 20px 0 10px;
}

.sidebar-ad{
    background: #fff;
    padding: 15px 25px;
    text-align: center;
    margin: 12px 0 ;
    font-size: 12px;
}

.sidebar-ad img{
    width: 60px;
    border-radius: 50%;
    margin: 4px;
}

.sidebar-ad small{
    float: right;
    font-weight: 500;
}

.sidebar-ad p {
    margin-top: 30px;
    margin-bottom: 10px;
}

.sidebar-ad b{
    display: block;
    font-weight: 500;
    margin-top: 10px;
}

.ad-link{
    display: inline-block;
    border: 1px solid #2d2e30;
    border-radius: 30px;
    padding: 5px 15px;
    color: #000000;
    font-weight: 500;
    margin: 20px auto 10px;
}

.ad-link-1{
    background: #045be6;
    color: #fff;
    border-top: 0;
    border-right: 0;
    display: inline-block;
    border: 1px solid #ffffff;
    border-radius: 30px;
    padding: 5px 15px;
    color: #fff8f8;
    font-weight: 500;
    margin: 20px auto 10px;
}


.sidebar-useful-links{
    padding: 15px 25px;
    text-align: center;
    
}

.sidebar-useful-links a{
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
}

.copyright-msg{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 500;
}

.copyright-msg img{
    
    margin-right: 4px;
    
}
/*--------------------------- main bar------------------------------- */
.main-content{
    flex-basis: 47%;
}


.post-firstbar{
    background: #fff;
    text-align: center;
}
.post-author-firstbar{
    display: flex;
    align-items: flex-start;
    margin-bottom: 7px;
}

.post{
    background: #fff;
    padding:20px 25px 5px ;
    margin: 10px 0 7px;
    border-radius: 0%;
    justify-content: space-between;
}

.post-author{
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.post-author img{
    width: 35px;
    border-radius:50% ;
    margin-right: 10px;
    margin-top: 5px;
    cursor: pointer;
}

.post-author h1{
    font-size: 18px;
    font-weight:600 ;
    color: #333;
}

.post-author small{
    display: block;
    margin-bottom: -2px;
}

.post p{
    font-size: 14px;
    margin-bottom: 15px;
}

.liked-users{
    margin-left: 10px;
}


/* -----------------------profole menu---------------------- */

.profile-menu-wrap{
    position: absolute;
    top: 100%;
    right: 5%;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}

.profile-menu-wrap.open-menu{
    max-height: 400px;
}



.profile-menu{
    background: #222;
    color: #fff;
    padding: 20px;
    margin: 10px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img{
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h3{
    font-weight: 500;
    margin-bottom: -7px;
}

.user-info a{
    color: #c9dbf8;
    font-size: 13px;
}

.profile-menu hr{
    border: 0;
    height: 1px;
    width: 100%;
    background: #fff;
    margin: 15px 0 10px;

}

.profile-menu-link{
    display: flex;
    align-items: center;
    color: #fff;
    margin: 12px 0;
    font-size: 14px;
}

.profile-menu-link p{
    width: 100%;
}


.profile-menu-link img{
    width: 35px;
    border-radius: 50%;
    margin-right: 15px;
}




/* ------------profile -right sidebar */

.profile-sidebar .sidebar-ad{
    margin: 0;
}

.sidebar-people{
    background: #fff;
    padding: 15px 25px;
    margin: 12px 0;
    font-size: 12px;
}

.sidebar-people h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 20px;
}

.sidebar-people-row{
    display: flex;
    align-items: flex-start;
    margin: 6px 0;
}

.sidebar-people-row img{
    width: 40px;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 5px;
}


.sidebar-people-row h2{
    font-weight: 500;
    font-size: 16px;
}

.sidebar-people-row a{
    display: inline-block;
    margin: 10px 0;
    padding: 5px 25px;
    border: 1px solid #5f5f5f;
    border-radius: 30px;
    font-weight: 500;
}

.profile-footer{
    padding: 0 6% 30px;
}

.profile-footer .sidebar-useful-links{
    text-align: left;
    padding: 0;
}
.profile-footer .copyright-msg{
    justify-content: flex-start;
}
#showMoreLink{
    display: none;
}

/*------------------------MEDIA QUERY FOR SMALL SCREEN---------------------- */

@media only screen and (max-width: 600px){
    .search-box{
        background: transparent;
        width: auto;
        padding: 0;    
    }
    .search-box input{
        width: 0;
        padding: 0;
    }
    .navbar-center ul li a span {
        display: none;
    }
    .navbar-center ul li a {
        padding-right: 0;
        margin: 5px;
    }
    .nav-profile-img{
        width: 30px;
    }
    .container{
        padding: 15px 3%;
    }
    .left-sidebar, .right-sidebar{
        flex-basis: 100%;
        position: relative;
        top: unset;
    }
    .main-content{
        flex-basis: 100%;
    }
    .post-stats div{
        display: none;
    }
    .post-activity-link span{
        display: none;
    }
    .post-activity-link img{
        margin-right: 0;
    }
    .profile-main, .profile-sidebar{
        flex-basis: 100%;
    }
    .profile-container{
        font-size: 14px;
    }
    .profile-pic{
        width: 100px;
        margin-top: -50px;
    }
    .profile-description{
        font-size: 14px;
    }
    #showMoreLink{
       display: block;
       width: fit-content;
       margin: 10px auto;
       font-size: 14px;
       cursor: pointer; 
    }
    .sidebar-activity{
        display: none;
    }
    .sidebar-activity.open-activity{
        display: block;
    }
    

}





