/* ===== Reviews Slider ===== */
.cases-section {
  max-width: 1280px;
  margin: 0 auto;
}

/* --- SPLIDE ROOT --- */
.cases-slider.splide {
  position: relative;
  padding-bottom: 26px; /* room for dots + arrows */
  display: flex;
  flex-direction: column;
}
.cases-slider .splide__track {
  overflow: visible; /* so shadows/rounded corners aren't clipped */
  order: 1;
}
.cases-slider .splide__list {
  align-items: stretch;
}
.cases-slider .splide__slide {
  display: flex;
  align-items: stretch;
}

/* --- CARDS --- */
.case-card,
.testimonial-card {
  background: #023A51;               /* teal card color */
  color: #ffffff;
  border-radius: 12px;
  padding: 36px 32px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Narrow "result" cards */
.case-card {
  width: 360px;
  min-height: 320px;
}
/* Wide testimonial cards */
.testimonial-card {
  width: 740px;
  min-height: 320px;
}
.case-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  font-family: 'Manrope' !important;
  line-height: 90% !important;
}
.case-type {
  font-size: 16px;
  margin: 0;
}
.case-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none !important;
}
.case-cta svg {
  display: block;
  transition: background-color 0.2s ease, fill 0.2s ease;
}
.case-cta svg rect {
  fill: #FDFEFF;                 /* default box */
  transition: fill 0.2s ease;
}
.case-cta svg path {
  fill: #04222D;                 /* arrow color */
}
.case-cta:hover > span {
  color: #fff;
}
.case-cta:hover svg rect {
  fill: #12856C;                 /* hover box color */
}
.case-cta:hover svg path {
  fill: #fff;
}

/* Testimonial content */
.testimonial-stars {
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: #FFB400;
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* --- FOOTER TEXT UNDER SLIDER --- */
.results-note {
  margin: 8px 0 0 4px;
  font-size: 14px;
  color: #555E68;
}

/* --- PAGINATION DOTS --- */
.cases-slider .splide__pagination {
  position: relative;
  order: 3;
  padding-left: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: fit-content;
  margin-top: -20px;
}
.cases-slider .splide__pagination__page {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D0D3D5;           /* inactive dot */
  opacity: 1;
  margin: 0;
  transform: none;
  box-shadow: none;
}
.cases-slider .splide__pagination__page.is-active {
  background: #12856C;           /* active dot */
}

/* --- ARROWS (CIRCLES RIGHT) --- */
.cases-slider .splide__arrows {
  position: relative;
  display: flex;
  gap: 24px;
  pointer-events: auto;
  order: 2;
  max-width: fit-content;
  margin-right: 0;
  margin-left: auto;
  margin-top: 20px;
}
@media (max-width: 1380px) {
  .cases-slider .splide__arrows {
    margin-left: calc(100vw - 180px);
    margin-right: unset;
  }
}
/* override Splide default absolute positioning */
.cases-slider .splide__arrow {
  position: relative;              /* let flexbox place them */
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #023A51;           /* teal circles */
  opacity: 1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cases-slider .splide__arrow svg {
  display: none;
}
/* Self-contained CSS chevrons (no external SVG files needed) */
.cases-slider .splide__arrow--prev:before,
.cases-slider .splide__arrow--next:before {
  content: '';
  width: 11px;
  height: 11px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  display: block;
}
.cases-slider .splide__arrow--prev:before {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.cases-slider .splide__arrow--next:before {
  transform: rotate(45deg);
  margin-right: 4px;
}
.cases-slider .splide__arrow:hover {
  cursor: pointer;
  background: #12856C;
}
.cases-slider .splide__arrow:disabled {
  opacity: 0.4;
  cursor: default;
  filter: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .case-card,
  .testimonial-card {
    width: 80vw;
  }
  .cases-slider .splide__pagination {
    left: 0px;
  }
  .cases-slider .splide__arrows {
    right: 0px;
  }
}
@media (max-width: 640px) {
  .cases-slider .splide__list { align-items: flex-start; }
  .cases-slider .splide__slide { display: block; width: 100% !important; }
  .case-card,
  .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: unset;
  }
  .cases-slider .splide__slide {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .cases-slider .splide__track {
    overflow: hidden !important;
    min-height: 380px;
  }
  .cases-slider.splide {
    padding-bottom: 80px;
  }
  .cases-slider .splide__pagination {
    bottom: 18px;
    margin-top: 0;
  }
  .cases-slider .splide__arrows {
    margin-top: 16px;
    margin-left: calc(50vw + 30px);
    margin-right: 0;
    left: auto;
    width: 50vw;
  }
}
#cases-splide .testimonial-name {
  margin-bottom: unset;
}
