@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Plus+Jakarta+Sans:wght@500;800&family=Roboto:wght@300;400;700&display=swap");

:root {
  --Soft-orange: hsl(35, 77%, 62%);
  --Soft-red: hsl(5, 85%, 63%);

  --Off-white: hsl(36, 100%, 99%);
  --Grayish-blue: hsl(233, 8%, 79%);
  --Dark-grayish-blue: hsl(236, 13%, 42%);
  --Very-dark-blue: hsl(240, 100%, 5%);
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 15px;
  width: 1440px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  padding: 10px;
}

.navbar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.navbar .menu-button,
.navbar .close-button {
  display: none;
}

.navbar ul {
  display: grid;
  grid-template-columns: 0.18fr 0.16fr 0.19fr 0.21fr 0.1fr;
  align-items: center;
  justify-content: end;
}

.navbar ul li {
  list-style-type: none;
}

.navbar ul li a {
  text-decoration: none;

  color: var(--Very-dark-blue);
}

.navbar ul li a:hover {
  color: var(--Soft-red);
}

.headline {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 30px;
  margin: 40px 0 50px 0;
}

.headline .img-desktop {
  width: 100%;
}

.headline .img-mobile {
  display: none;
}

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

.left-bottom {
  display: flex;
  flex-direction: row;
  gap: 80px;
  justify-content: space-between;
  margin-top: 40px;
}

.left-bottom .headline-title {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 72px;
}

.left-bottom-article {
  display: flex;
  flex-direction: column;
  gap: 35px;
  line-height: 30px;
}

.left-bottom-article p {
  color: var(--Dark-grayish-blue);
}

.left-bottom .read-more {
  width: 140px;
  height: 40px;
  border: none;
  background-color: var(--Soft-red);
  color: var(--Off-white);
  text-transform: uppercase;
  cursor: pointer;
}

.left-bottom .read-more:hover {
  background-color: var(--Very-dark-blue);
}

.right {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
  color: var(--Off-white);
  background-color: var(--Very-dark-blue);
  padding: 40px 20px;
  height: auto;
}

.right div:nth-child(3) {
  border-top: 1px solid var(--Off-white);
  border-bottom: 1px solid var(--Off-white);
  padding: 40px 0;
}

.right h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--Soft-orange);
}

.right .recent-news {
  margin: 5px 0;
}

.right h4 {
  margin-bottom: 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}

.right a {
  text-decoration: none;
  color: var(--Off-white);
}

.right a:hover {
  color: var(--Soft-orange);
}

.article-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 30px;
}

.article-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 30px 0;
}

.article-card img {
  height: 150px;
}

.text-of-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-of-card h2 {
  font-size: 2rem;
  color: var(--Grayish-blue);
}

.text-of-card p {
  color: var(--Dark-grayish-blue);
  line-height: 1.5rem;
}

.text-of-card a {
  text-decoration: none;
  color: var(--Very-dark-blue);
}

.text-of-card a:hover {
  color: var(--Soft-red);
}

@media only screen and (max-width: 600px) {
  body {
    width: 100%;
  }

  main {
    width: 100%;
  }

  .navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar .menu-button,
  .navbar .close-button {
    width: 40px;
    height: 30px;
  }

  .navbar .menu-button,
  .navbar .close-button:hover {
    cursor: pointer;
  }

  .navbar ul {
    background-color: var(--Off-white);
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: initial;
    justify-content: left;
    width: 70%;
    height: 100vh;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 400;
    display: none;
  }

  .navbar ul.active {
    display: block;
  }

  .navbar ul .navlink {
    margin: 20px 0;
  }

  .navbar ul .navlink:nth-child(1) {
    margin-top: 100px;
  }

  .navbar .menu-button {
    display: block;
  }

  .navbar .close-button.active {
    display: block;
    position: absolute;
    right: 0;
    z-index: 1;
  }

  .headline {
    grid-template-columns: none;
    grid-template-rows: 1fr 1fr;
  }

  .headline .left .img-desktop {
    display: none;
  }

  .headline .left .img-mobile {
    display: block;
    width: 100%;
  }

  .headline .left-bottom {
    flex-direction: column;
  }

  .left-bottom,
  .left-bottom-article {
    gap: 20px;
  }

  .left-bottom-article {
    margin-bottom: 40px;
  }

  .article-card-container {
    grid-template-columns: none;
    grid-template-rows: 1fr 1fr 1fr;
  }

  .article-card-container .article-card {
    margin: 15px;
  }
}
