/* ============================================================
   Home / Index Page  —  hero-* namespace
   All styles extracted from style.css + responsive.css
   ============================================================ */

/* ════════════════════════════════════
   Hero Slider — outer section
   ════════════════════════════════════ */

.hero-slider {
  position: relative;
}

/* Hide default Swiper arrow text */
.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
  display: none;
}

/* ── Background image panel ── */
.hero-slider figure {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  z-index: -1;
}

.hero-slider figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ── Rich dual-layer overlay ── */
.hero-slider figure::before {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10, 19, 51, 0.94) 0%,
      rgba(10, 19, 51, 0.68) 38%,
      rgba(0, 0, 0, 0.22) 68%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.28) 100%
    );
  z-index: 1;
}

/* ── Decorative left-side vector ── */
.hero-slider figure::after {
  position: absolute;
  content: "";
  background-image: url(../../img/swiper-vector.png);
  width: 540px;
  height: 100%;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 98%;
  z-index: 2;
  opacity: 0.55;
  pointer-events: none;
}


/* ════════════════════════════════════
   Swiper wrapper
   ════════════════════════════════════ */

.hero-swiper {
  height: 70vh;
  min-height: 460px;
  max-height: 740px;
  position: relative;
}

.hero-swiper .container {
  z-index: 1;
}

/* ── Navigation arrows — glass circles ── */
.hero-swiper .hero-pagination {
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  pointer-events: all;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.22s,
    border-color 0.22s,
    transform 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: rgba(255, 108, 44, 0.42);
  border-color: #ff6c2c;
  transform: scale(1.1);
}

.hero-swiper .swiper-button-next {
  right: 28px;
}

.hero-swiper .swiper-button-prev {
  left: 28px;
}

/* ── Pagination — pill-style active dot ── */
.hero-slider .swiper-pagination {
  bottom: 22px !important;
}

.hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: #ff6c2c;
  width: 26px;
  border-radius: 4px;
}


/* ════════════════════════════════════
   Hero content — text overlay
   ════════════════════════════════════ */

.hero-content {
  position: relative;
  top: 25%;
  transform: translateY(-50%);
}

.banner-title {
  font-weight: 900;
  font-size: 66px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-align: center;
  color: #ffffff;
  max-width: 860px;
  margin: 0 auto;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.banner-title span {
  font-family: "sansita_oneregular";
  position: relative;
  color: #ff6c2c;
  display: inline-block;
}

.banner-title span::before {
  position: absolute;
  content: "";
  background-image: url(../../img/line-bg.png);
  width: 100%;
  height: 19px;
  right: 0;
  bottom: -22px;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ════════════════════════════════════
   Search bar overlap below hero
   ════════════════════════════════════ */

.serach-ride-request {
  margin-top: -120px;
}

/* ════════════════════════════════════
   Responsive
   ════════════════════════════════════ */

/* Large desktop — short screen */
@media screen and (min-device-width: 1200px) and (max-height: 800px) {
  .hero-swiper {
    height: 860px;
  }
}

/* ≤ 1199px */
@media (max-width: 1199.98px) {
  .banner-title {
    font-size: 48px;
    max-width: 660px;
  }

  .hero-swiper {
    height: 560px;
    min-height: 400px;
  }

  .hero-swiper .hero-pagination {
    top: 34%;
  }

  .hero-slider .swiper-slide {
    padding-bottom: 120px;
  }

  .hero-slider figure::after {
    width: 300px;
    background-size: auto 70%;
  }
}

/* ≤ 991px */
@media (max-width: 991.98px) {
  .banner-title {
    font-size: 36px;
    max-width: 500px;
  }

  .hero-swiper {
    height: 480px;
    min-height: 360px;
  }

  .hero-swiper .hero-pagination {
    top: 40%;
  }

  .hero-slider .swiper-slide {
    padding-bottom: 120px;
  }

  .hero-slider figure::after {
    width: 240px;
    background-size: auto 65%;
    opacity: 0.4;
  }

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

/* ≤ 767px — hide hero slider entirely */
@media (max-width: 767.98px) {
  .hero-slider {
    display: none;
  }

  /* Reset ride-request when no hero behind it */
  .serach-ride-request,
  .serach-ride-request.ride-request,
  .ride-request.serach-ride-request {
    margin-top: 0 !important;
    border-radius: 0;
    padding-top: 24px;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}
