/* Treatment Slider Section
   Desktop 1440: pad 120/100, slide 276, image 260, gap 24
   Mobile 375: 2-col grid 155 / gap 25, image 140
   Note: avoid global class names like .section-header (conflicts with single.css)
*/

.treatment-slider-section {
  width: 100%;
  background-color: #f3f3f3;
  box-sizing: border-box;
  overflow: hidden;
}

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

.treatment-slider-section .tss-inner {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  padding: 40px 20px;
  gap: 32px;
}

.treatment-slider-section .tss-header {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: transparent;
  padding: 0;
}

.treatment-slider-section .tss-heading {
  margin: 0;
  width: 100%;
  color: #020202;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 500;
  font-style: italic;
  line-height: 46px;
  text-align: center;
  text-transform: capitalize;
}

.treatment-slider-section .tss-description {
  width: 100%;
}

.treatment-slider-section .tss-description,
.treatment-slider-section .tss-description p,
.treatment-slider-section .tss-description a,
.treatment-slider-section .tss-description strong,
.treatment-slider-section .tss-description em {
  margin: 0;
  color: #454545;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.treatment-slider-section .tss-description a {
  text-decoration: underline;
  color: inherit;
}

.treatment-slider-section .tss-description p + p {
  margin-top: 8px;
}

.treatment-slider-section .treatments-wrap {
  width: 100%;
  position: relative;
}

/* Mobile/tablet: static 2-column grid, no swiper chrome */
.treatment-slider-section .treatment-swiper {
  width: 100%;
  overflow: visible;
}

.treatment-slider-section .treatments-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 25px;
  width: 100%;
}

.treatment-slider-section .treatment-item {
  width: 100%;
  height: auto;
  margin: 0 !important;
}

.treatment-slider-section .treatment-card {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.treatment-slider-section .treatment-image {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2.866px 14.332px 0 rgba(231, 211, 173, 0.5);
}

.treatment-slider-section .treatment-image img,
.treatment-slider-section .treatment-image .treatment-image-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.treatment-slider-section .treatment-title {
  margin: 0;
  width: 100%;
  color: #020202;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 32px;
  text-align: center;
  text-transform: capitalize;
}

.treatment-slider-section .treatment-nav,
.treatment-slider-section .treatment-scrollbar {
  display: none;
}

/* Tablet: mobile layout, desktop fonts */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .treatment-slider-section .tss-inner {
    padding: 40px 5.3333%;
  }

  .treatment-slider-section .tss-heading {
    font-size: 54px;
    line-height: 64px;
  }

  .treatment-slider-section .treatment-title {
    font-size: 26px;
    line-height: 34px;
  }
}

/* Desktop: Swiper slider */
@media screen and (min-width: 1024px) {
  .treatment-slider-section .tss-inner {
    padding: 6.9444% 8.3333%; /* 100/1440 , 120/1440 */
    gap: 60px;
  }

  .treatment-slider-section .tss-header {
    max-width: 880px;
    gap: 20px;
    background: transparent;
    padding: 0;
  }

  .treatment-slider-section .tss-heading {
    font-size: 54px;
    line-height: 64px;
  }

  .treatment-slider-section .treatments-wrap {
    width: 100%;
  }

  .treatment-slider-section .treatment-swiper {
    width: 100%;
    overflow: visible;
  }

  .treatment-slider-section .treatments-list {
    display: flex;
    grid-template-columns: none;
    column-gap: 0;
    row-gap: 0;
  }

  .treatment-slider-section .treatment-item {
    width: 276px;
    height: auto;
    opacity: 0.5;
    transition: opacity 200ms ease;
  }

  .treatment-slider-section .treatment-item.swiper-slide-fully-visible {
    opacity: 1;
  }

  .treatment-slider-section .treatment-card {
    gap: 6px;
  }

  .treatment-slider-section .treatment-image {
    width: 260px;
    height: 260px;
    max-width: 100%;
    box-shadow: 0 5.304px 26.521px 0 rgba(231, 211, 173, 0.5);
  }

  .treatment-slider-section .treatment-image img,
  .treatment-slider-section .treatment-image .treatment-image-img {
    object-fit: cover;
  }

  .treatment-slider-section .treatment-title {
    font-size: 26px;
    line-height: 34px;
    padding: 16px;
  }

  .treatment-slider-section .treatment-nav {
    display: block;
  }

  .treatment-slider-section .treatment-nav-prev,
  .treatment-slider-section .treatment-nav-next {
    position: absolute;
    top: 105px;
    z-index: 2;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 200ms ease;
  }

  .treatment-slider-section .treatment-nav-prev:hover,
  .treatment-slider-section .treatment-nav-next:hover {
    opacity: 0.75;
  }

  .treatment-slider-section .treatment-nav-prev {
    left: -5.8333%; /* ~70px / 1200 */
  }

  .treatment-slider-section .treatment-nav-next {
    right: -5.8333%;
  }

  .treatment-slider-section .treatment-nav-prev svg,
  .treatment-slider-section .treatment-nav-next svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .treatment-slider-section .treatment-nav-prev.swiper-button-disabled,
  .treatment-slider-section .treatment-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
  }

  .treatment-slider-section .treatment-scrollbar {
    display: block;
    position: relative;
    width: 100%;
    height: 12px;
    margin-top: 40px;
    background: #dedede;
    border-radius: 20px;
    overflow: hidden;
  }

  .treatment-slider-section .treatment-scrollbar .swiper-scrollbar-drag {
    background: #84bd25;
    border-radius: 20px;
    height: 100%;
    cursor: grab;
  }
}
