.elvia-service-carousel,
.elvia-service-carousel * {
  box-sizing: border-box;
}

.elvia-service-carousel {
  position: relative;
  width: 100%;
  direction: rtl;
  --esc-desktop-slides: 3;
  --esc-tablet-slides: 2;
  --esc-mobile-slides: 1;
  --esc-gap: 28px;
  --esc-card-bg: #ffffff;
  --esc-card-hover-bg: #ffffff;
  --esc-border: #E8E6DE;
  --esc-accent: #FFB22C;
  --esc-title: #062B2B;
  --esc-text: #6F7773;
  --esc-icon: #062B2B;
  --esc-icon-bg: #F8F7F2;
  --esc-number-bg: rgba(255,178,44,0.12);
  --esc-radius: 22px;
  --esc-min-height: 235px;
  --esc-icon-box: 58px;
  --esc-icon-size: 28px;
  --esc-arrow-color: #062B2B;
  --esc-arrow-bg: #ffffff;
  --esc-dot: #C9CBC5;
  --esc-dot-active: #062B2B;
}

.esc-viewport {
  overflow: hidden;
  width: 100%;
  direction: rtl;
  padding: 8px 2px 10px;
}

.esc-track {
  display: flex;
  direction: rtl;
  flex-direction: row;
  align-items: stretch;
  gap: var(--esc-gap);
  will-change: transform;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
}

.esc-card {
  flex: 0 0 calc((100% - (var(--esc-gap) * (var(--esc-desktop-slides) - 1))) / var(--esc-desktop-slides));
  text-decoration: none;
  color: inherit;
  display: block;
  direction: rtl;
}

.esc-card-inner {
  position: relative;
  min-height: var(--esc-min-height);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  overflow: hidden;
  background: var(--esc-card-bg);
  border: 1px solid var(--esc-border);
  border-radius: var(--esc-radius);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.esc-has-pattern .esc-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,43,43,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,43,43,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}

.esc-card-inner > * {
  position: relative;
  z-index: 1;
}

.esc-card:hover .esc-card-inner {
  transform: translateY(-5px);
  background: var(--esc-card-hover-bg);
  border-color: color-mix(in srgb, var(--esc-border), var(--esc-title) 18%);
}

.esc-card-head {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.esc-number,
.esc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.esc-number {
  color: var(--esc-accent);
  background: var(--esc-number-bg);
}

.esc-badge {
  color: #062B2B;
  background: rgba(255,178,44,.22);
}

.esc-icon {
  width: var(--esc-icon-box);
  height: var(--esc-icon-box);
  min-width: var(--esc-icon-box);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--esc-icon);
  background: var(--esc-icon-bg);
  border: 1px solid rgba(6,43,43,.07);
  font-size: var(--esc-icon-size);
  line-height: 1;
}

.esc-icon i,
.esc-icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

.esc-icon svg * {
  fill: currentColor;
}

.esc-title {
  margin: 2px 0 0;
  color: var(--esc-title);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.esc-text {
  margin: 0;
  color: var(--esc-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
}

.esc-align-right .esc-card-inner {
  text-align: right;
  align-items: flex-start;
}

.esc-align-center .esc-card-inner {
  text-align: center;
  align-items: center;
}

.esc-align-center .esc-card-head {
  justify-content: center;
}

.esc-align-left .esc-card-inner {
  text-align: left;
  align-items: flex-end;
  direction: ltr;
}

.esc-accent-right .esc-card-inner::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  width: 4px;
  height: 52px;
  border-radius: 20px 0 0 20px;
  background: var(--esc-accent);
  z-index: 2;
}

.esc-accent-top .esc-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 0 0 20px 20px;
  background: var(--esc-accent);
  z-index: 2;
}

.esc-accent-bottom .esc-card-inner::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: var(--esc-accent);
  z-index: 2;
}

.esc-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--esc-border);
  border-radius: 50%;
  color: var(--esc-arrow-color);
  background: var(--esc-arrow-bg);
  box-shadow: 0 10px 28px rgba(6,43,43,.10);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.esc-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.esc-prev { right: -18px; left: auto; }
.esc-next { left: -18px; right: auto; }


.esc-arrow span {
  display: block;
  width: 12px;
  height: 12px;
  font-size: 0;
  line-height: 0;
  direction: ltr;
  unicode-bidi: isolate;
  transform: none;
}

.esc-prev span::before,
.esc-next span::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

/* RTL: right-side button points right, left-side button points left */
.esc-prev span::before {
  transform: rotate(45deg);
}

.esc-next span::before {
  transform: rotate(225deg);
}

.esc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
  direction: rtl;
}

.esc-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--esc-dot);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.esc-dot.is-active {
  width: 22px;
  background: var(--esc-dot-active);
}

@media (max-width: 1024px) {
  .esc-card {
    flex-basis: calc((100% - (var(--esc-gap) * (var(--esc-tablet-slides) - 1))) / var(--esc-tablet-slides));
  }

  .esc-prev { right: -8px; left: auto; }
  .esc-next { left: -8px; right: auto; }
}

@media (max-width: 767px) {
  .elvia-service-carousel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    row-gap: 0;
  }

  .esc-viewport {
    flex: 0 0 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .esc-card {
    flex-basis: calc((100% - (var(--esc-gap) * (var(--esc-mobile-slides) - 1))) / var(--esc-mobile-slides));
  }

  .esc-card-inner {
    min-height: auto;
  }

  .esc-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 36px;
    height: 36px;
    margin-top: 14px;
    flex: 0 0 36px;
  }

  .esc-arrow:hover {
    transform: scale(1.06);
  }

  .esc-prev {
    order: 2;
    right: auto;
    left: auto;
  }

  .esc-next {
    order: 4;
    right: auto;
    left: auto;
  }

  .esc-dots {
    order: 3;
    margin-top: 14px;
    min-height: 36px;
  }
}
