/* News listing (/news/, newsIndex). Layout and type from Figma Design node 28:251 (1280 px artboard).
   Content inset pl 208 / pr 88; featured 611 × 355 + 346 px copy; grid 3-up, 20 px columns / 40 px rows;
   band rgba(215,223,226,0.2). Header and footer are site chrome — not styled here. */

.news-index {
  color: var(--eve-color-text);
  background-color: #ffffff;
}

.news-index__container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 208px;
  padding-right: 88px;
}

/* —— Heading and accent line —— */
.news-index__head {
  padding-top: 44px;
}

.news-index__title {
  margin: 0;
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--eve-color-text);
}

.news-index__rule {
  width: 100%;
  margin-top: 20px;
  line-height: 0;
}

.news-index__rule-line {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* —— Filter toolbar —— */
.news-index__toolbar {
  margin: 20px 0 0;
  padding-bottom: 20px;
}

.news-index__filters-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 1.2;
  color: #000000;
}

.news-index__filters-icon {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--eve-color-text);
}

.news-index__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  margin: 0;
}

.news-index__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-index__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(72, 79, 81, 0.5);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--eve-color-text);
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.news-index__button:hover,
.news-index__button:focus-visible {
  border-color: var(--eve-color-green);
  color: var(--eve-color-green);
}

.news-index__button:focus-visible,
.news-index__search-input:focus-visible {
  outline: 2px solid var(--eve-color-green);
  outline-offset: 2px;
}

.news-index__search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-index__search-field {
  position: relative;
  display: block;
  width: 241px;
}

.news-index__search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(72, 79, 81, 0.5);
}

.news-index__search-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px 8px 40px;
  border: 1px solid rgba(72, 79, 81, 0.5);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--eve-color-text);
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.32px;
  -webkit-appearance: none;
  appearance: none;
}

.news-index__search-input::placeholder {
  color: rgba(72, 79, 81, 0.5);
  opacity: 1;
}

.news-index__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.news-index__button--search {
  font-family: var(--eve-font-body);
  font-size: 16px;
}

.news-index__empty {
  margin: 0 0 80px;
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 1.5;
}

/* —— Shared card parts —— */
.news-index__card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.news-index__date {
  display: block;
  font-family: var(--eve-font-body);
  font-size: 16px;
  line-height: 1.2;
  color: var(--eve-color-green);
}

.news-index__card-title {
  margin: 0;
  font-family: var(--eve-font-display-medium);
  font-weight: 500;
  line-height: 1.2;
  color: var(--eve-color-text);
}

.news-index__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-index__card-title a:hover,
.news-index__card-title a:focus-visible {
  color: var(--eve-color-green);
}

.news-index__media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-color: #e3e6e6;
}

.news-index__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-index__media:hover img {
  transform: scale(1.03);
}

.news-index__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eve-font-display-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--eve-color-green);
  text-decoration: none;
}

.news-index__more::after {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--eve-page-accent-arrow, url("/img/arrow-green.svg")) no-repeat center / contain;
  mask: var(--eve-page-accent-arrow, url("/img/arrow-green.svg")) no-repeat center / contain;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.news-index__more:hover::after,
.news-index__more:focus-visible::after {
  transform: rotate(-90deg) translateX(4px);
}

/* —— Featured article —— */
.news-index__featured {
  display: grid;
  grid-template-columns: minmax(0, 611fr) minmax(0, 346fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 20px;
}

.news-index__featured .news-index__media {
  height: 355px;
  min-height: 355px;
}

.news-index__featured-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 355px;
}

.news-index__featured .news-index__card-copy {
  flex: 1 1 auto;
  min-height: 0;
}

.news-index__featured-title {
  flex: 1 1 auto;
  font-size: 32px;
}

.news-index__featured .news-index__more {
  margin-top: auto;
}

/* —— Grid band —— */
.news-index__band {
  padding: 40px 0;
  background-color: rgba(215, 223, 226, 0.2);
}

.news-index__band .news-index__container {
  padding-left: 208px;
  padding-right: 88px;
}

.news-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-index__grid-item {
  display: flex;
  min-width: 0;
}

.news-index__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 27px;
}

.news-index__card .news-index__media {
  width: 100%;
  aspect-ratio: 315 / 274;
}

.news-index__card .news-index__card-title {
  font-size: 24px;
}

.news-index__card .news-index__card-copy {
  flex: 1 1 auto;
}

.news-index__card .news-index__more {
  margin-top: auto;
}

/* —— Pagination (not in Figma; keeps listing usable) —— */
.news-index__pagination {
  margin-top: 40px;
}

.news-index__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-index__pages .news-index__button {
  min-width: 37px;
  padding: 8px 14px;
}

.news-index__pages .news-index__button[aria-current="page"] {
  border-color: var(--eve-color-green);
  background-color: var(--eve-color-green);
  color: #ffffff;
}

/* —— Responsive —— */
@media (max-width: 1199px) {
  .news-index__container,
  .news-index__band .news-index__container {
    padding-left: 120px;
    padding-right: 50px;
  }
}

@media (max-width: 1023px) {
  .news-index__container,
  .news-index__band .news-index__container {
    padding-left: 50px;
    padding-right: 50px;
  }

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

@media (max-width: 850px) {
  .news-index__container,
  .news-index__band .news-index__container {
    padding-left: 20px;
    padding-right: 20px;
  }

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

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

  .news-index__featured .news-index__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 611 / 355;
  }

  .news-index__featured-body {
    min-height: 0;
  }

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

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

@media (max-width: 639px) {
  .news-index__title {
    font-size: 34px;
  }

  .news-index__search {
    width: 100%;
  }

  .news-index__search-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

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

  .news-index__card .news-index__card-title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-index__media img,
  .news-index__more::after,
  .news-index__button,
  .news-index__card-title a {
    transition: none;
  }

  .news-index__media:hover img,
  .news-index__more:hover::after,
  .news-index__more:focus-visible::after {
    transform: rotate(-90deg);
  }
}
