.news-updates-page {
  --news-bg: #f2f9ff;
  --news-bg-deep: #dcebff;
  --news-surface: #ffffff;
  --news-text: #2f3548;
  --news-muted: #7f8080;
  --news-primary: #2a86ff;
  --news-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  background: var(--news-bg);
}

.news-updates-main {
  position: relative;
  overflow: clip;
  background: var(--news-bg);
}

.news-updates-hero {
  position: relative;
  min-height: 400px;
  background: #d8e9fb;
}

.news-updates-hero__bg {
  position: absolute;
  inset: 0;
  background: url("./assets/news-updates/top-bg.png") center top / cover no-repeat;
}

.news-updates-hero__inner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 148px 0 56px;
}

.news-updates-title {
  width: min(455px, 100%);
  text-align: center;
  color: var(--news-text);
}

.news-updates-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-updates-title__en {
  margin: 10px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  color: #5f6574;
}

.news-updates-title__summary {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--news-text);
  letter-spacing: 0.02em;
}

.news-feed-section {
  position: relative;
  padding: 60px 0 64px;
}

.news-feed-section__mist {
  display: none;
}

.news-feed-section .container {
  position: relative;
  z-index: 1;
}

.news-filters {
  display: flex;
  align-items: center;
  gap: 56px;
  min-height: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.news-filters::-webkit-scrollbar {
  display: none;
}

.news-filter {
  position: relative;
  flex: 0 0 auto;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--news-text);
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.news-filter:hover {
  color: var(--news-primary);
}

.news-filter.is-active {
  min-width: 120px;
  background: #ffffff;
  color: var(--news-primary);
  box-shadow: 0 10px 24px rgba(100, 156, 231, 0.12);
}

.news-filter.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--news-primary);
}

.news-card-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 40px 38px;
}

.news-card {
  min-height: 412px;
  display: flex;
  flex-direction: column;
  background: var(--news-surface);
  border-radius: 24px;
  box-shadow: var(--news-shadow);
  overflow: hidden;
  outline: none;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-8px);
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(58, 120, 214, 0.14);
}

.news-card__media {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #e7f4ff;
}

.news-card__media--cover {
  isolation: isolate;
}

.news-card__media--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.42s ease;
}

.news-card__media-image,
.news-card__company-overlay,
.news-card__company-base,
.news-card__placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 15px 21px 16px;
}

.news-card__date {
  color: var(--news-primary);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
}

.news-card__title {
  margin: 0;
  color: var(--news-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.28s ease;
}

.news-card__meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--news-primary);
  transition: transform 0.28s ease, color 0.28s ease;
}

.news-card__category {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.news-card__arrow {
  width: 9.5px;
  height: 10px;
  flex: 0 0 auto;
}

.news-card__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-card:hover .news-card__media-image,
.news-card:hover .news-card__company-overlay,
.news-card:hover .news-card__company-base,
.news-card:hover .news-card__placeholder-image,
.news-card:focus-visible .news-card__media-image,
.news-card:focus-visible .news-card__company-overlay,
.news-card:focus-visible .news-card__company-base,
.news-card:focus-visible .news-card__placeholder-image {
  transform: scale(1.035);
}

.news-card:hover .news-card__media--cover::before,
.news-card:focus-visible .news-card__media--cover::before {
  transform: scale(1.035);
}

.news-card:hover .news-card__mower-image,
.news-card:focus-visible .news-card__mower-image {
  transform: scale(1.04);
}

.news-card:hover .news-card__title,
.news-card:focus-visible .news-card__title {
  color: #1c4f9f;
}

.news-card:hover .news-card__meta,
.news-card:focus-visible .news-card__meta {
  transform: translateX(4px);
}

.news-card__media--mower {
  background:
    radial-gradient(circle at 50% 100%, rgba(179, 223, 255, 0.75), rgba(179, 223, 255, 0) 48%),
    linear-gradient(180deg, #d5ebff 0%, #8fcbff 35%, #2994ff 100%);
}

.news-card__mower-title {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 224px;
  transform: translateX(-50%);
  margin: 0;
  color: #0c2d6c;
  font-size: 33px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: pre-line;
}

.news-card__mower-image {
  position: absolute;
  right: 18px;
  bottom: 27px;
  width: 224px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(25, 86, 170, 0.14));
  transition: transform 0.42s ease;
}

.news-card__media--company {
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.96) 0%, rgba(219, 239, 255, 0.96) 100%);
}

