/* Carousel layout only; card visuals come from the existing directory styles. */
.patient-carelines-carousel-section {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.carelines-carousel { position: relative; }
.carelines-viewport { width: 100%; overflow: hidden; }
.carelines-track.row {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: stretch;
  /* Bootstrap rows extend into their parent's gutters; cancel that here so
     overflow clipping never cuts off the first/last card corners. */
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition: transform .4s ease;
  will-change: transform;
}
.carelines-track > .carelines-card { min-width: 0; }
.carelines-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.carelines-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  width: 42px;
  height: 64px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background: #fff;
  color: #416347;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  font-size: 22px;
  cursor: pointer;
}
.carelines-prev { left: -2px; }
.carelines-next { right: -2px; }
.carelines-arrow:hover:not(:disabled) { background: #416347; color: #fff; }
.carelines-arrow:disabled { opacity: .35; cursor: not-allowed; }

.carelines-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}
.carelines-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9ded8;
  cursor: pointer;
}
.carelines-dots button.active { background: #527b55; }
.carelines-carousel--static .carelines-arrow,
.carelines-carousel--static + .carelines-dots { display: none; }
.carelines-carousel--static .carelines-track { justify-content: center; }
@media (max-width: 767px) {
  .patient-carelines-carousel-section { padding: 0 16px; }
  .carelines-arrow { width: 32px; height: 48px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .carelines-track { transition: none; }
}
