.ce-scc {
  --ce-scc-card-width: 320px;
  --ce-scc-card-height: 430px;
  --ce-scc-spread: 172px;
  --ce-scc-curve: 42px;
  --ce-scc-rotation: 10deg;
  --ce-scc-scale-step: 0.1;
  --ce-scc-overlay: rgba(0, 0, 0, 0.52);
  --ce-scc-side-dark: 0.32;
  --ce-scc-title-bg-active: #f64222;
  --ce-scc-title-bg-inactive: rgba(72, 76, 90, 0.9);
  width: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.ce-scc[data-entrance="yes"]:not(.is-entrance-ready) .ce-scc__card,
.ce-scc[data-entrance="yes"]:not(.is-entrance-ready) .ce-scc__controls {
  opacity: 0;
}

.ce-scc__stage {
  position: relative;
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
}

.ce-scc__drag {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ce-scc.is-dragging .ce-scc__stage {
  cursor: grabbing;
}

.ce-scc__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ce-scc-card-width);
  height: var(--ce-scc-card-height);
  margin: 0;
  overflow: hidden;
  background: #111;
  pointer-events: none;
  transform-origin: 50% 86%;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.ce-scc__card.is-active.has-link {
  pointer-events: auto;
}

.ce-scc__card-link,
.ce-scc__card-inner {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.ce-scc__card-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -5px;
}

.ce-scc__image,
.ce-scc__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
}

.ce-scc__image {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-scc__shade {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.84),
      rgba(0, 0, 0, 0.2) 52%,
      rgba(0, 0, 0, 0)
    ),
    var(--ce-scc-overlay);
  opacity: calc(
    0.22 + (var(--ce-scc-side-factor, 0) * var(--ce-scc-side-dark))
  );
  transition: opacity 0.45s ease;
}

.ce-scc__card.is-active .ce-scc__image {
  transform: scale(1.06);
}

.ce-scc__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 40px);
  min-height: 38px;
  padding: 7px 18px;
  border-radius: 999px;
  color: #0b0b0b;
  background: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: rotate(calc(var(--ce-scc-offset, 0) * -2deg));
}

.ce-scc__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ce-scc-title-bg-inactive);
  opacity: calc(0.72 + (var(--ce-scc-content-opacity, 0) * 0.28));
  transform: translateY(calc((1 - var(--ce-scc-content-opacity, 0)) * 5px));
  transition: opacity 0.35s ease, background-color 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-scc__card.is-active .ce-scc__content {
  background: var(--ce-scc-title-bg-active);
}

.ce-scc__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ce-scc__controls {
  position: relative;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 18px 0 0;
  opacity: var(--ce-scc-ui-reveal, 1);
  transform: translateY(calc((1 - var(--ce-scc-ui-reveal, 1)) * 12px));
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-scc__control {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #90a1a8;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-scc__control:hover {
  color: #273796;
  transform: translateY(-1px);
}

.ce-scc__control i {
  font-size: 32px;
  line-height: 1;
}

.ce-scc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
}

.ce-scc__control svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ce-scc__control .e-font-icon-svg {
  fill: currentColor;
  stroke: none;
}

/* Elementor's uploaded SVGs often contain fixed colors. Keep their original
   fill/stroke structure while allowing the Arrow Color controls to recolor it. */
.ce-scc__icon--uploaded-svg svg {
  color: inherit !important;
  fill: currentColor !important;
  stroke: none !important;
}

.ce-scc__icon--uploaded-svg svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

.ce-scc__icon--uploaded-svg svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

.ce-scc__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  line-height: 0;
}

.ce-scc__dot {
  width: 28px;
  height: 28px;
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #90a1a8;
  opacity: 0.98;
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.ce-scc__dot.is-active {
  background: #273796;
  opacity: 1;
}

.ce-scc__dot:focus-visible,
.ce-scc__control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .ce-scc__badge {
    top: 14px;
    right: 14px;
    min-height: 30px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .ce-scc__content {
    min-height: 62px;
    padding: 12px 16px;
    text-align: center;
  }

  .ce-scc__title {
    font-size: 16px;
  }

  .ce-scc__controls {
    gap: 12px;
    margin-top: 12px;
  }

  .ce-scc__control {
    width: 30px;
    height: 30px;
  }

  .ce-scc__control i {
    font-size: 26px;
  }

  .ce-scc__control svg {
    width: 26px;
    height: 26px;
  }

  .ce-scc__dots {
    gap: 10px;
  }

  .ce-scc__dot {
    width: 18px;
    height: 18px;
  }
}
