/*
 * Alf Theme — Home Page: Awards
 * Figma nodes: 667:7416 (desktop) · 668:8729 (mobile)
 *
 * Beige section: heading + a horizontally-scrolling row of fixed-width
 * award cards. Native scroll (with scroll-snap) drives the carousel —
 * the prev/next arrows just scroll the track by one card width, so any
 * number of admin-added cards works without per-breakpoint paging logic.
 */

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

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

.awards__heading {
  flex-shrink: 0;
  width: 282px;
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  margin: 0;
  line-height: normal;
}

.awards__heading .accent {
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   LIST + CAROUSEL
   ═══════════════════════════════════════════════════════════════════ */
.awards__list {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-desktop);
}

.awards__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.awards__card {
  flex: 0 0 285px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-grey);
}

.awards__card-image {
  flex-shrink: 0;
  width: 189px;
  height: 228px;
  overflow: hidden;
  background-color: var(--color-beige);
}

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

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

.awards__card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.awards__card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.awards__card-org {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0;
  line-height: normal;
}

.awards__card-subtitle {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-grey);
  margin: 0;
  line-height: normal;
}

.awards__card-body {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  margin: 0;
  line-height: normal;
}

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

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

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

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

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

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

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

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

  .awards__wrap {
    flex-direction: column;
    gap: var(--section-gap-mobile);
  }

  .awards__heading {
    width: 100%;
    font-size: var(--font-size-h2-mobile);
  }
}
