*,
.slm-carousel *,
.slm-carousel *::before,
.slm-carousel *::after {
  box-sizing: border-box;
}

.slm-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  user-select: none;
}
.slm-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slm-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  height: 400px;
  overflow: hidden;
}
.slm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.slm-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 54%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3.5rem 2rem 1.5rem;
  gap: 0.8rem;
}

.slm-content--dark {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.52) 28%,
    rgba(0, 0, 0, 0.72) 100%
  );
}
.slm-content--dark .slm-title {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.slm-content--dark .slm-subtitle {
  color: rgba(255, 255, 255, 0.88);
}
.slm-content--dark .slm-btn {
  background: #fff;
  color: #1a1a1a;
}
.slm-content--dark .slm-btn:hover {
  background: #eee;
  color: #1a1a1a;
}

.slm-title {
  line-height: 32px;
  color: #1a1a1a;
  margin: 0;
  font-size: 26px;
  font-weight: 700 !important;
  font-family: "sanofi_sans_bold";
}
.slm-subtitle {
  font-family: "sanofi_sans_regular";
  font-style: italic;
  color: #444;
  margin: 0;
  font-size: 17px;
}
.slm-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  width: fit-content;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
}
.slm-btn:hover {
  background: #333;
  color: white;
  transform: translateY(-1px);
}

.slm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.slm-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.slm-arrow--prev {
  left: 16px;
}
.slm-arrow--next {
  right: 16px;
}
.slm-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #222;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slm-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.slm-dot--active {
  background: #e05a1e;
  transform: scale(1.35);
}

.slm-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #e05a1e;
  width: 0%;
  z-index: 11;
  transition: width 0s linear;
}
.slm-progress--animate {
  transition: width 6s linear;
}

@media (max-width: 991px) {
  .slm-slide {
    height: 320px;
  }
  .slm-content {
    width: 58%;
    padding: 1.5rem 2rem 1.5rem 1rem;
  }
  .slm-title {
    font-size: 18px;
  }
  .slm-subtitle {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .slm-slide {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .slm-bg {
    position: relative;
    height: 200px;
    object-position: left top;
    flex-shrink: 0;
  }
  .slm-content {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.25rem;
    background: #fff;
  }
  .slm-content--dark {
    background: #1a1a1a;
  }
  .slm-arrow {
    top: 100px;
  }
  .slm-title {
    font-size: 18px;
  }
}
