/*Reset stylesheet*/
@import "modern-normalize";

:root {
  --blue: rgb(6, 115, 165);
  font-family: 'Roboto';
}

h1, h2, h3, h4, h5, figure, p, ol, ul {
  margin: 0;
}

ol[role="list"], ul[role="list"] {
  list-style: none;
  padding-inline: 0;
}

h1, h2, h3, h4, h5 {
  font-size: inherit;
  font-weight: inherit;
}

html, button {
  font-size: 16px;
}

/*Main layout*/

body {
  margin: 0px;
  padding: 0px;
  min-height: 100vh;
  background-color: rgb(242, 236, 236);
}

.sidebar {
  background-color: rgb(6, 115, 165);
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row: 1/ 3;

  display: grid;
  grid-template-columns: minmax(2.4vh, 5vh) auto;

  color: white;
  padding-top: 19px;
  padding-left: 30px;

  align-content: start;
  row-gap: 20px;

  min-height: 100%;
}

.sidebar a:nth-child(2) {
  margin-left: 10px;
  margin-top: 9px;
}

a {
  text-decoration: none;
  color: white;
}

.sidebar > svg {
  fill: white;
}

.header {
  background-color: rgb(252, 252, 252);
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 100%;
  height: auto;
  min-height: 10rem;
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.3);

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header {
  overflow: hidden;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
}

.main-content {
  grid-row: 2 / 3;
  background-color: rgb(242, 236, 236);

  display: grid;
  grid-template-columns: 3fr 1fr;

  padding: 2rem;
  gap: 5rem;
  align-items: start;

  height: auto;
}

button {
  color: white;
  background-color: rgb(6, 115, 165);
  border-radius: 16px;
  border-color: var(--blue);
  border: none;
  padding: 6.8px 25px;
}

.sidebar svg:first-child,
.sidebar a:first-of-type {
  margin-bottom: 30px; 
}

.sidebar a:nth-of-type(8), .sidebar svg:nth-of-type(8){
  margin-top: 40px;
}

/*header*/
.search-bar input, .search-bar input:focus{
  --grey: rgb(242, 236, 236);
  background-color: var(--grey);
  border: var(--grey);
  border-radius: 20px;
  width: 40rem;
  outline: none;
  height: 26px;
}

.search-bar input:focus {
  box-shadow: 0 3px 6px var(--blue);
}

img[src$=".png"]{
  width: 60px;
  height: auto;
}

.trend img {
  width: 40px;
  height: auto;
}

.trend h4 {
  font-weight: 550;
}

.right img{
  width: 5vh;
}

.header p {
  font-weight: bold;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.right {
  display: flex;
  gap: 19px;
  align-items: center;
}

.buttons{
  display: flex;
  gap: 20px;
}

.bottom-left div {
  display: flex;
  flex-direction: column;
}

.bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-left img {
  width: 7.9vh;
}

.trend {
  display: flex;
  align-items: center;
  gap: 20px;
}

#trendings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#trending h3 {
  font-weight: bold;
}

#up, #bottom {
  display: flex;
  flex-wrap: wrap;
}

#up, #bottom {
  justify-content: space-between;
  align-items: center;
  margin-left: 30px;
  margin-right: 90px;
}

#up {
  margin-top: 20px;
}

#bottom {
  gap: 2rem;
  margin-top: 8px;
}

.project-icons svg {
  width: 2.4vh;
}

.project {
  --yellow: rgb(255, 145, 0);

  width: 100%;

  min-height: 230px;

  border-radius: 8px;
  background-color: #FCFCFC;

  border-left: 9px solid var(--yellow);

  padding: 1.5rem;

  display: flex;
  flex-direction: column;
}

#The-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 3rem;
  column-gap: 5rem;
}

.project, .announces {
  box-shadow: 0 2px 6px grey;
}

#The-projects article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

article .project-icons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;

  margin-top: auto;
}

#announcements article h4, #The-projects article h2, #your-projects h3, #announcements h3{
  font-weight: bold;
}

#announcements article {
  max-height: 35.2rem;
  border-radius: 7px;
  background-color: #FCFCFC;
}

.announces p:not(:last-child) {
  border-bottom: 1px solid rgb(210, 208, 208);
  margin-bottom: 20px;
  padding-bottom: 30px;
}

.announces h4:first-child {
  padding-top: 3px;
}

article.announces h4, article.announces p {
  padding-left: 20px;
}

article.announces h4, article.announces p {
  padding-right: 15px;
}

#announcements {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#announcements .announces {
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-left: 27px;
  padding-right: 27px;
  gap: 2px;
}

#your-projects,
#announcements {
  gap: 1rem;
}

#your-projects h3,
#announcements h3 {
  margin: 0;
  line-height: 1;
}

#announcements .announces {
  padding-top: 28px;
}

#trendings {
  min-width: auto;
  width: 370px;
  height: auto;
  background-color: #FCFCFC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 10px;
  box-shadow: 0 2px 6px grey;
  gap: 25px;
}

#trending {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#your-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.announces-trending {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#announcements article, #trendings {
  padding: 10px;
  padding-top: 30px;
  padding-bottom: 40px;
  padding-right: 3.4vw;
}

#announcements h3, #trending h3 , #your-projects h3 {
  font-size: 1.2rem;
}

#announcements article,
#trendings {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bottom-left div p:last-of-type {
  font-size: 1.4rem;
}
