section.treatments-section {
  padding: 100px;
  padding-top: 0;
}

.treatments-cards-wrap {
  position: relative;
  padding: 20px 70px; /* reserves space for the arrows outside the card row */
}

h2.section-heading {
  font-size: 50px;
  font-weight: 700;
  margin: auto;
  width: 675px;
  height: 110px;
  line-height: normal;
}

.owl-stage {
  display: flex;
  align-items: stretch;
}

.owl-item {
  display: flex;
  height: auto;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;

  /* Glass background — the ONE and ONLY glass surface for the whole card */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 54.52%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 50.1%,
      rgba(255, 255, 255, 0.08) 100%
    );
  background-blend-mode: lighten, soft-light;

  box-shadow:
    8px 12px 9px -10px rgba(255, 255, 255, 0.9) inset,
    2px -1px 1px -2px rgba(179, 179, 179, 0.5) inset,
    -2px 1px 1px -2px rgba(179, 179, 179, 0.5) inset,
    -8px -12px 9px -10px rgba(255, 255, 255, 0.9) inset,
    0 4px 8px 0 rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.treatment-card__img {
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 20px 20px 0 20px; /* inset the image within the single glass panel */
}
.treatment-card__img img {
  width: 100%;
  height: 100%; /* fill the full aspect-ratio box, no gap left under the image */
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.treatment-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 24px 20px; /* reduced top padding, kept sides/bottom */
  text-align: center;
}

section.treatments-section .treatment-card__body.glass-card-bg {
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.treatment-card__body h4 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Arrows: absolutely positioned, vertically centered, flush to the
   left/right edges of the wrap — not stacked below the cards. */
.treatments-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* only the buttons themselves are clickable */
  z-index: 5;
}

/* Glass background treatment — same recipe as .white-glass-bg in global.css,
   reproduced here since Owl generates these buttons via JS (navText), so we
   can't attach the class directly in markup. */
.treatments-nav-arrows .owl-prev,
.treatments-nav-arrows .owl-next {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* reset native button chrome */
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 54.52%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 50.1%,
      rgba(255, 255, 255, 0.08) 100%
    );
  background-blend-mode: lighten, soft-light;

  box-shadow:
    8px 12px 9px -10px rgba(255, 255, 255, 0.9) inset,
    2px -1px 1px -2px rgba(179, 179, 179, 0.5) inset,
    -2px 1px 1px -2px rgba(179, 179, 179, 0.5) inset,
    -8px -12px 9px -10px rgba(255, 255, 255, 0.9) inset,
    0 4px 8px 0 rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
}

/* Gold hover state — matches .white-glass-bg-hover:hover */
.treatments-nav-arrows .owl-prev:hover,
.treatments-nav-arrows .owl-next:hover {
  background: rgba(251, 205, 21, 0.6);

  box-shadow:
    7px 12px 9px -14px #fff8d0 inset,
    2px -1px 1px -2px rgba(255, 248, 208, 0.5) inset,
    -2px 1px 1px -2px rgba(255, 248, 208, 0.5) inset,
    -7px -12px 9px -14px rgba(255, 248, 208, 0.9) inset;

  backdrop-filter: blur(20px);
  transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
}

.treatments-nav-arrows .owl-prev:focus,
.treatments-nav-arrows .owl-next:focus {
  outline: none;
}

/* Dots aren't part of this design — hide them, keep the markup for
   owl-carousel's internal bookkeeping. */
.treatments-nav-controls {
  margin-top: 30px;
}

.js-treatments-dots {
  display: none;
}

@media (max-width: 1200px) {
  section.treatments-section {
    padding: 70px 30px;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  section.treatments-section {
    padding: 50px 20px !important;
    padding-top: 0;
  }

  .treatments-cards-wrap {
    padding: 0 20px;
  }

  /* Desktop heading has a fixed width/height (675px / 110px) which
     causes overflow + overlap with cards below on small screens.
     Let it size naturally to the viewport instead. */
  h2.section-heading {
    width: 100%;
    height: auto;
    font-size: 28px;
    line-height: 1.3;
    padding: 0 20px;
  }

  /* Smaller inset padding around the image so the glass frame
     doesn't eat into limited mobile card width */
  .treatment-card__img {
    padding: 12px 12px 0 12px;
  }

  .treatment-card__img img {
    border-radius: 16px;
  }

  .treatment-card {
    border-radius: 20px;
  }

  .treatment-card__body {
    padding: 16px 18px;
  }

  .treatment-card__body h4 {
    font-size: 22px;
    line-height: 28px;
  }

  /* Arrows drop out of absolute positioning and sit in normal flow,
     centered below the card, side by side with a small gap. */
  .treatments-nav-arrows {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    pointer-events: auto;
  }

  .treatments-nav-arrows .owl-prev,
  .treatments-nav-arrows .owl-next {
    position: static;
    width: 36px;
    height: 36px;
  }

  /* Dots become visible again on mobile, centered under the arrows,
     with enough top margin so they never crowd/overlap the arrows above */
  .treatments-nav-controls {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .js-treatments-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
  }

  .js-treatments-dots .owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease-in-out;
  }

  .js-treatments-dots .owl-dot.active {
    background: #ffffff;
  }
}
