/* Home News — static 3-column grid from verified Eve homepage #section9.
   No carousel, fullPage, or invented interactions. */

.home-news {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  color: var(--eve-color-text);
  background-color: #ffffff;
}

.home-news__wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 100px 0 0;
}

.home-news__align {
  width: 100%;
}

.home-news__headline-line {
  display: inline-block;
  margin: 0;
  padding-left: 100px;
  height: 50px;
  font-family: var(--eve-font-display-medium);
}

.home-news__headline-line.violet {
  background: url("/img/mini-line-violet.svg") no-repeat left 26px;
}

.home-news__subtitle {
  display: inline-block;
  margin: 0;
  text-transform: uppercase;
  font-family: var(--eve-font-display-medium);
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 30px;
  vertical-align: top;
  color: var(--eve-color-violet);
}

.home-news__main {
  padding-left: 100px;
  box-sizing: border-box;
}

.home-news__items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 15px 0 35px;
  padding: 0;
  list-style: none;
}

.home-news__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.home-news__card {
  display: block;
  color: var(--eve-color-text);
  text-decoration: none;
}

.home-news__card:hover,
.home-news__card:focus-visible {
  color: var(--eve-color-text);
}

.home-news__thumb {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 18px;
}

.home-news__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  border-radius: 6px;
}

.home-news__content {
  display: block;
  text-align: left;
}

.home-news__item h3 {
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  color: var(--eve-color-text);
}

/* Card hover (Figma "Design" file: Frame 2, node 2:2 → Frame 3, node 2:7, prototype hover with Smart Animate):
   a 34px strip under the title. At rest its 2px #7855d7 line is 0 wide at the left and the purple arrow
   (img/news-card-arrow.svg, 16 × 14) sits hidden at the left end; on hover the line grows to the full width while the
   arrow slides along it to the right end (1px in, 1px from the top) and fades in, and both reverse on leave.
   Timing: 0.3s ease-out (Smart Animate's default; the prototype's own timing is not exposed by the Figma API).
   The strip is always reserved (20px under the title, from the h3 margin) so the hover does not move anything; it is
   pushed to the card's bottom, so the lines in one row line up. Linked cards only; desktop (>700px). */
@media (min-width: 701px) {
  .home-news__item {
    display: flex;
  }

  a.home-news__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* The strip and its line. */
  a.home-news__card::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: 34px;
    margin-top: auto;
    background: linear-gradient(#7855d7, #7855d7) no-repeat left bottom / 0% 2px;
    transition: background-size 0.3s ease-out;
  }

  /* The arrow, at the top of the strip. */
  a.home-news__card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 19px;
    width: 16px;
    height: 14px;
    background: url("/img/news-card-arrow.svg") no-repeat center / 16px 14px;
    opacity: 0;
    transition: left 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
  }
}

@media (min-width: 701px) and (hover: hover) {
  a.home-news__card:hover::after {
    background-size: 100% 2px;
  }

  a.home-news__card:hover::before {
    left: calc(100% - 17px);
    opacity: 1;
  }
}

@media (min-width: 701px) {
  a.home-news__card:focus-visible::after {
    background-size: 100% 2px;
  }

  a.home-news__card:focus-visible::before {
    left: calc(100% - 17px);
    opacity: 1;
  }
}

@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
  a.home-news__card::after,
  a.home-news__card::before {
    transition: none;
  }
}

.home-news__view-all {
  text-align: right;
}

.home-news__view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--eve-color-violet);
  font-family: var(--eve-font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: lowercase;
  text-decoration: none;
}

.home-news__view-all .cta-arrow {
  width: 15px;
  height: 16px;
  display: inline-block;
  transform: rotate(270deg);
  background: url("/img/arrow-purple.svg") no-repeat center / 14px;
}

/* Homepage news: horizontal compact cards ≤700px */
@media (max-width: 700px) {
  .home-news {
    height: 100vh;
    min-height: 100vh;
  }

  .home-news__wrap {
    padding: 0 25px;
    height: 100%;
  }

  .home-news__headline-line {
    padding-left: 67px;
    margin-left: -60px;
  }

  .home-news__subtitle {
    font-size: 15px;
  }

  .home-news__main {
    padding-left: 0;
  }

  .home-news__items {
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 35px;
  }

  .home-news__card {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }

  .home-news__thumb {
    flex: 0 0 100px;
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 0;
  }

  .home-news__thumb img {
    border-radius: 8px;
  }

  .home-news__content {
    flex: 1 1 0%;
    display: flex;
    align-items: flex-start;
    min-width: 0;
  }

  .home-news__item h3 {
    padding: 0;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 20px;
  }
}

/* Single column grid ≤639px (reference .news-grid) */
@media (max-width: 639px) {
  .home-news__items {
    grid-template-columns: 1fr;
  }
}
