/* SkillSeva hero banner carousel — brand: purple #59279D, ink #111827, font Plus Jakarta Sans */

.ss-hero {
  --ss-ink: #111827;
  --ss-brand: #59279D;
  --ss-cream: #F5F7FF;
  position: relative;
  width: 100%;
  background: var(--ss-ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.ss-hero__frame {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
}

/* Reserve exact banner shape before images load: no layout shift, no stretching. */
.ss-hero__swiper,
.ss-hero__slide { aspect-ratio: 1920 / 550; }
.ss-hero__swiper { overflow: hidden; }

.ss-hero__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.ss-hero__link:focus-visible {
  outline: 3px solid var(--ss-brand);
  outline-offset: -3px;
}

.ss-hero picture { display: block; width: 100%; height: 100%; }
.ss-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* images are pre-sized to this exact ratio, so nothing is cropped */
  user-select: none;
  -webkit-user-drag: none;
}

/* Optional visible CTA (enabled per banner in admin) */
.ss-hero__cta {
  position: absolute;
  left: clamp(16px, 5vw, 96px);
  bottom: clamp(16px, 4vw, 56px);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ss-brand);
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 17px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.ss-hero__link:hover .ss-hero__cta { background: #47207D; }

/* Arrows */
.ss-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ss-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.ss-hero__arrow:hover { background: #fff; transform: scale(1.06); }
.ss-hero__arrow:focus-visible { outline: 3px solid var(--ss-brand); outline-offset: 2px; }
.ss-hero__arrow--prev { left: 20px; }
.ss-hero__arrow--next { right: 20px; }

/* Dots + pause, below the banner */
.ss-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--ss-cream);
}
.ss-hero__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: static !important;
  width: auto !important;
}
.ss-hero__dots .swiper-pagination-bullet {
  /* 44px touch target around a small visible dot */
  width: 44px;
  height: 44px;
  margin: 0 !important;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  position: relative;
  cursor: pointer;
}
.ss-hero__dots .swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 999px;
  background: #9CA3AF;
  transition: width 0.3s, margin 0.3s, background 0.3s;
}
.ss-hero__dots .swiper-pagination-bullet-active::after {
  width: 30px;
  margin-left: -15px;
  background: var(--ss-brand);
}
.ss-hero__dots .swiper-pagination-bullet:focus-visible { outline: 3px solid var(--ss-brand); outline-offset: -8px; }

.ss-hero__toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ss-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ss-hero__toggle:hover { background: rgba(14, 27, 44, 0.08); }
.ss-hero__toggle:focus-visible { outline: 3px solid var(--ss-brand); }
.ss-hero__icon-play { display: none; }
.ss-hero.is-paused .ss-hero__icon-play { display: block; }
.ss-hero.is-paused .ss-hero__icon-pause { display: none; }

/* Mobile: square banners, swipe instead of arrows */
@media (max-width: 767px) {
  .ss-hero__swiper,
  .ss-hero__slide { aspect-ratio: 1 / 1; }
  .ss-hero__arrow { display: none; }
  .ss-hero__cta { left: 16px; bottom: 16px; }
}

/* Before Swiper loads (or if JS is off) show only the first banner, no jump */
.ss-hero__swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; }
.ss-hero__swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }

@media (prefers-reduced-motion: reduce) {
  .ss-hero__arrow,
  .ss-hero__dots .swiper-pagination-bullet::after { transition: none; }
}

.ss-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
