.cm-news__list {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.cm-news__back-button {
  margin-bottom: 24px;
}

.cm-news__separator {
  border: none;
  height: 1px;
  background: #ffffff80;
  margin-top: 24px;
  margin-bottom: 45px;
}

.cm-news__posts {
  margin: 45px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 22px;
  }

  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-news__post {
  display: flex;
}

.cm-news__link {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: white;
}

.cm-news__link:hover {
  text-decoration: none;
  color: #86c5ca;
}

.cm-news__title {
  font-weight: 300;
  font-size: 33px;
  line-height: 35px;
  color: white;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.cm-news__post:hover .cm-news__title {
  font-weight: 700;
}

.cm-news__date {
  font-size: 16px;
  color: white;
  margin: 0;
  font-weight: 400;
  text-transform: capitalize;
  position: relative;
  display: flex;
  align-items: center;
}

.cm-news__date::after {
  content: "";
  height: 1px;
  background: #86c5ca;
  margin-left: 20px;
  margin-right: 20px;
  flex: 1;
  max-width: 0;
  transition: max-width 0.3s ease;
  order: 1;
}

.cm-news__post:hover .cm-news__date::after {
  max-width: 100px;
}

.cm-news__learn-more {
  color: #86c5ca;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  order: 2;
}

.cm-news__post:hover .cm-news__learn-more {
  opacity: 1;
}

.cm-news__pagination {
  display: flex;
  gap: 16px;
  margin-top: 60px;
}

.cm-news__pagination .current {
  color: #fff;
}

.cm-news__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-news__pagination__prev {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.cm-news__pagination__next {
  display: flex;
  align-items: center;
  margin-left: 12px;
}
