/* ============================================================
   HERO BACKGROUND IMAGE SLIDER
   ============================================================ */

.hero-bg-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: #0a1628;
  touch-action: pan-y;
}

.hero-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
  will-change: transform;
}

.hero-bg-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* Exiting/entering positions used during a horizontal slide transition */
.hero-bg-slider .slide.slide-left {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-bg-slider .slide.slide-right {
  transform: translateX(100%);
  z-index: 1;
}

/* Dark overlay for text readability */
.hero-bg-slider .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(9, 13, 34, 0.9) 0%, rgba(9, 13, 34, 0.6) 60%, rgba(9, 13, 34, 0.2) 100%);
  z-index: 2;
}

/* Slide content positioning */
.hero-bg-slider .slide .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-bg-slider .slide-content {
  max-width: 680px;
  padding: 24px 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-bg-slider .slide-content h1 {
  color: #ffffff;
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(9, 13, 34, 0.4);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-bg-slider .slide-content h1 em {
  color: var(--brass-light);
  font-style: normal;
  font-weight: 800;
}

.hero-bg-slider .slide-content p {
  color: rgba(241, 245, 249, 0.85);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 560px;
  text-shadow: 0 2px 10px rgba(9, 13, 34, 0.3);
}

.hero-bg-slider .slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 18px 7px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 0.8, 0.3, 1);
}

.hero-bg-slider .slide-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #ffffff;
}

/* Active slide's division tag is highlighted with that division's accent color */
.hero-bg-slider .slide.active .slide-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--tag-accent, var(--brass));
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.hero-bg-slider .slide.active .slide-tag .dot {
  background: var(--tag-accent, var(--brass)) !important;
  box-shadow: 0 0 10px var(--tag-accent, var(--brass));
}

/* Hero actions buttons */
.hero-bg-slider .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-bg-slider .btn-primary {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #fff;
  border: none;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.3s cubic-bezier(0.16, 0.8, 0.3, 1);
  box-shadow: 0 16px 32px -12px rgba(31, 81, 255, 0.5);
}

.hero-bg-slider .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -12px rgba(31, 81, 255, 0.6);
}

.hero-bg-slider .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 0.8, 0.3, 1);
}

.hero-bg-slider .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Slider arrows - positioned on right side
   NOTE: .slider-arrows / .slider-arrow / .slide-counter / .slider-controls / .slider-dot
   are also styled by an older, unrelated slider design in style.css that shares these
   class names. Every property below is explicitly re-declared (not just the ones we
   "want to change") so nothing from that older ruleset can leak through via cascade. */
.hero-bg-slider .slider-arrows {
  position: absolute;
  right: 40px;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 0;
  pointer-events: auto;
  z-index: 10;
}

.hero-bg-slider .slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 0.8, 0.3, 1);
  flex-shrink: 0;
  pointer-events: auto;
}

.hero-bg-slider .slider-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brass-light);
  color: var(--brass-light);
  transform: scale(1.08);
}

/* Slider dots at bottom */
.hero-bg-slider .slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  display: block;
  padding: 0;
  z-index: 10;
}

.hero-bg-slider .slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-bg-slider .slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 0.8, 0.3, 1);
  padding: 0;
  position: static;
  overflow: visible;
}

.hero-bg-slider .slider-dot::after {
  content: none;
}

.hero-bg-slider .slider-dot.active {
  background: var(--brass);
  width: 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(255, 70, 48, 0.4);
}

/* Slide counter */
.hero-bg-slider .slide-counter {
  position: absolute;
  bottom: 40px;
  right: 40px;
  top: auto;
  left: auto;
  z-index: 10;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--ff-mono);
  letter-spacing: 0.15em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hero divider wave */
.hero-bg-slider .hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  line-height: 0;
}

.hero-bg-slider .hero-divider svg {
  display: block;
  width: 100%;
  height: 56px;
}

/* Responsive */
@media (max-height: 700px) {
  .hero-bg-slider .slide-tag {
    margin-bottom: 12px;
  }

  .hero-bg-slider .slide-content h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 10px;
  }

  .hero-bg-slider .slide-content p {
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .hero-bg-slider {
    min-height: 500px;
    max-height: 700px;
  }

  .hero-bg-slider .slide-content {
    max-width: 100%;
    padding: 20px;
  }

  .hero-bg-slider .slide-content h1 {
    font-size: 2rem;
  }

  .hero-bg-slider .slide-content p {
    font-size: 1rem;
  }

  .hero-bg-slider .slider-arrows {
    right: 20px;
  }

  .hero-bg-slider .slide-counter {
    right: 20px;
    bottom: 80px;
  }

  .hero-bg-slider .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-bg-slider .btn-primary,
  .hero-bg-slider .btn-outline {
    width: 100%;
    justify-content: center;
  }
}