/* ============================================================
   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: linear-gradient(
    90deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(10, 22, 40, 0.65) 50%,
    rgba(10, 22, 40, 0.35) 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: 640px;
  padding: 24px 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-bg-slider .slide-content h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-bg-slider .slide-content h1 em {
  color: #4ECDC4;
  font-style: normal;
}

.hero-bg-slider .slide-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 520px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-bg-slider .slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

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

/* Active slide's division tag is highlighted with that division's accent color */
.hero-bg-slider .slide-tag {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.hero-bg-slider .slide.active .slide-tag {
  background: var(--tag-accent, #FF7A45);
  border-color: var(--tag-accent, #FF7A45);
  color: #ffffff;
}

.hero-bg-slider .slide.active .slide-tag .dot {
  background: #ffffff !important;
}

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

.hero-bg-slider .btn-primary {
  background: #FF7A45;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255,122,69,0.35);
}

.hero-bg-slider .btn-primary:hover {
  background: #e86a35;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,122,69,0.45);
}

.hero-bg-slider .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-bg-slider .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  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: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  pointer-events: auto;
}

.hero-bg-slider .slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* 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: 10px;
}

.hero-bg-slider .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: static;
  overflow: visible;
}

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

.hero-bg-slider .slider-dot.active {
  background: #FF7A45;
  width: 32px;
  border-radius: 5px;
}

/* 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.6);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 1px;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* 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;
  }
}