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

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sub-btn-clr: #ee7c0d;
  --para-clr: #656565;
}

/* main section */

.main-section {
  width: 90%;
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-family: "Manrope", sans-serif;
  padding: 1.8em 0;
}

.nav-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  display: none;
}

.nav-list.active {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  display: block;
}

.menu-toggle {
  cursor: pointer;
}

.nav-list::before {
  content: "";
  position: absolute;
  right: 0;
  top: -1em;
  border-width: 2em;
  border-style: solid;
  border-right-color: white;
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.nav-list li {
  text-align: center;
  list-style: none;
  width: 100%;
}

.nav-list a {
  color: var(--para-clr);
  font-weight: 900;
  font-size: 1.2em;
  text-decoration: none;
  display: block;
  padding: 1em 5em;
}

.nav-list a:active {
  color: var(--sub-btn-clr);
}

/* grid container */

.grid-container {
  font-family: "Manrope", sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3em;
}

.image {
  width: 100%;
  height: 15em;
  margin-bottom: 1.2em;
  background-size: cover;
  background-position: center;
}

#item-1 .image {
  background-image: url("Assets/Main\ Article\ Image.png");
}

#item-2 .image {
  background-image: url("Assets/Article\ 1\ Image.png");
}

#item-3 .image {
  background-image: url("Assets/Article\ 2\ Image.png");
}

#item-4 .image {
  background-image: url("Assets/Article\ 3\ Image.png");
}

.heading {
  font-size: 2em;
  margin-bottom: 0.3em;
}

.para {
  color: var(--para-clr);
  margin-bottom: 1em;
}

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

.writer-img {
  width: 3.4em;
  margin-right: 0.8em;
}

.writer-img img {
  height: 3.3em;
}

/* footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2em 0 2em 0;
}

.footer img {
  margin-bottom: 1em;
}

.footer p {
  font-family: "Manrope", sans-serif;
  color: var(--para-clr);
}

@media (min-width: 650px) {
  .nav-list {
    display: flex;
    align-items: center;
    justify-items: space-between;
    position: static;
    background: transparent;
    flex-grow: 0.5;
  }

  .nav-list::before {
    display: none;
  }

  .nav-list a {
    display: inline-block;
    padding: 0;
    font-weight: 400;
    font-size: 1em;
  }

  .nav-list li .sub-btn {
    padding: 0.8em 1em;
    background: var(--sub-btn-clr);
    color: black;
    font-weight: 900;
    border-radius: 6px;
  }

  .menu-toggle {
    display: none;
  }

  .footer {
    padding-top: 3em;
  }

  .footer img {
    margin-bottom: 0;
  }
}

@media (min-width: 1025px) {
  .navbar {
    padding: 2.5em 0;
  }

  .nav-list {
    flex-grow: 0.2;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1em;
    row-gap: 2em;
  }

  .main-section {
    width: 80%;
  }

  #item-1 {
    grid-column-start: 1;
    grid-column-end: 4;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3em;
  }

  .heading {
    font-size: 2.5em;
  }

  .image {
    height: 14em;
  }

  #item-1-heading-para {
    grid-column-start: 2;
    grid-column-end: 4;
  }
}
