:root{
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    --primary-color: rgb(225, 39, 126);
    --text-color: #666666;
    --secondary-color: #071168;
    --bg-color: rgb(232, 230, 236);
    --white-color: white;
    --black-color: black;
    --secondary-bg: hsl(60, 20%, 97%);
    --hover-color: rgb(245, 255, 133);
}

*, *::after, *::before, ul, li, p, h1, h2, h3, h4, h5, h6, a{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
    
}

body{
    margin: 0;
    padding: 0;
}

p{
    color: var(--text-color);
}

.container{
    display: grid;
    grid-template-columns: minmax(200px, 250px) 1fr;
    /*grid-template-rows: minmax();*/
}

.header{
    background-color: var(--secondary-bg);
    grid-column: 2 / 3;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--secondary-color);
}

.top-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 16px 40px;
    gap: 16px;
}

.search{
    display: grid;
    grid-template-columns:auto 1fr ;
    align-items: center;
}

.membership{
    display: flex;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}
input[type="search"]{
  height: 32px;
  border-radius: 24px;
  border: 1px solid var(--secondary-color);
  background-color: var(--bg-color);
}

.top-section > .bell{
    margin-left: 80px;
}


.icon{
    width:24px;
    margin-right: 8px;
}

img{
    width: 40px;
    border-radius:  50%;
    object-fit: cover;
}

.info{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 16px 32px;
}

.greeting{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 8px;
}

.greets{
    align-self: center;
}


.greeting > img{
    width: 80px;
    height: 80px;
    grid-row: 1/3;

}

.actions{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    grid-column: 3 / 4;
}

button{
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 16px;
    font-size: 1rem;
   
    border: none;
    border-radius: 24px;
}

button:hover{
    background-color: var(--secondary-color);
}

.sidebar{
    background-color: var(--secondary-color);
    grid-row: 1 / 3;

}


.sidebar ul{
    margin: 16px 32px;
}

.sidebar > ul > li > a{
    padding: 8px;
    display: flex;
    align-items: center;
    gap:8px;
    font-size: 1.1rem;
  color: var(--white-color);
}

.sidebar > ul > li > a:hover{
  color: var(--hover-color);
}


.sidebar > ul > li > a > svg:hover{
  fill: var(--primary-color);
}





.sidebar > ul > li:first-child > a{
   padding-bottom: 16px;
    font-size: 1.5rem;
    font-weight: bold;

}


.sidebar > ul > li:nth-of-type(2){
   padding-top: 40px;
    

}


.sidebar > ul > li:nth-of-type(8){
   padding-top: 40px;
    

}




.content{
    background-color: var(--bg-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  /*grid-template-rows: repeat(3, minmax(200px, auto));*/
   align-content: start;
   padding-top: 24px;
}

.projects{
    background-color: var(--bg-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row: 1 / 5;
    grid-column: 1 / 3;
    gap: 16px;
    padding: 16px 32px;
    grid-auto-rows: min-content;

}

.projects h3{
    grid-column: 1/ 3;
     

}

.projects > .card{
    background-color: var(--white-color);
    /*border: 1px solid gainsboro;*/
    display: grid;
    grid-auto-rows: auto; 
    padding: 24px 16px;
    border-left: 10px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 5px 5px 5px rgba(186, 186, 186, 0.163);
    transition: transform 0.3s ease;
    align-self: start; 
}

.card > .title,
.card > .subtitle{
    grid-column: 1 /3;
}


.share{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column: 2/3;
    margin-top: 40px;
    gap: 16px;
}

.announcements{
    background-color:  var(--bg-color);
    padding: 16px 32px 16px 0;
    display: grid;
    gap: 16px;
}

.announcements > .card{
    background-color: var(--white-color);
    padding: 24px 40px;
    border-radius: 8px;
    box-shadow: 5px 5px 5px rgba(186, 186, 186, 0.163);
}

.announcements > .card > a {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
    color: var(--text-color);
    display: block;
    
}


.announcements > .card > a:hover > h4 {

    color: var(--primary-color);

    
}



.announcements > .card > a:last-child{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;


}




.announcements > .card > a > h4{
    color: var(--black-color);
    padding-bottom: 4px;
}




.trending{
    display: grid;
    background-color:  var(--bg-color);
    grid-column: 3 / 4;
    padding: 16px 32px 16px 0;

    gap: 16px;
}



.billboard{
    padding: 16px 24px;
    gap: 12px;
    background-color:  var(--white-color);

    border-radius: 8px;
    box-shadow: 5px 5px 5px rgba(186, 186, 186, 0.163);
    
}


.ppl{
    grid-column: 2 /3;
}


.billboard a  h4{
    color: var(--black-color);
}

.ppl > a h4:hover{
    color: var(--primary-color);
}

.billboard > li > a{
    display: grid;
  grid-template-columns: auto 1fr;
    grid-template-rows: auto auto; 
    padding-bottom: 16px;
    align-items: center;

}



.billboard > li:last-child{
    padding-bottom: 0;
}




.billboard > li >a > img{
   
    width: 56px;
    height: 56px;
    object-fit: cover;
    margin-right: 16px;
    border-radius: 100px;
}


.projects > .card:hover{
    transform:  translate(-5px, -2px);
    
}



.projects > a > .title {
    color: var(--black-color);
    font-size: 1.1rem;
    padding-bottom: 4px;
}

.projects > a:hover > .title{
    color: var(--secondary-color);
}



.menu-toggle{
    display: none;
}

@media screen and (max-width: 768px) {
    

.container{
    display: flex;
    flex-direction: column;
}


.header{
    display: flex;
    flex-direction: column;
}

.top-section{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 16px 20px;
}


.actions{
    gap: 8px;
}
.sidebar{
    display: flex;
    position: sticky;
    top: 0;
    background-color: var(--secondary-color); 
    z-index: 10; 
}

.sidebar > ul {
    display: flex;
    overflow-x: auto;
   
    align-items: center;
}

.sidebar > ul > li > a{
    padding: 0 8px;
}

.sidebar > ul > li:first-child > a{
   padding-bottom: 0;
    font-size: 1.5rem;
    font-weight: bold;

}


.sidebar > ul > li:nth-of-type(2){
   padding-top: 0px;
    

}


.sidebar > ul > li:nth-of-type(8){
   padding-top: 0px;
    

}


.content{
    display: flex;
    flex-direction: column;
}

.projects > .card{
    grid-column: span 2 ;
}

.announcements{
    margin: 16px 32px;
    padding: 0;
}

.trending{
    margin: 16px 32px;
    padding: 0;
}

}