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

:root {
  /* Primary Font */
  --prm-font: "Inter", sans-serif;
  /* Primary Colors */
  --primary-color-orange: hsl(35, 77%, 62%);
  --primary-color-red: hsl(5, 85%, 63%);
  /* Secondary COlors */
  --neutral-color-offwhite: hsl(36, 100%, 99%);
  --neutral-color-grayish-blue: hsl(233, 8%, 79%);
  --neutral-color-dark-grayish-blue: hsl(236, 13%, 42%);
  --neutral-color-very-dark-grayish-blue: hsl(240, 100%, 5%);
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: var(--prm-font);
}

body {
  background-color: var(--neutral-color-offwhite);
  justify-content: center;
  align-items: center;
}

.main-container {
  margin: auto;
  width: 90vw;
  max-width: 1200px;
}

/* Navigation Bar - Logo and Menu */
.navbar {
  margin: auto;
  padding: 35px 0 15px 0;
  display: flex;
}

.logo {
  display: flex;
  justify-content: flex-start;
  width: 30%;
}

.menu {
  display: flex;
  margin-top: 10px;
  margin: auto;
  justify-content: flex-end;
  width: 70%;
  /* align-items: center; */
  align-content: space-between;
}

.menu ul {
  display: flex;
}

.menu li {
  list-style: none;
  margin-left: 30px;
  text-align: right;
}

.menu li a {
  color: var(--neutral-color-dark-grayish-blue);
  text-decoration: none;
}

.menu li a:hover {
  color: var(--primary-color-red);
}

#myLinks {
  display: none;
}

a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
} /* Content */

.top-section {
  margin: auto;
  padding: 20px 0 15px 0;
  display: flex;
  gap: 25px;
}

.top-section-left {
  display: flex;
  flex-direction: column;
  width: 70%;
}

.top-section-left img {
  width: 100%;
}

.top-section-left_down {
  display: flex;
  justify-content: space-around;
  align-content: flex-start;
  margin-top: 30px;
  /* gap: 40px; */
}

.latest-new {
  display: flex;
  width: 50%;
}

.latest-new-content {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding-right: 35px;
}

.latest-new h1 {
  font-size: 4rem;
  line-height: 4rem;
  padding-right: 4rem;
}

.latest-new p {
  color: rgba(122, 119, 119, 0.993);
  line-height: 1.5;
  word-spacing: 0.125rem;
}
.top-section-right {
  display: flex;
  width: 30%;
  background-color: var(--neutral-color-very-dark-grayish-blue);
  flex-direction: column;
  padding: 40px 35px 30px;
}

.btn {
  width: 200px;
  height: 50px;
  background-color: var(--primary-color-red);
  color: #fff;
  border: none;
  letter-spacing: 0.3rem;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--neutral-color-very-dark-grayish-blue);
  border: none;
}

.news-item {
  display: flex;
  padding-top: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.39);
  flex-direction: column;
  padding-bottom: 5px;
}

.news-item_last {
  display: flex;
  padding-top: 20px;
  flex-direction: column;
  padding-bottom: 20px;
}

.top-section-right h1 {
  color: var(--primary-color-orange);
}

.top-section-right h2 {
  color: #fff;
  font-size: 1.2rem;
}

.top-section-right h2:hover {
  color: var(--primary-color-orange);
  cursor: pointer;
}

.top-section-right p {
  color: rgba(255, 255, 255, 0.692);
  font-size: medium;
  line-height: 1.5;
}

.trending-news {
  margin: auto;
  padding: 20px 0 20px 0;
  display: flex;
  gap: 25px;
}

.trending-news-content {
  display: flex;
  gap: 25px;
}

.trending-news-content-img {
  display: flex;
  width: 30%;
}

.trending-news-content-img img {
  width: 98%;
  object-fit: cover;
}

.trending-news-content-text {
  display: flex;
  width: 70%;
  flex-direction: column;
}

.trending-news-content-text h1,
p {
  color: rgba(122, 119, 119, 0.795);
}

.trending-news-content-text h3,
p {
  padding-top: 23px;
}

.trending-news-content-text h3:hover {
  color: var(--primary-color-red);
  cursor: pointer;
}

/* Footer */

.footer {
  display: flex;
  margin: auto;
  justify-content: center;
}

.footer p {
  text-align: center;
  margin: 0px 0 25px 0;
  font-size: 14px;
  color: var(--neutral-color-dark-grayish-blue);
}

.footer a {
  text-decoration: none;
  color: var(--neutral-color-very-dark-grayish-blue);
}

.footer a:hover {
  color: var(--primary-color-red);
}

/* Smaller Screen - Breakpoint */

@media only screen and (max-width: 768px) {
  .top-section {
    flex-direction: column;
  }

  .top-section-left {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .top-section-left_down {
    flex-direction: column;
  }

  .top-section-left img {
    width: 100%;
    height: 250px;
  }

  .latest-new {
    width: 100%;
  }

  .top-section-right {
    width: 100%;
  }

  .trending-news {
    flex-direction: column;
  }
}
