/* =========================================================
   EMRAN HOSEN LLC — DYNAMIC ELEMENTOR HERO
   ========================================================= */

.ehllc-hero {
  --ehllc-primary: #4f46e5;
  --ehllc-primary-dark: #3730a3;
  --ehllc-secondary: #0f172a;
  --ehllc-accent: #f43f5e;
  --ehllc-accent-light: #ffe4e6;
  --ehllc-background: #ffffff;
  --ehllc-background-alt: #eef2ff;
  --ehllc-border: rgba(79, 70, 229, 0.16);

  position: relative;
  width: calc(100vw - 20px);
  max-width: none;
  margin: 12px calc(50% - 50vw + 10px) 24px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--ehllc-background);
  border: 1px solid var(--ehllc-border);
  border-radius: 22px;
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.14),
    0 5px 14px rgba(79, 70, 229, 0.06);
  isolation: isolate;
}

.ehllc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  z-index: 50;
  width: 132px;
  height: 4px;
  background: linear-gradient(90deg, var(--ehllc-primary-dark), var(--ehllc-primary), var(--ehllc-accent));
  border-radius: 0 0 999px 999px;
}

.ehllc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(79, 70, 229, 0.06);
}

.ehllc-hero__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 650;
  overflow: hidden;
  background: linear-gradient(145deg, var(--ehllc-background) 0%, var(--ehllc-background-alt) 100%);
  touch-action: pan-y;
}

.ehllc-hero__viewport::before,
.ehllc-hero__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 15;
  width: min(95px, 8vw);
  pointer-events: none;
}

.ehllc-hero__viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(55, 48, 163, 0.18), transparent);
}

.ehllc-hero__viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(55, 48, 163, 0.18), transparent);
}

.ehllc-hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.ehllc-hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ehllc-background-alt);
}

.ehllc-hero__link,
.ehllc-hero__picture,
.ehllc-hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.ehllc-hero__link {
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.ehllc-hero__image {
  object-fit: cover;
  object-position: center;
  background: var(--ehllc-background);
  transform: scale(1.001);
  transition:
    transform 1000ms cubic-bezier(.2, .65, .3, 1),
    filter 450ms ease;
}

.ehllc-hero__slide.is-active .ehllc-hero__image {
  transform: scale(1.018);
}

.ehllc-hero__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--ehllc-primary-dark);
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff, #edf7f4);
}

.ehllc-hero__empty span {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
}

.ehllc-hero__empty small {
  max-width: 520px;
  color: #64748b;
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .ehllc-hero__link:hover .ehllc-hero__image {
    transform: scale(1.03);
    filter: saturate(1.035) contrast(1.018);
  }
}

.ehllc-hero__link:focus-visible {
  z-index: 25;
  outline: 4px solid var(--ehllc-accent);
  outline-offset: -4px;
}

.ehllc-hero__prev,
.ehllc-hero__next {
  position: absolute;
  top: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ehllc-primary-dark);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ehllc-hero__prev { left: 18px; }
.ehllc-hero__next { right: 18px; }

.ehllc-hero__prev svg,
.ehllc-hero__next svg {
  width: 22px;
  height: 22px;
}

.ehllc-hero__prev:hover,
.ehllc-hero__next:hover {
  color: var(--ehllc-secondary);
  background: var(--ehllc-accent-light);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.ehllc-hero__prev:focus-visible,
.ehllc-hero__next:focus-visible {
  outline: 3px solid rgba(244, 63, 94, 0.72);
  outline-offset: 3px;
}

.ehllc-hero__prev:disabled,
.ehllc-hero__next:disabled {
  opacity: 0.35;
  cursor: default;
}

.ehllc-hero__pagination {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 150px);
  margin: 0 auto;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ehllc-hero__dot {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.58;
  cursor: pointer;
  transition:
    width 240ms ease,
    background-color 240ms ease,
    opacity 240ms ease,
    transform 240ms ease;
}

.ehllc-hero__dot:hover {
  opacity: 1;
  transform: scale(1.15);
}

.ehllc-hero__dot.is-active {
  width: 28px;
  background: var(--ehllc-accent-light);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.20);
}

.ehllc-hero__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.ehllc-hero__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.30);
}

.ehllc-hero__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ehllc-primary-dark), var(--ehllc-primary), var(--ehllc-accent));
  transform-origin: left center;
}

@media (max-width: 1024px) {
  .ehllc-hero { border-radius: 19px; }

  .ehllc-hero__prev,
  .ehllc-hero__next {
    width: 43px;
    height: 43px;
  }

  .ehllc-hero__prev { left: 13px; }
  .ehllc-hero__next { right: 13px; }
  .ehllc-hero__pagination { bottom: 14px; }
}

@media (max-width: 767px) {
  .ehllc-hero {
    width: calc(100vw - 20px);
    margin: 10px calc(50% - 50vw + 10px) 17px;
    border-radius: 16px;
  }

  .ehllc-hero::before {
    left: 14px;
    width: 82px;
    height: 3px;
  }

  .ehllc-hero__viewport {
    aspect-ratio: 4 / 3;
  }

  .ehllc-hero__prev,
  .ehllc-hero__next {
    top: auto;
    bottom: 10px;
    width: 36px;
    height: 36px;
    transform: none;
  }

  .ehllc-hero__prev { left: 9px; }
  .ehllc-hero__next { right: 9px; }

  .ehllc-hero__prev:hover,
  .ehllc-hero__next:hover {
    transform: scale(1.06);
  }

  .ehllc-hero__prev svg,
  .ehllc-hero__next svg {
    width: 18px;
    height: 18px;
  }

  .ehllc-hero__pagination {
    bottom: 14px;
    max-width: calc(100% - 110px);
    padding: 6px 8px;
  }

  .ehllc-hero__dot {
    width: 7px;
    height: 7px;
    margin: 0 3px;
  }

  .ehllc-hero__dot.is-active { width: 21px; }
  .ehllc-hero__progress { height: 3px; }
}

@media (max-width: 480px) {
  .ehllc-hero {
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .ehllc-hero__prev,
  .ehllc-hero__next {
    bottom: 8px;
    width: 34px;
    height: 34px;
  }

  .ehllc-hero__prev { left: 7px; }
  .ehllc-hero__next { right: 7px; }

  .ehllc-hero__pagination {
    bottom: 11px;
    max-width: calc(100% - 100px);
    padding: 5px 7px;
  }
}

@media (max-width: 360px) {
  .ehllc-hero {
    width: calc(100vw - 16px);
    margin-right: calc(50% - 50vw + 8px);
    margin-left: calc(50% - 50vw + 8px);
    border-radius: 12px;
  }

  .ehllc-hero__prev,
  .ehllc-hero__next {
    width: 32px;
    height: 32px;
  }

  .ehllc-hero__prev svg,
  .ehllc-hero__next svg {
    width: 16px;
    height: 16px;
  }

  .ehllc-hero__pagination {
    max-width: calc(100% - 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ehllc-hero__image,
  .ehllc-hero__prev,
  .ehllc-hero__next,
  .ehllc-hero__dot,
  .ehllc-hero__track {
    transition: none !important;
  }

  .ehllc-hero__slide.is-active .ehllc-hero__image,
  .ehllc-hero__link:hover .ehllc-hero__image {
    transform: none !important;
  }

  .ehllc-hero__progress {
    display: none;
  }
}
