/* ── Variables ── */
.ar-section {
  --ar-bg: #f6efdf;
  --ar-navy: #17407d;
  --ar-blue: #377ee4;
  --ar-white: #ffffff;
  --ar-divider: rgba(255, 255, 255, 0.45);

  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background-color: var(--ar-bg);
  padding: 24px;
  box-sizing: border-box;
}

/* ── Container ── */
.ar-section__container {
  background-color: var(--ar-navy);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  overflow: hidden;
}

/* ── Header ── */
.ar-section__header {
  padding-block: 32px;
}

.ar-section__title {
  margin: 0;
  color: var(--ar-white);
  font-family: Outfit, sans-serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.64px;
  text-transform: uppercase;
}

/* ── Divider ── */
.ar-section__divider {
  width: 100%;
  height: 1px;
  background-color: var(--ar-divider);
}

/* ── Carousel (desktop) ── */
.ar-section__carousel {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

/* ── Arrow buttons ── */
.ar-section__arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background-color: var(--ar-blue);
  color: var(--ar-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ar-section__arrow:hover {
  filter: brightness(1.1);
}

.ar-section__arrow--disabled {
  background-color: transparent;
  border: 0.7px solid #cbc4b5;
  color: #cbc4b5;
  cursor: default;
  pointer-events: none;
}

.ar-section__arrow--left {
  margin-right: 16px;
}

.ar-section__arrow--right {
  margin-left: 16px;
}

/* ── Track ── */
.ar-section__track {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ar-section__track::-webkit-scrollbar {
  display: none;
}

/* ── Card ── */
.ar-section__card {
  flex: 0 0 25%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.ar-section__card-image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ar-section__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-section__card-image--placeholder {
  background: rgba(255, 255, 255, 0.08);
}

a.ar-section__card,
a.ar-section__card:visited {
  color: inherit;
  text-decoration: none;
}

.ar-section__card--clickable {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ar-section__card--clickable:hover,
.ar-section__card--clickable:focus-visible {
  transform: translateY(-2px);
}

.ar-section__card--clickable:hover .ar-section__card-image,
.ar-section__card--clickable:focus-visible .ar-section__card-image {
  opacity: 0.92;
}

.ar-section__card--clickable:focus-visible {
  outline: 2px solid var(--ar-blue);
  outline-offset: 4px;
}

.ar-section__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ar-section__year {
  margin: 0;
  color: var(--ar-white);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 25px;
}

.ar-section__name {
  margin: 0;
  color: var(--ar-white);
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Mobile nav (hidden on desktop) ── */
.ar-section__nav-mobile {
  display: none;
}

/* ══════════════════════════════════════════
   Mobile  (≤ 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .ar-section {
    padding: 24px 12px;
  }

  .ar-section__container {
    padding: 48px 24px;
    gap: 24px;
  }

  .ar-section__header {
    padding-block: 0;
  }

  .ar-section__title {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.32px;
  }

  /* Hide desktop arrows inside carousel */
  .ar-section__carousel > .ar-section__arrow {
    display: none;
  }

  .ar-section__track {
    gap: 16px;
  }

  .ar-section__card {
    flex: 1 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
    padding: 0;
  }

  /* Show mobile nav */
  .ar-section__nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
