/* Drive EV custom hero slider — replaces Revolution Slider on the homepage */

.dev-hero {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-h, 80px));
  overflow: hidden;
}

.dev-hero__bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2026/03/banner-new.jpg') center/cover no-repeat;
}

.dev-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.dev-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 120px;
  color: #fffcfc;
}

/* Slide text area */
.dev-hero__slides {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 90px;
  overflow: hidden;
}

.dev-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.dev-hero__slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dev-hero__slide--exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.dev-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 550;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: 1.5px;
  text-align: center;
  white-space: normal;
  color: #fffcfc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.dev-hero__buttons {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.dev-hero__btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #00337a;
  background: #fffcfc;
  padding: 10px 32px;
  border-radius: 4px;
  border: 2px solid #fffcfc;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.dev-hero__btn:hover {
  background: #00337a;
  color: #fffcfc;
  border-color: #00337a;
}

/* Arrows — bare chevrons */
.dev-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 45px;
  height: 45px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}

.dev-hero__arrow:hover { opacity: 0.7; }

.dev-hero__arrow::before {
  content: '';
  display: block;
  width: 45px;
  height: 45px;
  border-left: 3px solid #fffcfc;
  border-bottom: 3px solid #fffcfc;
}

.dev-hero__arrow--prev { left: 30px; }
.dev-hero__arrow--prev::before { transform: rotate(45deg); }

.dev-hero__arrow--next { right: 30px; }
.dev-hero__arrow--next::before { transform: rotate(-135deg); }

/* Responsive */
@media (max-width: 767px) {
  .dev-hero__content { padding: 0 50px; }
  .dev-hero__slides { height: 100px; }
  .dev-hero__buttons { flex-direction: column; gap: 16px; align-items: center; margin-top: 36px; }
  .dev-hero__btn { padding: 10px 28px; font-size: 14px; }
  .dev-hero__arrow::before { width: 18px; height: 18px; border-width: 2px; }
  .dev-hero__arrow--prev { left: 5px; }
  .dev-hero__arrow--next { right: 5px; }
}

@media (max-width: 480px) {
  .dev-hero__content { padding: 0 30px; }
  .dev-hero__slides { height: 80px; }
  .dev-hero__btn { padding: 10px 20px; font-size: 13px; }
  .dev-hero__arrow::before { width: 14px; height: 14px; }
  .dev-hero__arrow--prev { left: 2px; }
  .dev-hero__arrow--next { right: 2px; }
}

/* RTL support */
[dir="rtl"] .dev-hero__slide { transform: translateX(-60px); }
[dir="rtl"] .dev-hero__slide--active { transform: translateX(0); }
[dir="rtl"] .dev-hero__slide--exit-left { transform: translateX(60px); }
[dir="rtl"] .dev-hero__arrow--prev { left: auto; right: 30px; }
[dir="rtl"] .dev-hero__arrow--next { right: auto; left: 30px; }
[dir="rtl"] .dev-hero__arrow--prev::before { transform: rotate(-135deg); }
[dir="rtl"] .dev-hero__arrow--next::before { transform: rotate(45deg); }

/* Hide Revolution Slider on homepage — replaced by dev-hero slider */
.drive-ev-hero-slider,
#rev_slider_3_1_wrapper,
#rev_slider_1_2_wrapper,
.rev_slider_wrapper,
.tp-fullwidth-forcer,
.forcefullwidth_wrapper_tp_banner {
  display: none !important;
}
