.therapy-services-carousel {
  position: relative;
  width: var(--vw);
  margin-left: var(--bleed-margin);
  overflow: hidden;
  min-height: 0;
  padding: 88px 0 64px;
  background: #ffffff;
}

.therapy-services-carousel__butterfly {
  position: absolute;
  left: max(16px, calc((var(--vw) - 1290px) / 2 - 180px));
  top: 463px;
  width: 407px;
  height: auto;
  transform: rotate(26deg);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.therapy-services-carousel__inner {
  width: min(1290px, calc(var(--vw) - 48px));
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.therapy-services-carousel__content {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  width: min(850px, 100%);
  margin: 0 auto;
}

.therapy-services-carousel__eyebrow {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.216px;
  text-transform: uppercase;
  color: #4a5565;
  font-family: "Nunito", sans-serif;
}

.therapy-services-carousel__title {
  margin: 0;
  font-size: 2.9375rem;
  line-height: 1.1;
  font-weight: 400;
  color: #4a5565;
  font-family: "Nunito", sans-serif;
}

.therapy-services-carousel__body {
  width: 100%;
  max-width: 100%;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: #101828;
  margin: 0;
  font-family: "Nunito", sans-serif;
}

.therapy-services-carousel__accordion {
  width: 100vw;
  max-width: none;
  min-width: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
}

@media (min-width: 768px) {
  .therapy-services-carousel__accordion .image-accordion__label--compact {
    left: 26px;
    top: auto;
    bottom: 28px;
    width: auto;
    max-width: calc(100% - 84px);
    max-height: calc(100% - 56px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: none;
    white-space: normal;
    line-height: 1.05;
  }
}

@media (min-width: 768px) {
  .therapy-services-carousel__accordion .image-accordion__card {
    isolation: isolate;
    background-image: none;
    background-color: #888;
  }

  .therapy-services-carousel__accordion .image-accordion__card::before {
    z-index: 1;
    background:
      linear-gradient(to bottom, transparent, var(--card-color)),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  }

  .therapy-services-carousel__accordion .image-accordion__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--card-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 220ms ease;
  }

  .therapy-services-carousel__accordion .image-accordion__card.is-active::after {
    background-image: var(--card-image-expanded, var(--card-image, none));
  }
}

@media (hover: hover) and (pointer: fine) {
  .therapy-services-carousel__accordion .image-accordion__card {
    transition: width 260ms ease, flex-basis 260ms ease;
  }

  .therapy-services-carousel__accordion .image-accordion__card:hover,
  .therapy-services-carousel__accordion .image-accordion__card.is-active:hover {
    transform: none;
  }

  .therapy-services-carousel__accordion .image-accordion__card:hover::after,
  .therapy-services-carousel__accordion .image-accordion__card.is-active:hover::after {
    transform: scale(1.08);
  }
}

@media (max-width: 1400px) {
  .therapy-services-carousel__inner {
    width: min(100%, calc(100% - 48px));
  }
}

@media (max-width: 700px) {
  .therapy-services-carousel {
    min-height: 0;
    padding: 56px 0 40px;
  }

  .therapy-services-carousel__butterfly {
    left: 12px;
    top: 330px;
    width: 180px;
    transform: rotate(16deg);
    opacity: 0.35;
  }

  .therapy-services-carousel__inner {
    gap: 32px;
    width: min(100%, calc(100% - 32px));
  }

  .therapy-services-carousel__title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .therapy-services-carousel__accordion {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Grid variant ─────────────────────────────────────────────────────────── */

.therapy-services-carousel--grid {
  position: relative;
  overflow: visible;
}

.therapy-services-carousel--grid .therapy-services-carousel__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.therapy-services-carousel__grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tsc-grid-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tsc-grid-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.tsc-grid-card__icon {
  width: 48px;
  height: 48px;
}

.tsc-grid-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tsc-grid-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  color: var(--tc-color-heading, #1a1a2e);
}

.tsc-grid-card__desc {
  font-size: 0.9375rem;
  color: var(--tc-color-body, #4a4a5a);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .therapy-services-carousel__grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .therapy-services-carousel__grid-cards {
    grid-template-columns: 1fr;
  }
}
