#latest-news {
  scroll-margin-top: var(--nav-offset, 80px);
}

.latest-news {
  padding: 0;
  background: #ffffff;
}

.latest-news--page {
  min-height: auto;
}

.latest-news--page::before {
  display: none;
}

.latest-news--page .latest-news__content {
  padding: calc(var(--nav-offset, 80px) + 48px) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-left, 0px)) calc(120px + var(--safe-bottom, 0px)) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-right, 0px));
}

@media (max-width: 768px) {
  .latest-news--page .latest-news__content {
    padding: calc(var(--nav-offset, 68px) + 40px) calc(clamp(24px, 5vw, 32px) + var(--safe-left, 0px)) calc(96px + var(--safe-bottom, 0px)) calc(clamp(24px, 5vw, 32px) + var(--safe-right, 0px));
  }
}

@media (max-width: 480px) {
  .latest-news--page .latest-news__content {
    padding: calc(var(--nav-offset, 64px) + 32px) calc(var(--page-gutter) + var(--safe-left, 0px)) calc(72px + var(--safe-bottom, 0px)) calc(var(--page-gutter) + var(--safe-right, 0px));
  }
}

.latest-news__content {
  width: 100%;
  padding: 120px clamp(20px, 5vw, 80px);
}

.latest-news__header {
  margin-bottom: 0;
}

.latest-news--page .latest-news__title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.latest-news--page .latest-news__title::after {
  content: '';
  flex-basis: 100%;
  width: 100%;
  height: 1px;
  margin-top: clamp(14px, 1.8vw, 20px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.04) 75%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.latest-news--page .latest-news__title.reveal--title.is-visible::after {
  transform: scaleX(1);
}

.latest-news__title .title-line {
  display: inline;
}

.latest-news__title {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.35em;
  text-align: left;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 2px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.latest-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.latest-news__item {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 16px);
  padding: 0 0 clamp(24px, 3vw, 32px);
  background: transparent;
  border: none;
  border-radius: 0;
  transition: opacity 0.3s ease;
}

.latest-news__item-header {
  width: 100%;
}

.latest-news__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.latest-news__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-news__item:hover {
  background: transparent;
  transform: none;
}

.latest-news__item:hover .latest-news__heading {
  opacity: 0.68;
}

.latest-news__heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.9);
  margin: 0;
  line-height: 1.15;
  min-height: calc(2 * 1.15em);
  transition: opacity 0.3s ease;
}

.latest-news__date {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin: 0 0 clamp(10px, 1.2vw, 14px);
  min-height: calc(1.5 * 1em);
}

.latest-news__text {
  flex: 1;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
  margin: 0;
}

.latest-news__read-more {
  margin-top: auto;
  padding-top: clamp(8px, 1vw, 12px);
}

/* 1040px keeps every iPad portrait width (744–1032) on the two-column grid. */
@media (max-width: 1040px) {
  .latest-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 769px) and (max-width: 1040px) {
  .latest-news__text {
    font-size: 15px;
    line-height: 1.68;
  }
}

@media (max-width: 768px) {
  .latest-news__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .latest-news__heading {
    min-height: auto;
  }

  /* Single column, so the card copy gets full body size. */
  .latest-news__text {
    font-size: 16px;
    line-height: 1.72;
  }
}

@media (max-width: 480px) {
  .latest-news__grid {
    gap: 36px;
  }
}
