/*
 * Alf Theme — Home Page: News
 * Figma nodes: 667:7484 (desktop) · 668:8772 (mobile)
 *
 * Beige section: heading + subtitle, then a horizontally-scrolling row of
 * fixed-width article cards — same native-scroll carousel technique as
 * awards.css (prev/next just scroll the track by one card width).
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.news {
  background-color: var(--color-beige);
  padding: var(--section-pad-desktop) var(--section-pad-x);
}

.news__wrap {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-desktop);
  align-items: flex-start;
}

.news__header {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-desktop);
  width: 100%;
}

.news__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  margin: 0;
  line-height: normal;
}

.news__sub {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
  color: var(--color-dark);
  margin: 0;
  line-height: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════════════════════ */
.news__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news__track::-webkit-scrollbar {
  display: none;
}

.news__card {
  flex: 0 0 400px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
  padding: 32px 16px;
  border: 1px solid #e1e1e1;
  overflow: hidden;
}

.news__card:first-child .news__card-headline {
  color: var(--color-primary);
  font-weight: var(--font-weight-light);
}

.news__card-image {
  flex-shrink: 0;
  width: 100%;
  height: 230px;
}

.news__card-image img,
.news__card-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news__card-image-placeholder {
  background-color: var(--color-grey);
}

.news__card-headline {
  width: 100%;
  min-height: 100px;
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  margin: 0;
  line-height: normal;
}

.news__card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.news__card-category,
.news__card-date {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-light);
  color: var(--color-grey);
  white-space: nowrap;
}

.news__card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

/* ── Prev/next arrows ──────────────────────────────────────────────── */
.news__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.news__arrow:hover,
.news__arrow:focus-visible {
  opacity: 0.8;
}

.news__arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

.news__arrow--prev {
  background-color: var(--color-bg);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.news__arrow--next {
  background-color: var(--color-primary);
  border: none;
  color: var(--color-white);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .news {
    padding: var(--section-pad-tab-landscape) 60px;
  }

  .news__card {
    flex: 0 0 260px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .news {
    padding: var(--spacing-between-sections-mobile) 16px;
  }

  .news__sub {
    font-weight: var(--font-weight-light);
  }

  .news__card {
    flex: 0 0 calc(100% - 32px);
  }
}
