@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

header {
  padding: 0 0.5rem 0 0.5rem;
  border-bottom: 1px solid rgb(223, 223, 223);
  display: flex;
  justify-content: space-between;
  font-size: large;
}

header > section {
  display: flex;
  align-items: center;
}

header > section:nth-child(1) > div:nth-child(1) {
  padding: 1rem;
  border-right: 1px solid rgb(223, 223, 223);
}

header > section:nth-child(1) > div:nth-child(2) {
  line-height: 1.1rem;
}

header > section:nth-child(1) > div:nth-child(2) > p {
  font-size: 0.9rem;
  color: #8b8b8b;
}

header > section:nth-child(1) > div:nth-child(2) > h1 {
  font-size: 1.3rem;
  font-weight: 500;
}

header div img {
  height: 2rem;
}

header div {
  padding: 0.8rem;
}

main {
  height: 100%;
  display: grid;
  grid-template: "a a a" "b c d";
  padding: 0.25rem;
  gap: 0.25rem;
}

main > section {
  border-radius: 1rem;
  background-color: rgb(223, 223, 223);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

main > section h3 {
  font-size: larger;
}

main > section p {
  opacity: 0.7;
}

main > section:nth-child(1) {
  grid-area: a;
  background: linear-gradient(to right, #4261ef, #4262efe3);
  color: white;
  aspect-ratio: auto;
  flex-direction: row;
  position: relative;
  gap: 20rem;
}

main > section:nth-child(1)::before {
  display: block;
  border-radius: 1rem;
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("thumbnail.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

main > section:nth-child(1) h1 {
  font-size: xx-large;
  line-height: 2.5rem;
}

main > section:nth-child(1) > div:nth-child(1) {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

main > section:nth-child(1) > div:nth-child(2) {
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

main > section:nth-child(1) a {
  padding: 0.7rem 1.5rem;
  background-color: white;
  color: black;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-weight: 500;
}

main > section:nth-child(2) {
  grid-area: b;
}

main > section a {
  padding: 1.2rem;
  width: fit-content;
  background-color: white;
  color: black;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

main > section:nth-child(3) {
  grid-area: c;
}

main > section:nth-child(4) {
  grid-area: d;
}

footer {
  border-top: 1px solid rgb(223, 223, 223);
  height: 20rem;
  display: flex;
  gap: 4rem;
  padding: 1rem 2rem;
}

footer > section:nth-child(1) {
  flex: 1;
}

footer > section:nth-child(1) img {
  width: 8rem;
}

footer h5 {
  font-weight: 500;
  color: rgb(151, 151, 151);
  font-size: 0.85rem;
}

footer span {
  color: rgb(95, 95, 95);
  font-weight: 500;
  font-size: 0.8rem;
}

footer a {
  color: rgb(51, 51, 51);
}

footer li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
