@import url("../../foundation/base.css");

.news__title-img {
  position: absolute;
}

.news__title-img--1 {
  width: 91px;
  aspect-ratio: 1/1;
  right: 183px;
  top: 214px;
}

.news__title-img--2 {
  width: 172px;
  aspect-ratio: 172 / 152;
  right: -20px;
  top: 138px;
}

.news__content {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  margin-bottom: 160px;
}

.news__right {
  flex-grow: 1;
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news__link {
  display: flex;
  gap: 16px;
  align-items: center;
}

.news__date {
  color: #1e201f;
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 90px;
  flex-shrink: 0;
}

.news__category {
  flex-shrink: 0;
}

.news__item-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.news__left {
  width: 270px;
  flex-shrink: 0;
}

.news__search {
  border-radius: 8px;
  background: #fff;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
}

.news__search-button {
  background-color: transparent;
  border: none;
  width: 24px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
}

.news__input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.news__selects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 7px;
}

.news__select-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
}

.news__select-link:before {
  content: "";
  display: block;
  width: 8px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.news__select-link--orange.is-active {
  border-bottom: 2px solid #ff8731;
}

.news__select-link--orange::before {
  background-color: #ff8731;
}

.news__select-link--yellow-green.is-active {
  border-bottom: 2px solid #7fbe26;
}

.news__select-link--yellow-green::before {
  background-color: #7fbe26;
}

.news__select-link--green.is-active {
  border-bottom: 2px solid #009844;
}

.news__select-link--green::before {
  background-color: #009844;
}

.news__select-link--purple.is-active {
  border-bottom: 2px solid #bc45d3;
}

.news__select-link--purple::before {
  background-color: #bc45d3;
}

.news__select-link--blue.is-active {
  border-bottom: 2px solid #26a5be;
}

.news__select-link--blue::before {
  background-color: #26a5be;
}

@media (max-width: 767px) {
  .news__content {
    flex-direction: column;
    gap: 6.4rem;
    margin-bottom: 8rem;
  }

  .news__list {
    gap: 2.4rem;
  }

  .news__link {
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
  }

  .news__date {
    font-size: 1.6rem;
    width: auto;
  }

  .news__item-title {
    font-size: 1.6rem;
  }

  .news__left {
    width: 100%;
  }

  .news__search {
    border-radius: 0.8rem;
    padding: 0.8rem 1.6rem;
    gap: 0.8rem;
  }

  .news__search-button {
    width: 2.4rem;
  }

  .news__input {
    font-size: 1.6rem;
  }

  .news__selects {
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .news__select-link {
    font-size: 1.6rem;
    gap: 1rem;
  }

  .news__select-link:before {
    width: 0.8rem;
  }
}
