a:has(.news__article) {
  display: block;
}

.news__article {
  position: relative;
  display: flex;
  width: 360px;
  height: 510px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.news__cover-container {
  display: flex;
  width: 338px;
  height: 238px;
  padding: 10px 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.news__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 338px;
  height: 238px;
}
.news__cover {
  width: 338px;
  height: 238px;
  padding: 10px 15px;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  transform: scale(100%) translateY(3px);
}
.news__cover:hover {
  transform: scale(105%) translateY(3px);
}

.news__text-container {
  position: relative;
  padding: 36px 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 338px;
  height: 235px;
  gap: 34px;
  background: #51575b;
}

.news__title {
  position: absolute;
  z-index: 2;
  top: 200px;
  left: 48px;
  padding: 12px 24px;
  width: 100%;
  max-width: 312px;
  background: rgba(37, 2, 86, 0.6);
  backdrop-filter: blur(7277543544769287px);
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}
.news__title:hover {
  transform: translateX(-15px);
}
.news__title h3 {
  transform: translateX(15px);
}
.news__title h3 {
  margin: 0;
  font-size: 26px;
  font-family: 'TT Autonomous', sans-serif;
  font-weight: 400;
  color: var(--main-text-color);
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.news__excerpt p {
  margin: 0;
  color: var(--main-text-color);
  font-family: 'TT Fors';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.news__see-more {
  display: flex;
  width: 270px;
  padding: 9px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: 0;
  color: var(--main-text-color);
  font-family: 'TT Autonomous';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  background: #250256;
}

.news__large {
  width: 1220px;
  height: 408px;
  flex-direction: row;
  align-items: flex-end;
}
.news__large .news__frame {
  top: 20px;
  width: 554px;
  height: 390px;
}

.news__large .news__cover-container {
  width: 554px;
  height: 390px;
  padding: 26px 23px;
}

.news__large .news__cover {
  width: 554px;
  height: 390px;
  padding: 26px 23px;
}
.news__large .news__title {
  top: 10px;
  left: 525px;
  width: 100%;
  max-width: 496px;
  padding: 10px 26px 8px 30px;
}
.news__large .news__title h3 {
  font-size: 42px;
}

.news__large .news__text-container {
  width: 626px;
  height: 316px;
  padding: 66px 26px 24px 38px;
}
