:root {
  --primary-color: rgb(100, 122, 155);
  --secondary-color: rgb(55, 65, 81);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

  min-height: 100vh;
  padding: 2rem 3.6rem;
  background: linear-gradient(to left bottom, rgb(55, 65, 81), rgb(17, 24, 39), rgb(0, 0, 0));
  color: var(--primary-color);
}

h1 {
  font-size: 4.4rem;
}

h1 span {
  font-size: 0.8em;
  color: rgb(255, 255, 255);
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: inherit;
}

.wrapper {
  width: 100%;
  max-width: 60rem;
  margin: auto;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
}

header .title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcuts {
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 2.4rem;
  text-align: center;
}

.shortcuts a {
  width: 6rem;
  height: 6rem;
  padding: 1rem;
  justify-self: center;
  border-radius: 50%;
  transition: background-color 200ms;
}

.shortcuts a i {
  font-size: 4rem;
}

.shortcuts a:hover,
.shortcuts a:focus {
  outline: none;
  background-color: rgba(100, 122, 155, 0.2);
}

.news {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.news-content {
  height: 28rem;
  padding: 1rem;
  overflow-y: scroll;
  border: 1px solid rgb(17, 24, 39);
  border-radius: 0.4rem;
  background-color: rgb(0, 0, 0);
}

.news-content:has(.ph) {
  display: flex;
  align-items: center;
}

.news-content i {
  display: block;
  width: 3.2rem;
  margin: 0 auto;
  font-size: 3.2rem;
  color: var(--secondary-color);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.news-content--item {
  padding-bottom: 1.6rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(100, 122, 155, 0.2);
}

.news-content--item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.news-content--item .item-title,
.news-content--item .item-title a {
  font-size: 1.4rem;
  font-weight: 700;
  transition: border-bottom 400ms;
}

.news-content--item .item-title a:hover,
.news-content--item .item-title a:focus {
  outline: none;
  border-bottom: 1px solid rgba(100, 122, 155, 0.5);
}

.news-content--item .item-summary {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--primary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) {

  body {
    height: 100vh;
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    background: rgba(55, 65, 81, 0.5);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 122, 155, 0.4);
  }

  .shortcuts {
    display: flex;
    justify-content: space-around;
  }

  .news {
    height: 100%;
    overflow-y: hidden;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .news-column {
    height: 100%;
    overflow-y: hidden;
  }

  .news-content {
    height: 100%;
  }
}