.news-card__company-base,
.news-card__company-overlay {
  position: absolute;
  inset: 0;
}

.news-card__media--placeholder {
  background: #f3f3f3;
}

.news-pagination-wrap {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.news-pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--news-muted);
}

.news-pagination__control,
.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.news-pagination__control:hover:not(:disabled),
.news-pagination__page:hover:not(.is-active) {
  color: var(--news-primary);
  transform: translateY(-1px);
}

.news-pagination__control:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-pagination__control svg {
  width: 13.54px;
  height: 13.54px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-pagination__control--double {
  gap: 1px;
}

.news-pagination__page.is-active {
  border-radius: 2px;
  background: var(--news-primary);
  color: #ffffff;
  font-weight: 500;
  transform: none;
}

.news-pagination-jump {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 1.2;
}

.news-pagination-jump__input {
  width: 57px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--news-muted);
  border-radius: 0;
  background: transparent;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  outline: none;
}

.news-pagination-jump__input:focus {
  border-bottom-color: var(--news-primary);
  color: var(--news-primary);
}

.news-pagination-jump__input::-webkit-outer-spin-button,
.news-pagination-jump__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.news-pagination-jump__input[type="number"] {
  -moz-appearance: textfield;
}

.news-pagination-jump__total {
  white-space: nowrap;
}

.news-pagination-wrap[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .news-updates-main {
    background: var(--news-bg);
  }

  .news-updates-hero {
    min-height: 360px;
  }

  .news-updates-hero__inner {
    min-height: 360px;
    padding-top: 104px;
  }

  .news-feed-section {
    padding-top: 48px;
  }

  .news-filters {
    gap: 20px;
  }

  .news-filter {
    min-width: 82px;
  }

  .news-filter.is-active {
    min-width: 108px;
  }

  .news-card-grid {
    justify-content: center;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 32px 28px;
  }
}

@media (max-width: 960px) {
  .news-card-grid {
    grid-template-columns: minmax(0, 420px);
  }

  .news-pagination-wrap {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .news-updates-hero {
    min-height: 312px;
  }

  .news-updates-hero__inner {
    min-height: 312px;
    padding: 106px 0 40px;
  }

  .news-updates-title h1 {
    font-size: 28px;
  }

  .news-updates-title__summary {
    font-size: 16px;
    line-height: 1.5;
  }

  .news-feed-section {
    padding: 40px 0 52px;
  }

  .news-filters {
    gap: 12px;
    padding-bottom: 2px;
  }

  .news-filter {
    min-width: 72px;
    font-size: 14px;
  }

  .news-filter.is-active {
    min-width: 88px;
  }

  .news-card-grid {
    margin-top: 28px;
  }

  .news-card {
    min-height: 380px;
  }

  .news-card__media {
    height: 236px;
  }

  .news-card__body {
    padding: 15px 18px 16px;
    gap: 10px;
  }

  .news-card__title {
    font-size: 16px;
  }

  .news-card__mower-title {
    top: 24px;
    width: 196px;
    font-size: 28px;
  }

  .news-card__mower-image {
    right: 12px;
    bottom: 18px;
    width: 190px;
  }

  .news-pagination {
    gap: 12px;
  }

  .news-pagination-jump {
    gap: 10px;
    font-size: 14px;
  }

  .news-pagination-jump__input {
    width: 48px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .news-updates-hero__inner {
    padding-top: 98px;
  }

  .news-updates-title h1 {
    font-size: 26px;
  }

  .news-updates-title__en {
    margin-top: 8px;
  }

  .news-filter {
    padding: 0 12px;
  }

  .news-card__media {
    height: 220px;
  }

  .news-card__title {
    font-size: 16px;
  }

  .news-card__mower-title {
    top: 20px;
    width: 174px;
    font-size: 24px;
  }

  .news-card__mower-image {
    width: 168px;
  }

  .news-pagination {
    gap: 10px;
  }

  .news-pagination__control,
  .news-pagination__page {
    font-size: 14px;
  }
}
