/* ===== YOST SUGGESTED CAROUSEL ===== */

/* Section wrapper — needs visible overflow so arrows can poke out */
.yost-suggested-section {
  overflow: visible;
}

.yost-suggested-carousel {
  position: relative;
  /* Horizontal margin to make room for the arrows sitting outside the track */
  padding: 0 48px;
}

/* Track — clip slides to their container */
.yost-suggested-carousel .splide__track {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* Slides — equal-height cards */
.yost-suggested-carousel .splide__slide {
  height: auto;
}

.yost-suggested-carousel .splide__slide .card-wrapper {
  height: 100%;
}

.yost-suggested-carousel .splide__slide a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.yost-suggested-carousel .splide__slide .card-content {
  flex: 1;
}

/* ── Arrow buttons ── */
.yost-suggested-carousel .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-color);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  z-index: 10;
  padding: 0;
}

.yost-suggested-carousel .splide__arrow:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 78, 203, 0.15);
  transform: translateY(-50%) scale(1.08);
}

.yost-suggested-carousel .splide__arrow:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.yost-suggested-carousel .splide__arrow--prev {
  left: 0;
}

/* Splide core CSS non include il flip — la freccia di default punta a destra */
.yost-suggested-carousel .splide__arrow--prev svg {
  transform: scaleX(-1);
}

.yost-suggested-carousel .splide__arrow--next {
  right: 0;
}

.yost-suggested-carousel .splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-color);
  transition: fill var(--transition-base);
}

.yost-suggested-carousel .splide__arrow:hover svg {
  fill: var(--accent-color);
}

.yost-suggested-carousel .splide__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.yost-suggested-carousel .splide__arrow:disabled:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%) scale(1);
}

/* ── Mobile ── */
@media (max-width: 576px) {
  .yost-suggested-carousel {
    padding: 0 36px;
  }

  .yost-suggested-carousel .splide__arrow {
    width: 32px;
    height: 32px;
  }

  .yost-suggested-carousel .splide__arrow svg {
    width: 13px;
    height: 13px;
  }

  /* Hide the <hr> divider above the title on mobile — reduces noise */
  .yost-suggested-section > hr {
    display: none;
  }
}
