* {
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
}

svg {
  height: 24px;
  height: 24px;
}

img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid black;
}

#parentGrid {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background-color: rgb(25, 146, 212);
}

/* Left side of window */
aside,
.group1,
.group2 {
  color: white;
  fill: white;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 30px;
}

aside > div:first-child,
.group1 > div,
.group2 > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-left: 20px;
  padding-top: 15px;
}

aside a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

aside a:hover {
  color: white;
  text-decoration: underline;
  transition: 1s ease;
}

aside {
  display: flex;
  flex-direction: column;

  min-width: 250px;
  height: 100vh;
  position: sticky;
  top: 0;
}

nav,
.mainContent {
  padding: 50px 100px;
}

/* Nav bar */
nav {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 50px;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 20px;
  column-gap: 30px;
}

.search {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search input {
  background-color: #e2e8f0;
  border: none;
  border-radius: 15px;
  height: 30px;
  width: 80%;
  padding-left: 10px;
}

.profileCorner {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: bold;
}

.userGreeting {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: bold;
}

.userGreeting > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profileCorner,
.userGreeting {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav button {
  background: rgb(25, 146, 212);
  color: white;

  border: none;
  border-radius: 9999px;

  font-size: 15px;
  font-weight: bold;

  padding: 5px 30px;
  height: 50px;
  text-align: center;
  gap: 15px;
}

/* Main Content */
.mainContent {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 25px;
  padding: 30px;
  background-color: #f0f9ff;
}

.mainContent h3 {
  margin-bottom: 0;
  padding-left: 20px;
  font-size: 1.2rem;

  grid-column: 1 / 2;
}

#projects {
  grid-column: 2 / 3;
}

.mainContent,
#projects {
  background-color: rgb(240, 270, 240);
}

#projects button {
  border: none;
  background-color: white;
  cursor: pointer;
}

#projects svg {
  fill: #333;
}

#projects {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 20px;
  background-color: transparent;
}

#projects > div {
  background-color: white;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  border-left: 8px solid #f0b429;
  border-radius: 1%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: auto;
  padding-top: 1rem;
}

.card-actions > div {
  display: flex;
  gap: 15px;
  margin-left: auto;
  margin-top: auto;
}

.card-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sideWidgets {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Right Side */
.post,
.trendCard {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Annoucements */
#announcements {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post {
  background-color: white;
  padding: 15%;
  border-radius: 1%;
}

.firstAnn,
.secondAnn {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(229, 231, 235);
}

/* Trending section */
#trending {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 10%;
}

.trendCard {
  background-color: white;
  padding: 10%;
}

.trendCard > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.trendCard > div > div {
  display: flex;
  flex-direction: column;
}

.trendCard img {
  width: 45px;
  height: 45px;
  border: none;
}
