.treatments-block {
  margin: 2rem 0;
  min-height: clamp(420px, 50vw, 500px);
  overflow: hidden;
}

.treatments-carousel {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatments-carousel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  text-align: center;
  width: 100%;
}
.treatments-carousel-controls button {
  background-color: #ffffff;
  border: none;
  border: 1px solid #ddd;
  cursor: pointer;
  height: 30px;
  width: 60px;
  border-radius: 8px;
  margin: 0 0.5rem;
  transition: border-color 0.3s;
}
.treatments-carousel-controls button:hover {
  border-color: #ff5248;
}

.treatments-carousel-controls button.at-end {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.treatments-control-next::before {
  content: "›";
  font-size: 1.5rem;
  line-height: 1;
  content: "";
  display: inline-block;
  width: 20px;
  height: 13px;
  background-image: url('data:image/svg+xml,<svg width="21" height="8" viewBox="0 0 21 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 3.18198C0.223858 3.18198 0 3.40584 0 3.68198C0 3.95813 0.223858 4.18198 0.5 4.18198V3.68198V3.18198ZM20.8536 4.03554C21.0488 3.84028 21.0488 3.52369 20.8536 3.32843L17.6716 0.14645C17.4763 -0.0488121 17.1597 -0.0488121 16.9645 0.14645C16.7692 0.341712 16.7692 0.658295 16.9645 0.853557L19.7929 3.68198L16.9645 6.51041C16.7692 6.70567 16.7692 7.02226 16.9645 7.21752C17.1597 7.41278 17.4763 7.41278 17.6716 7.21752L20.8536 4.03554ZM0.5 3.68198V4.18198H20.5V3.68198V3.18198H0.5V3.68198Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}
.treatments-control-prev::before {
  content: "›";
  font-size: 1.5rem;
  line-height: 1;
  content: "";
  display: inline-block;
  width: 20px;
  height: 13px;
  background-image: url('data:image/svg+xml,<svg width="21" height="8" viewBox="0 0 21 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.5 4.18198C20.7761 4.18198 21 3.95813 21 3.68198C21 3.40584 20.7761 3.18198 20.5 3.18198L20.5 3.68198L20.5 4.18198ZM0.146447 3.32843C-0.0488155 3.52369 -0.0488156 3.84027 0.146447 4.03554L3.32843 7.21752C3.52369 7.41278 3.84027 7.41278 4.03553 7.21752C4.2308 7.02225 4.2308 6.70567 4.03553 6.51041L1.20711 3.68198L4.03553 0.853555C4.2308 0.658293 4.2308 0.341711 4.03553 0.146449C3.84027 -0.0488136 3.52369 -0.0488136 3.32843 0.146449L0.146447 3.32843ZM20.5 3.68198L20.5 3.18198L0.5 3.18198L0.5 3.68198L0.5 4.18198L20.5 4.18198L20.5 3.68198Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.treatment-item {
  flex: 0 0 240px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  cursor: pointer;
  width: 240px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  overflow: hidden;
}

.treatment-item-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 3.2;
}

.treatment-item-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.treatment-item-content {
  padding: 1rem;
}

.treatment-item-title {
  line-height: 1.2;
  margin: 0;
  text-decoration: none;
  font-size: 1.25rem;
}

.treatment-item-description {
  text-decoration: none;
  margin: 0;
  font-size: 0.9rem;
}
.treatment-item-readmore {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #ff5248;
  text-decoration: underline;
}
.treatment-item-link {
  text-decoration: none;
  color: inherit;
}

.treatments-block-content {
  padding-top: 40px;
}
.treatments-carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: auto;
}

.treatments-carousel-wrapper svg {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
}

.treatments-carousel-wrapper svg {
  position: absolute;
  top: 200px;
  user-select: none;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
}

.draggable {
  position: static;
  top: 200px;
  width: 100%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive styles */
@media (max-width: 600px) {
  .treatment-item {
    width: 240px;
    flex: 0 0 240px;
  }
}
