:root {
  --items-per-view: 6;
  --item-gap: 12px;
  --transition-speed: 950ms;
  --transition-ease: cubic-bezier(0.34, 1.25, 0.64, 1); /* slight overshoot then settle */
  --arrow-bg: #ffffff;
  --arrow-bg-hover: #f0f0f0;
  --arrow-color: #333;
  --arrow-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-wrap {
  padding: 0;
}

/* ================= CAROUSEL ================= */
.carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 56px; /* room for the side arrows */
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel__track {
  display: flex;
  align-items: center;
  will-change: transform;
}

.carousel__item {
  flex: 0 0 calc(100% / var(--items-per-view) - var(--item-gap));
  margin-inline-end: var(--item-gap); /* flips automatically in RTL */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__item img {
  margin: 0 auto;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.carousel__box {
  width: 100%;
  height: 220px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.carousel__box a {
  padding: 10px;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.carousel__box a img {
  height: 150px;
  transition: height 0.3s ease-out;
}
.carousel__box a h3 {
  font-size: calc(13px + (15 - 13) * 0.052166vw) !important;
  text-decoration: none !important;
  color: black;
}
.carousel__box a:hover {
  -webkit-text-decoration: underline img;
          text-decoration: underline img;
  text-decoration-height: 160px;
}
.carousel__box a:hover h3 {
  color: var(--dark_blue) !important;
  text-decoration: underline !important;
}

/* ================= ARROWS ================= */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--arrow-bg);
  border: 1px solid #e2e2e2;
  box-shadow: var(--arrow-shadow);
  color: var(--arrow-color);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel__arrow:hover {
  background: var(--arrow-bg-hover);
}

/* inset-inline-start = left in LTR, right in RTL (and vice versa) */
.carousel__arrow--prev {
  inset-inline-start: 0;
}

.carousel__arrow--next {
  inset-inline-end: 0;
}

/* ================= RESPONSIVE ================= */
/* Fewer visible items as the viewport narrows: 6 -> 5 -> 4 -> 3 -> 2 -> 1 */
@media (max-width: 1180px) {
  .carousel {
    --items-per-view: 5;
  }
}
@media (max-width: 980px) {
  .carousel {
    --items-per-view: 4;
    padding: 0 44px;
  }
}
@media (max-width: 760px) {
  .carousel {
    --items-per-view: 3;
    padding: 0 40px;
  }
}
@media (max-width: 560px) {
  .carousel {
    --items-per-view: 2;
    padding: 0 36px;
  }
}
@media (max-width: 400px) {
  .carousel {
    --items-per-view: 1;
    padding: 0 30px;
    --item-gap: 8px;
  }
}