.page-news {
  --news-blue: #0058bc;
  --news-text: #191c1e;
  --news-muted: #414755;
  --news-line: #e2e8f0;
  background: #ffffff;
  color: var(--news-text);
}

.news-main {
  background: #ffffff;
}

.news-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 138px 24px 90px;
  overflow: hidden;
  background: #073a82 url("../../images/news-hero-bg.png") center center / cover no-repeat;
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 98, 0.16);
}

.news-hero__content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  text-align: center;
  color: #ffffff;
}

.news-hero h1 {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.15;
}

.news-hero p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.7;
}

.news-layout {
  padding: 48px 0 80px;
}

.news-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 760px) 364px;
  gap: 32px;
  align-items: start;
}

.news-layout__main {
  min-width: 0;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.news-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 23px;
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 999px;
  background: #ffffff;
  color: #414755;
  font-size: 14px;
  line-height: 20px;
}

.news-filters a.is-active,
.news-filters a:hover {
  border-color: var(--news-blue);
  background: var(--news-blue);
  color: #ffffff;
}

.news-list {
  display: grid;
  gap: 32px;
}

.news-card {
  display: grid;
  grid-template-columns: 302px minmax(0, 1fr);
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.news-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #f2f4f6;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.news-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 290px;
  color: #c8d7ea;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
}

.news-card__category {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 88, 188, 0.94);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 16px;
}

.news-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.news-card time {
  color: #414755;
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 16px;
}

.news-card h2 {
  margin-top: 18px;
  color: #191c1e;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.32;
}

.news-card h2 a:hover {
  color: var(--news-blue);
}

.news-card p {
  display: -webkit-box;
  margin-top: 18px;
  overflow: hidden;
  color: #414755;
  font-size: 16px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__more {
  margin-top: 24px;
  color: var(--news-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.news-card__more::after {
  margin-left: 6px;
  content: "→";
}

.news-empty {
  padding: 48px;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: #f8fafc;
}

.news-empty h2 {
  font-size: 24px;
  font-weight: 600;
}

.news-empty p {
  margin-top: 12px;
  color: #64748b;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 8px;
  color: #414755;
  font-size: 16px;
}

.news-pagination a.is-active {
  border-color: var(--news-blue);
  background: var(--news-blue);
  color: #ffffff;
  font-weight: 700;
}

.news-sidebar {
  display: grid;
  gap: 32px;
}

.news-search,
.news-tags {
  padding: 27px 24px 24px;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: #ffffff;
}

.news-search label,
.news-tags h2,
.news-trial h2 {
  display: block;
  color: #191c1e;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.news-search div {
  display: grid;
  grid-template-columns: 1fr 48px;
  margin-top: 20px;
  border-radius: 6px;
  background: #f2f4f6;
}

.news-search input,
.news-search button,
.news-trial input,
.news-trial button {
  border: 0;
  outline: 0;
  font: inherit;
}

.news-search input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  background: transparent;
  color: #191c1e;
}

.news-search button {
  background: transparent;
  color: #414755;
  cursor: pointer;
  font-size: 24px;
}

.news-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.news-tags a {
  padding: 8px 12px;
  border-radius: 6px;
  background: #f2f4f6;
  color: #414755;
  font-size: 14px;
  line-height: 20px;
}

.news-tags a:hover {
  color: var(--news-blue);
}

.news-trial {
  padding: 28px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a7df0, #0058bc);
  color: #ffffff;
}

.news-trial p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.news-trial form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.news-trial input {
  height: 52px;
  padding: 0 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.news-trial input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.news-trial button {
  height: 52px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--news-blue);
  cursor: pointer;
  font-weight: 600;
}

.news-trial small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1024px) {
  .news-layout__inner {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 390px;
    padding: 118px 20px 64px;
  }

  .news-hero h1 {
    font-size: 40px;
  }

  .news-hero p {
    font-size: 16px;
  }

  .news-layout {
    padding-top: 32px;
  }

  .news-filters {
    gap: 10px;
    margin-bottom: 28px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card__media,
  .news-card__media img,
  .news-card__placeholder {
    min-height: 220px;
  }

  .news-card__body {
    padding: 26px 22px;
  }

  .news-card h2 {
    font-size: 22px;
  }

  .news-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .news-filters a {
    min-height: 36px;
    padding: 0 16px;
  }

  .news-pagination {
    gap: 6px;
  }

  .news-pagination a,
  .news-pagination span {
    width: 36px;
    height: 36px;
  }
}

.news-card {
  transition:
    transform var(--motion-medium) var(--motion-ease-out),
    box-shadow var(--motion-medium) ease,
    border-color var(--motion-fast) ease;
}

.news-card__media img {
  transition: transform var(--motion-slow) var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 88, 188, 0.3);
    box-shadow: 0 18px 42px rgba(31, 61, 97, 0.1);
  }

  .news-card:hover .news-card__media img {
    transform: scale(1.035);
  }
}

@media (max-width: 768px) {
  .news-card,
  .news-card__media img {
    transition-duration: var(--motion-fast);
  }
}
