/* ============================================================
   New Slider - Patient Experience Slider
   Modular, Responsive (Desktop, Tablet, Mobile)
   Card Dimensions: 332px x 516px, 16px Radius
   ============================================================ */
.patient-slider {
  width: 100%;
  padding: 24px 0 36px 26px;
  overflow: hidden;
  background: #fdf8f1;
  color: #040dc0;
  font-family: "Sofia Pro VAR", sans-serif;
  box-sizing: border-box;
}

.patient-slider *,
.patient-slider *::before,
.patient-slider *::after {
  box-sizing: border-box;
}

/* Heading — Desktop */
.patient-heading {
  width: 100%;
  max-width: 1400px;
  padding-right: 26px;
  margin-bottom: 24px;
}

.patient-heading p,
.patient-heading h1,
.patient-heading h2,
.patient-heading h3,
.patient-heading h4,
.patient-heading div {
  margin: 0;
  font-family: "Sofia Pro VAR", sans-serif;
  font-size: 48px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #040dc0;
}

.patient-heading span {
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #040dc0;
}

/* Horizontal slider viewport */
.patient-slider-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.patient-slider-viewport::-webkit-scrollbar {
  display: none;
}

.patient-slider-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  transition: transform 0.45s ease;
  will-change: transform;
}

/* Shared card sizing (width: 332px, height: 516px, radius: 16px) */
.patient-card {
  width: 332px;
  height: 516px;
  flex: 0 0 332px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

/* Testimonial card */
.patient-text-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: #ffffff;
}

.patient-text-card p {
  margin: 0;
  color: #040dc0;
  font-family: "Sofia Pro VAR", sans-serif;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.patient-text-card small {
  display: block;
  margin-top: 16px;
  color: #040dc0;
  font-family: "Sofia Pro VAR", sans-serif;
  font-size: 14px;
  font-weight: 708;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Image / Video card */
.patient-image-card {
  background: #cdd9e9;
  position: relative;
}

.patient-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.patient-image-card a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Video play button */
.patient-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  z-index: 2;
}

.patient-play-button:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(1.08);
}

.patient-play-button svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

/* Navigation controls */
.patient-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 26px 0 0;
}

.patient-slider-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #040dc0;
  border-radius: 50%;
  background: transparent;
  color: #040dc0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.patient-slider-controls button:hover:not(:disabled) {
  background: #040dc0;
  color: #ffffff;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .patient-slider {
    padding: 20px 0 30px 24px;
  }

  .patient-heading {
    padding-right: 24px;
    margin-bottom: 20px;
  }

  .patient-heading p,
  .patient-heading h1,
  .patient-heading h2,
  .patient-heading h3,
  .patient-heading h4,
  .patient-heading div,
  .patient-heading span {
    font-size: 36px;
    line-height: 1.2;
  }

  .patient-card {
    width: 230px;
    height: 340px;
    flex-basis: 230px;
  }

  .patient-text-card {
    padding: 20px;
  }

  .patient-text-card p {
    font-size: 18px;
  }
}

/* Mobile — matching reference */
@media (max-width: 767px) {
  .patient-slider {
    padding: 10px 0 36px 18px;
    background: #fdf8f1;
  }

  .patient-heading {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    margin-bottom: 26px;
  }

  .patient-heading p,
  .patient-heading h1,
  .patient-heading h2,
  .patient-heading h3,
  .patient-heading h4,
  .patient-heading div {
    margin: 0;
    font-family: "Sofia Pro VAR", sans-serif;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #040dc0;
  }

  .patient-heading span {
    font-family: "Fraunces", serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #040dc0;
  }

  .patient-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .patient-slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .patient-slider-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: max-content;
  }

  .patient-card {
    width: 171px;
    height: 205px;
    flex: 0 0 171px;
    border-radius: 8px;
  }

  .patient-text-card {
    padding: 14px 16px;
    background: #ffffff;
  }

  .patient-text-card p {
    margin: 0;
    font-family: "Sofia Pro VAR", sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #040dc0;
  }

  .patient-text-card small {
    margin-top: 12px;
    font-family: "Sofia Pro VAR", sans-serif;
    font-size: 14px;
    font-weight: 591;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #906941;
  }

  .patient-image-card {
    width: 171px;
    height: 205px;
    flex-basis: 171px;
    background: #cdd9e9;
  }

  .patient-image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .patient-slider-track {
    transition: none;
  }
}
