/* Product Slider (SplideJS) – full-bleed image cards with text overlay */
/* Slider “peek” sizing */
.ps-section {
    --ps-gap: 12px;
    --ps-radius: 24px;
    /* about 3.2 cards per view on desktop → 3 full + a peek */
    --ps-card-w: clamp(280px, 27.5vw, 380px);
    position: relative;
    width: 100%;
}

.ps-splide {
  padding: 0 12px;
  overflow-x: hidden;
  overflow-y: visible;
}

@supports (overflow-x: clip) {
  .ps-splide {
    overflow-x: clip;
  }
}

/* Controls how many cards fit; tweak vw until you like the peek size */
.ps-splide .splide__slide {
    width: var(--ps-card-w);
}

/* Usual card styling … (keep your existing rules) */

@media (max-width: 1024px) {
    /* ~1.15 per view → 1 full + peek */
    .ps-section {
        --ps-card-w: 320px;
    }
}


/* Splide basics */
.ps-splide .splide__slide {
    height: auto;
}

/* Card */
.ps-card {
    position: relative;
    width: 360px;
    height: 480px;
    border-radius: var(--ps-radius);
    overflow: hidden;
}

@media (max-width: 1024px) {
	.ps-card {
    	width: 320px;
	}
}

/* adjust if you want more/less height */

/* Link wrapper fills the card; text is clickable */
.ps-card__link {
    position: relative;
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.ps-card__link:hover, .ps-card__link:focus {
    color: #F3F3F3;
}

/* Media fills the entire card */
.ps-card__media {
    position: absolute;
    inset: 0;
}

.ps-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Darken the bottom for readability */
.ps-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42.81%, rgba(0, 0, 0, 0.9) 94.51%);
    pointer-events: none;
}

/* Text overlay on the image */
.ps-card__body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2; /* above scrim */
}

.ps-card__title {
    font-family: Montserat, sans-serif;
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
}

.ps-card__excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
}

.ps-card__cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ps-card__icon {
    width: 18px;
    height: 18px;
}

/* Controls row: progress bar + desktop nav arrows */
.ps-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 64px 12px 0;
}

/* Progress bar: 4px, #08193D */
.ps-progress {
    flex: 1;
    background: #EEEEEE;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 4px;
    overflow: hidden;
}

/* Nav arrows: hidden on mobile, visible on desktop */
.ps-nav {
    display: none;
    flex-shrink: 0;
    gap: 8px;
}

@media (min-width: 1025px) {
    .ps-nav {
        display: flex;
        align-items: center;
    }
}

.ps-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #08193D;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ps-nav__btn:hover:not(:disabled) {
    background: #0d2a5e;
}

.ps-nav__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.ps-nav__btn svg {
    width: 18px;
    height: 18px;
}

.ps-progress__bar {
    height: 100%;
    width: 0;
    background: #08193D;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

@media (hover: hover) {
  .ps-card:hover {
    transform: scale(1.10);
    z-index: 3;
  }
}

.ps-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.4s ease;
  will-change: transform;
}

.ps-splide .splide__track {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

@supports (overflow-x: clip) {
  .ps-splide .splide__track {
    overflow-x: clip !important;
  }
}
