/* === Base Layout === */
.elementor-widget-lwd_carousel_slider,
.elementor-widget-lwd_carousel_slider .elementor-widget-container,
.lwd-carousel-slider {
  width: 100% !important;
  max-width: 100% !important;
}

.lwd-carousel-slider {
  --lwd-card-width: 585px;
  --lwd-side-offset-x: 560px;
  --lwd-side-offset-y: 112px;
  --lwd-side-rotate: 22deg;
  --lwd-side-scale: 0.8;
  --lwd-side-opacity: 0.68;
  --lwd-active-scale: 1;
  --lwd-mobile-nav-gap: 10px;
  --lwd-mobile-nav-offset-x: 0px;
  --lwd-mobile-nav-offset-y: 0px;
  --lwd-widget-height: 560px;
  position: relative;
  width: 100%;
  min-height: var(--lwd-widget-height);
  padding: 56px 90px;
  background: transparent;
  overflow: hidden;
  touch-action: pan-y;
}

.lwd-carousel-viewport {
  position: relative;
  min-height: 560px;
}

/* === Drag Interaction === */
.lwd-carousel-slider.is-drag-enabled .lwd-carousel-viewport {
  cursor: grab;
}

.lwd-carousel-slider.is-drag-enabled.is-dragging .lwd-carousel-viewport {
  cursor: grabbing;
  user-select: none;
}

/* === Card Positioning & States === */
.lwd-carousel-card {
  --lwd-tx: 0px;
  --lwd-ty: 0px;
  --lwd-rt: 0deg;
  --lwd-sc: var(--lwd-active-scale);
  width: min(100%, var(--lwd-card-width));
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0) translate3d(var(--lwd-tx), var(--lwd-ty), 0) rotate(var(--lwd-rt)) scale(var(--lwd-sc));
  transform-origin: center center;
  transition: transform var(--lwd-duration, 550ms) ease, opacity var(--lwd-duration, 550ms) ease;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

.lwd-carousel-card.is-visible {
  pointer-events: auto;
}

.lwd-carousel-card.is-active {
  --lwd-tx: 0px;
  --lwd-ty: 0px;
  --lwd-rt: 0deg;
  --lwd-sc: var(--lwd-active-scale);
  opacity: 1;
  pointer-events: auto;
  z-index: 30;
}

.lwd-carousel-card.is-prev {
  --lwd-tx: calc(var(--lwd-side-offset-x) * -1);
  --lwd-ty: var(--lwd-side-offset-y);
  --lwd-rt: calc(var(--lwd-side-rotate) * -1);
  --lwd-sc: var(--lwd-side-scale);
  opacity: var(--lwd-side-opacity);
  z-index: 20;
}

.lwd-carousel-card.is-next {
  --lwd-tx: var(--lwd-side-offset-x);
  --lwd-ty: var(--lwd-side-offset-y);
  --lwd-rt: var(--lwd-side-rotate);
  --lwd-sc: var(--lwd-side-scale);
  opacity: var(--lwd-side-opacity);
  z-index: 20;
}

.lwd-carousel-card:not(.is-active) .lwd-carousel-card__link {
  pointer-events: none;
}

/* === Card Content === */
.lwd-carousel-card__inner {
  position: relative;
  min-height: 430px;
  border: 1px solid #d6d6d6;
  background: #ececec;
  padding: 36px 42px 34px;
}

.lwd-carousel-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.lwd-carousel-card__icon {
  color: #f2dc1b;
  font-size: 46px;
  line-height: 1;
}

.lwd-carousel-card__icon i,
.lwd-carousel-card__icon svg {
  display: block;
}

.lwd-carousel-card__title {
  margin: 20px 0 0;
  color: #2a2a2a;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 600;
}

.lwd-carousel-card__subtitle {
  margin: 12px 0 0;
  color: #2a2a2a;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.lwd-carousel-card__points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.lwd-carousel-card__points li {
  position: relative;
  margin: 0;
  padding-left: 36px;
  color: #353535;
  font-size: 26px;
  line-height: 1.28;
  font-weight: 400;
}

.lwd-carousel-card__points li:not(:last-child) {
  margin-bottom: 14px;
}

.lwd-carousel-card.has-point-prefix .lwd-carousel-card__points li::before {
  content: '//';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: currentColor;
  opacity: 0.9;
}

.lwd-carousel-card.no-point-prefix .lwd-carousel-card__points li {
  padding-left: 0;
}

/* === Card Button === */
.lwd-carousel-card__button-wrap {
  position: relative;
  z-index: 4;
  margin-top: 24px;
}

