/* 5th Axis — Hero Slider (Elementor widget) */

.axis5th-hero-swiper {
  --axis5th-accent: #DD2828;
  --axis5th-heading: #ffffff;
  --axis5th-muted: #9a9a9a;
  --axis5th-bg: #000000;

  width: 100%;
  min-height: 100vh;
  background: var(--axis5th-bg);
  color: var(--axis5th-heading);
  position: relative;
  overflow: hidden;
}

.axis5th-hero-swiper .swiper-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.axis5th-hero-slide {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 5rem);
  padding-bottom: calc(clamp(2rem, 6vw, 4rem) + 4rem);
  position: relative;
  background-color: var(--axis5th-bg);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.axis5th-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.65) 40%,
    rgba(0, 0, 0, 0.15) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.axis5th-hero-swiper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--axis5th-accent);
  z-index: 10;
}

.axis5th-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.axis5th-hero-label {
  font-family: var(--e-global-typography-57475c0-font-family), Sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--e-global-color-299f9b7);
  margin-bottom: 1.25rem;
}

.axis5th-hero-title {
  font-family: var(--e-global-typography-a0ffd52-font-family);
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--axis5th-heading);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.axis5th-hero-title .axis5th-highlight {
  color: var(--axis5th-accent);
}

.axis5th-hero-desc {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.7;
  color: var(--e-global-color-e235f34);
  margin-bottom: 2rem;
  max-width: 480px;
}

.axis5th-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.axis5th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.axis5th-btn-primary {
  background: var(--axis5th-accent);
  color: #ffffff;
  border-color: var(--axis5th-accent);
}

.axis5th-btn-primary:hover {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

.axis5th-btn-outline {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.axis5th-btn-outline:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.axis5th-btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

.axis5th-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.axis5th-hero-feature strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--axis5th-heading);
  margin-bottom: 0.25rem;
}

.axis5th-hero-feature strong .axis5th-dot {
  color: var(--axis5th-accent);
}

.axis5th-hero-feature span {
  font-size: 0.8rem;
  color: var(--axis5th-muted);
}

.axis5th-hero-nav {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: clamp(1.25rem, 5vw, 5rem);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.axis5th-hero-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--axis5th-heading);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
  padding: 0;
}

.axis5th-hero-nav-btn:hover {
  color: var(--axis5th-accent);
}

.axis5th-hero-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.axis5th-hero-pagination {
  position: absolute;
  bottom: clamp(1.75rem, 4vw, 2.75rem) !important;
  right: clamp(1.25rem, 5vw, 5rem);
  left: auto !important;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  z-index: 20;
}

.axis5th-hero-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: #3a3a3a;
  opacity: 1;
  margin: 0 !important;
  transition: width 0.3s, background 0.3s;
}

.axis5th-hero-pagination .swiper-pagination-bullet-active {
  width: 48px;
  background: var(--axis5th-accent);
}

/* Elementor editor: keep the section from collapsing when there are no slides yet */
.elementor-editor-active .axis5th-hero-swiper:empty {
  min-height: 200px;
}

@media (max-width: 900px) {
  .axis5th-hero-slide {
    background-position: 75% center;
    align-items: flex-end;
    padding-bottom: calc(clamp(2rem, 6vw, 4rem) + 5rem);
  }

  .axis5th-hero-slide::before {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.75) 45%,
      rgba(0, 0, 0, 0.35) 70%,
      transparent 100%
    );
  }

  .axis5th-hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .axis5th-hero-slide {
    background-position: 85% center;
    min-height: 100vh;
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .axis5th-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .axis5th-btn {
    justify-content: center;
  }

  .axis5th-hero-features {
    flex-direction: row;
    gap: 1.25rem;
  }

  .axis5th-hero-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .axis5th-hero-pagination .swiper-pagination-bullet {
    width: 24px;
  }

  .axis5th-hero-pagination .swiper-pagination-bullet-active {
    width: 36px;
  }
  .axis5th-hero-label{
    margin-bottom: 0.6rem;
    color: var(--e-global-color-e235f34);
  }
  .axis5th-hero-title,
  .axis5th-hero-desc{
    margin-bottom: 1rem;
  }
}