/*
  Hover Effect Widget Pro
  - fully scoped under .hover-effect-widget-pro so multiple instances work
*/

.hover-effect-widget-pro {
  width: 100%;
}

.hover-effect-widget-pro .widget-container {
  width: 100%;
}

/* ===== Desktop layout ===== */
.hover-effect-widget-pro .widget-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 109px;
}

.hover-effect-widget-pro .boxes-column {
  flex: 1;
  max-width: 36%;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 85px;
}

.hover-effect-widget-pro .center-image-area {
  flex: 1.4;
  max-width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .hover-effect-widget-pro .hover-box {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(20, 20, 20, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.hover-effect-widget-pro .hover-box:hover,
.hover-effect-widget-pro .hover-box.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
} */

.hover-effect-widget-pro .box-top-icon {
  margin-bottom: 24px;
  width: 90px;
  height: 90px;
  padding: 25px;
  background-color: #0085FE;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.hover-effect-widget-pro .box-top-icon img {
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
  transition: transform 0.3s
}

.hover-effect-widget-pro .box-title {
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  color: #150D07;
  margin-top: 0px;
  margin-bottom: 9px;
}

/* Active state (used by hover mode and scroll mode) */
.hover-effect-widget-pro .hover-box.is-active .box-top-icon {
  background-color: #0760CD;
  transform: translateY(-3px);
}

.hover-effect-widget-pro .hover-box.is-active .box-title {
  color: #150d07;
}

.hover-effect-widget-pro .box-description {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #150D07;
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
}

.hover-effect-widget-pro .box-list-items {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hover-effect-widget-pro .list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: .95;
}

.hover-effect-widget-pro .list-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hover-effect-widget-pro .list-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hover-effect-widget-pro .list-icon.default-icon {
  opacity: .75;
}

/* Center */
.hover-effect-widget-pro .center-image-wrapper {
  width: 100%;
  position: relative;
  /* max-width: 420px;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(22, 22, 22, .95), rgba(10, 10, 10, .95));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
  text-align: center; */
}

.hover-effect-widget-pro .center-main-image {
  width: 100%;
  height: auto;
  /* max-height: 560px; */
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: opacity .18s ease, transform .28s ease;
}

/* Image appears with animation when hover swaps */
/* .hover-effect-widget-pro .center-image-wrapper.is-swapping .center-main-image {
  animation: hewp-pop .38s ease both;
} */

.hover-effect-widget-pro .center-main-image.is-fading {
  opacity: 0;
  transform: translateY(6px) scale(.985);
}

@keyframes hewp-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hover-effect-widget-pro .center-image-info {
  padding-top: 6px;
}

.hover-effect-widget-pro .center-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.hover-effect-widget-pro .center-description {
  margin: 0;
  opacity: .85;
  font-size: 15px;
  line-height: 1.55;
}

/* ===== Mobile layout (matches screenshot structure) ===== */
.hover-effect-widget-pro .mobile-tab-layout {
  display: none;
}

.hover-effect-widget-pro .mobile-tabs-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow: auto;
  padding: 10px 6px 14px;
  -webkit-overflow-scrolling: touch;
}

.hover-effect-widget-pro .mobile-tabs-buttons::-webkit-scrollbar {
  height: 0;
}

.hover-effect-widget-pro .mobile-tab-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hover-effect-widget-pro .mobile-tab-btn .btn-wraper {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0085FE;
  /* border: 1px solid rgba(255, 255, 255, .08); */
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.hover-effect-widget-pro .mobile-tab-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hover-effect-widget-pro .mobile-tab-btn.active .btn-wraper {
  background-color: #0760CD;
  transform: translateY(-1px);
}

.hover-effect-widget-pro .mobile-tabs-content {
  margin-top: 10px;
}

.hover-effect-widget-pro .mobile-tab-content {
  display: none;
}

.hover-effect-widget-pro .mobile-tab-content.active {
  display: block;
}

.hover-effect-widget-pro .mobile-tab-content .box-desc {
  text-align: center;
  /* padding: 6px 10px 10px; */
  padding: 0px;
}

.hover-effect-widget-pro .mobile-tab-content .box-desc h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.hover-effect-widget-pro .mobile-tab-content .box-desc p {
  margin: 0;
  opacity: .85;
  line-height: 1.6;
}

.hover-effect-widget-pro .mobile-tab-content .box-list-items {
  max-width: 520px;
  margin: 14px auto 0;
  padding: 0 14px;
}

.hover-effect-widget-pro .mobile-tab-content .box-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 0 12px;
}

.hover-effect-widget-pro .mobile-tab-content .box-image img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  /* filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); */
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: opacity .22s ease, transform .28s ease;
}

.hover-effect-widget-pro .mobile-tab-content .box-image img.is-pop {
  animation: hewp-pop .38s ease both;
}

/* Breakpoints */
@media (max-width: 1024px) {
  .hover-effect-widget-pro .widget-layout {
    gap: 16px;
  }

  .hover-effect-widget-pro .center-title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .hover-effect-widget-pro .widget-layout {
    display: none;
  }

  .hover-effect-widget-pro .mobile-tab-layout {
    display: block;
  }

  .hover-effect-widget-pro .mobile-tab-content .box-desc p {
    margin: 0;
    opacity: .85;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 500;
  }

  .hover-effect-widget-pro .mobile-tab-content .box-desc h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
  }

  .hover-effect-widget-pro .mobile-tabs-buttons {
    justify-content: space-evenly;
    padding: 7px;
  }
}

/* ===== Scroll-driven sticky mode (desktop only) =====
   Enable by adding class `hewp-scroll` to the widget wrapper in Elementor.
   Notes:
   - Sticky won't work if any ancestor has overflow:hidden/auto.
   - You can set a header offset like:
       .your-section-class { --hewp-sticky-top: 90px; }
*/
@media (min-width: 768px) {

  .hover-effect-widget-pro.hewp-scroll .widget-layout,
  .hover-effect-widget-pro.hewp-scroll .widget-layout.hewp-scroll-sticky {
    position: sticky;
    top: var(--hewp-sticky-top, 0px);
    z-index: 2;
  }

  .hover-effect-widget-pro .center-image-info {
    display: none !important;
  }

  .hover-effect-widget-pro .center-main-image {
    margin-bottom: 0 !important;
  }
}