.lwd-carousel-card__button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 14px 26px;
  border: 1px solid #121316;
  background: #121316;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.lwd-carousel-card__button:hover,
.lwd-carousel-card__button:focus {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #ffffff;
  transform: translateY(-1px);
}

.lwd-carousel-card__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.lwd-carousel-card__button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lwd-carousel-card:not(.is-active) .lwd-carousel-card__button {
  pointer-events: none;
}

.lwd-carousel-card__bar {
  height: 8px;
  background: #a9a9a9;
}

/* === Navigation === */
.lwd-carousel-nav {
  position: static;
}

.lwd-carousel-nav.is-hidden {
  display: none !important;
}

.lwd-carousel-nav__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 14px;
  background: #121316;
  color: #ffffff;
  font-size: 31px;
  cursor: pointer;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lwd-carousel-nav__btn:hover {
  transform: translateY(-50%) scale(1.04);
}

.lwd-carousel-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lwd-carousel-nav__btn.is-prev {
  left: 14px;
}

.lwd-carousel-nav__btn.is-next {
  right: 14px;
}

.lwd-carousel-nav__btn.is-hidden {
  display: none;
}

.lwd-carousel-nav__btn i,
.lwd-carousel-nav__btn svg {
  display: block;
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .lwd-carousel-slider {
    --lwd-card-width: 520px;
    --lwd-side-offset-x: 420px;
    --lwd-side-offset-y: 92px;
    --lwd-side-rotate: 18deg;
    --lwd-side-scale: 0.84;
    --lwd-side-opacity: 0.7;
    padding: 44px 66px 28px;
    text-align: center;
  }

  .lwd-carousel-viewport {
    margin-bottom: 0;
  }

  .lwd-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: var(--lwd-mobile-nav-gap, 12px);
    position: relative;
    z-index: 70;
  }

  .lwd-carousel-nav__btn {
    position: static;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 10px;
  }

  .lwd-carousel-nav__btn.is-prev {
    left: auto;
    transform: translate(calc(var(--lwd-mobile-nav-offset-x, 0px) * -1), var(--lwd-mobile-nav-offset-y, 0px));
  }

  .lwd-carousel-nav__btn.is-next {
    right: auto;
    transform: translate(var(--lwd-mobile-nav-offset-x, 0px), var(--lwd-mobile-nav-offset-y, 0px));
  }

  .lwd-carousel-nav__btn.is-prev:hover {
    transform: translate(calc(var(--lwd-mobile-nav-offset-x, 0px) * -1), var(--lwd-mobile-nav-offset-y, 0px)) scale(1.02);
  }

  .lwd-carousel-nav__btn.is-next:hover {
    transform: translate(var(--lwd-mobile-nav-offset-x, 0px), var(--lwd-mobile-nav-offset-y, 0px)) scale(1.02);
  }

  .lwd-carousel-card__title {
    font-size: 40px;
  }

  .lwd-carousel-card__subtitle {
    font-size: 24px;
  }

  .lwd-carousel-card__points li {
    font-size: 20px;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 767px) {
  .lwd-carousel-slider {
    --lwd-card-width: 88vw;
    --lwd-side-offset-x: 165px;
    --lwd-side-offset-y: 52px;
    --lwd-side-rotate: 10deg;
    --lwd-side-scale: 0.9;
    --lwd-side-opacity: 0.82;
    padding: 24px 18px 26px;
    text-align: center;
  }

  .lwd-carousel-viewport {
    min-height: 460px;
    margin-bottom: 0;
  }

  .lwd-carousel-nav {
    gap: 10px;
    margin-top: var(--lwd-mobile-nav-gap, 10px);
  }

  .lwd-carousel-card {
    width: min(100%, var(--lwd-card-width));
  }

  .lwd-carousel-card__inner {
    min-height: 390px;
    padding: 28px 24px 24px;
  }

  .lwd-carousel-card__title {
    font-size: 28px;
  }

  .lwd-carousel-card__subtitle {
    font-size: 18px;
  }

  .lwd-carousel-card__points {
    margin-top: 20px;
  }

  .lwd-carousel-card__points li {
    font-size: 16px;
    padding-left: 28px;
  }

  .lwd-carousel-card__points li:not(:last-child) {
    margin-bottom: 10px;
  }

  .lwd-carousel-nav__btn {
    position: static;
    top: auto;
    bottom: auto;
    width: 52px;
    height: 52px;
    font-size: 20px;
    margin: 0 8px;
  }
}
