.news-detail-title {
  margin-bottom: 5rem;
  overflow-wrap: anywhere;
}
.news-detail {
  max-width: 80rem;
}

.news-detail-contents,
.news-list-contents {
  display: grid;
  grid-template-columns: 1fr 31.5rem;
  gap: 15rem;
}
@media (max-width: 767px) {
  .news-detail-contents,
  .news-list-contents {
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }
}

.news-list {
  position: relative;
  z-index: 3;
}

.news-list-items {
  display: grid;
}
@media (max-width: 767px) {
  .news-list-items {
    gap: 2.5rem 2rem;
  }
}

.news-aside {
  height: fit-content;
}
@media print, screen and (min-width: 768px) {
  .news-aside {
    position: sticky;
    top: var(--header-height);
  }
}
@media (max-width: 767px) {
  .news-aside {
    margin-bottom: 6rem;
  }
}

.news-year {
  display: block;
  width: fit-content;
}
.news-year + .news-year {
  margin-top: 0.5rem;
}
.news-year.is-active {
  font-weight: bold;
  color: var(--color-black);
}

.news-categories__title {
  font-weight: bold;
  font-size: 2rem;
  padding: 0 1rem 0.5rem;
  border-bottom: 1px solid;
  margin-bottom: 2.5rem;
}
@media (max-width: 767px) {
  .news-categories__title {
    font-size: 1.6rem;
  }
}
.news-categories a {
  display: block;
  width: fit-content;
  margin: 0 1rem 1.5rem;
  transition: 0.4s;
}
.news-categories a.is-active {
  font-weight: bold;
}
.news-categories a:hover {
  opacity: 0.6;
}

.news-category {
  font-size: 2rem;
  font-weight: bold;
  display: block;
  padding: 2.4rem 0.4rem;
  border-bottom: dashed 1px currentColor;
  transition: 0.5s;
}
@media (max-width: 767px) {
  .news-category {
    font-size: 1.6rem;
    padding: 1.6rem 0.4rem;
  }
}
.news-category:hover {
  opacity: 0.5;
}

.news-filter {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1.5px solid var(--color-black);
  margin-bottom: 7rem;
}

.news-filter-button {
  width: 27rem;
  height: 6rem;
  position: relative;
  z-index: 2;
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}
.news-filter-button:hover:not(.is-active) {
  opacity: 0.6;
}
.news-filter-button__text {
  position: relative;
  width: fit-content;
}
.news-filter-button__text::after {
  content: "";
  width: 100%;
  height: 0.5rem;
  background-color: var(--accent3);
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  opacity: 0;
}
.news-filter-button.is-active {
  border: solid 1.5px var(--color-black);
  border-bottom: 2px solid #eeeeee;
  bottom: -2px;
  color: var(--accent3);
}
.news-filter-button.is-active .news-filter-button__text::after {
  opacity: 1;
}
