/* AKEP Hero carousel (Swiper) — scoped under .akep-hero-root */
.akep-hero-root {
  --akep-radius: 0.25rem;
  --akep-ink: oklch(0.21 0.05 258);
  --akep-ink-foreground: oklch(0.96 0.01 250);
  --akep-signal: oklch(0.58 0.2 27);
  --akep-max: 1580px;
  --akep-hero-height: 36rem;
  --akep-font-sans: "OpenSans-Regular", "Open Sans", system-ui, sans-serif;
  --akep-font-medium: "OpenSans-SemiBold", "Open Sans", system-ui, sans-serif;
  --akep-font-bold: "OpenSans-Bold", "Open Sans", system-ui, sans-serif;
  font-family: var(--akep-font-sans) !important;
  color: var(--akep-ink-foreground);
  line-height: 1.5;
}

.akep-hero-root *,
.akep-hero-root *::before,
.akep-hero-root *::after {
  box-sizing: border-box;
}

.akep-hero-root,
.akep-hero-root a,
.akep-hero-root p,
.akep-hero-root div,
.akep-hero-root span,
.akep-hero-root button,
.elementor-widget-akep-hero,
.elementor-widget-akep-hero a,
.elementor-widget-akep-hero p,
.elementor-widget-akep-hero div {
  font-family: var(--akep-font-sans) !important;
}

/* Beat theme justify override */
body.page .elementor-widget-akep-hero .elementor-widget-container,
body.page .elementor-widget-akep-hero .elementor-widget-container p,
body.page .elementor-widget-akep-hero .elementor-widget-container a,
body.page .elementor-widget-akep-hero .elementor-widget-container div,
body.page .elementor-widget-akep-hero .elementor-widget-container span,
body.page .elementor-widget-akep-hero .hero-title,
body.page .elementor-widget-akep-hero .hero-tag,
.elementor-widget-akep-hero .hero-title,
.akep-hero-root,
.akep-hero-root p,
.akep-hero-root a,
.akep-hero-root div,
.akep-hero-root .hero-title,
.akep-hero-root .hero-tag,
.akep-hero-root .hero-count,
.akep-hero-root .hero-cta {
  text-align: left !important;
}

.akep-hero-root img {
  max-width: 100%;
  display: block;
}

.akep-hero-root a {
  color: inherit;
  text-decoration: none;
}

.akep-hero-root button {
  font: inherit;
}

.akep-hero-root p {
  margin: 0;
}

.akep-hero-root .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.akep-hero-root .hero {
  position: relative;
  overflow: hidden;
  background: var(--akep-ink);
  color: var(--akep-ink-foreground);
}

.akep-hero-root .akep-hero-swiper {
  position: relative;
  width: 100%;
  height: var(--akep-hero-height);
  overflow: hidden;
}

.akep-hero-root .swiper-wrapper {
  height: 100%;
}

.akep-hero-root .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  /* Fade stacks all slides; only the active one may receive clicks. */
  pointer-events: none;
}

.akep-hero-root .swiper-slide-active {
  pointer-events: auto;
  z-index: 2;
}

.akep-hero-root .hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.akep-hero-root .hero-slide-media img,
.akep-hero-root .swiper-slide .hero-slide-media img,
.akep-hero-root .hero-slide-media .hero-img {
  position: absolute !important;
  inset: 0;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Dual images beat <picture> inside Swiper (inactive slides load wrong source) */
.akep-hero-root .hero-img--mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .akep-hero-root .hero-slide-media.has-mobile-image .hero-img--desktop {
    display: none !important;
  }

  .akep-hero-root .hero-slide-media.has-mobile-image .hero-img--mobile {
    display: block !important;
  }
}

.akep-hero-root .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 36, 79, 0.95) 0%,
    rgba(0, 36, 79, 0.4) 50%,
    rgba(0, 36, 79, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.akep-hero-root .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 0 5.5rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .akep-hero-root .hero-content {
    padding-bottom: 5.75rem;
  }
}

.akep-hero-root .hero-content-inner {
  width: min(100% - 2rem, var(--akep-max));
  margin-inline: auto;
  pointer-events: auto;
}

.akep-hero-root .hero-copy {
  position: relative;
  max-width: 48rem;
  width: 100%;
}

.akep-hero-root .signal-bar {
  width: 3rem;
  height: 0.25rem;
  background: var(--akep-signal);
  margin-bottom: 0.75rem;
}

.akep-hero-root .hero-tag {
  margin: 0;
  padding: 0 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  font-family: var(--akep-font-medium) !important;
}

.akep-hero-root .hero-title-wrap {
  margin-top: 0.75rem;
}

.akep-hero-root .hero-title,
body.page .elementor-widget-akep-hero .elementor-widget-container .hero-title,
body.page .elementor-widget-akep-hero .akep-hero-root .hero-title {
  font-family: var(--akep-font-bold) !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-align: left !important;
  margin: 0;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
}

.akep-hero-root .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.akep-hero-root .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-family: var(--akep-font-medium) !important;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
}

.akep-hero-root .hero-cta--solid {
  background: var(--akep-ink-foreground);
  color: var(--akep-ink);
}

.akep-hero-root .hero-cta--solid:hover {
  background: color-mix(in oklab, var(--akep-ink-foreground) 90%, transparent);
}

.akep-hero-root .hero-cta--ghost {
  border: 1px solid color-mix(in oklab, var(--akep-ink-foreground) 30%, transparent);
}

.akep-hero-root .hero-cta--ghost:hover {
  background: color-mix(in oklab, var(--akep-ink-foreground) 10%, transparent);
}

/* Controls: bottom-right in container, arrows + dots on one line */
.akep-hero-root .hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0 0 1.5rem;
  pointer-events: none;
}

.akep-hero-root .hero-controls-inner {
  width: min(100% - 2rem, var(--akep-max));
  margin-inline: auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem;
  pointer-events: auto;
}

.akep-hero-root .hero-arrows {
  display: flex;
  flex-shrink: 0;
  order: 1;
  gap: 0.5rem;
  margin-left: 0;
  margin-right: 0;
}

.akep-hero-root .hero-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--akep-ink-foreground) 30%, transparent);
  background: color-mix(in oklab, var(--akep-ink) 55%, transparent);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 31;
  pointer-events: auto;
}

.akep-hero-root .hero-arrows button:after {
  display: none;
}

.akep-hero-root .hero-arrows button:hover {
  background: color-mix(in oklab, var(--akep-ink-foreground) 10%, transparent);
}

.akep-hero-root .akep-hero-swiper > .swiper-pagination,
.akep-hero-root .swiper-pagination,
.akep-hero-root .swiper-horizontal > .swiper-pagination-bullets,
.akep-hero-root .swiper-pagination-bullets {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
  text-align: left !important;
  display: flex !important;
  flex-shrink: 0;
  order: 2;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
}

.akep-hero-root .hero-dot,
.akep-hero-root .swiper-pagination-bullet.hero-dot {
  height: 0.625rem;
  width: 0.625rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: color-mix(in oklab, var(--akep-ink-foreground) 35%, transparent);
  opacity: 1;
  margin: 0 !important;
  transition: width 0.3s ease, background-color 0.3s ease;
  padding: 0;
}

.akep-hero-root .hero-dot.is-active,
.akep-hero-root .swiper-pagination-bullet.hero-dot.is-active,
.akep-hero-root .swiper-pagination-bullet-active.hero-dot {
  width: 2rem;
  background: var(--akep-signal);
}

.akep-hero-root .hero-count {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .akep-hero-root .hero-dot {
    transition: none;
  }
}
