/* ============================================================
   LIGHTWEIGHT HERO SLIDER – simple-slider.css
   Webomatic · Pure CSS + Vanilla JS, no plugin files
   ============================================================ */

:root {
  --slider-blue:      #0060AA;
  --slider-blue-mid:  #0080E0;
  --slider-white:     #ffffff;
  --slider-overlay:   rgba(6, 13, 24, 0.45);
}

/* ─── WRAPPER ─── */
.ws-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
  background: #0a1830; /* shows briefly before first image paints */
}

/* track holds all slides side by side, moved with transform */
.ws-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* each slide takes full width of the wrapper */
.ws-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.ws-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* dark gradient so text stays readable on any photo */
.ws-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 13, 24, 0.65) 0%,
    rgba(6, 13, 24, 0.35) 45%,
    rgba(6, 13, 24, 0.05) 75%
  );
  z-index: 1;
}

/* ─── TEXT OVERLAY ─── */
.ws-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 60px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ws-caption-inner {
  max-width: 560px;
}

.ws-caption-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9fd3ff;
  background: rgba(0, 96, 170, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ws-caption-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease 0.08s, transform 0.55s ease 0.08s;
}

.ws-caption-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease 0.16s, transform 0.55s ease 0.16s;
}

.ws-caption-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slider-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease 0.24s, transform 0.55s ease 0.24s, background 0.2s, box-shadow 0.2s;
}
.ws-caption-btn:hover {
  background: var(--slider-blue-mid);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 96, 170, 0.35);
}

/* active slide animates its caption in */
.ws-slide.ws-active .ws-caption-tag,
.ws-slide.ws-active .ws-caption-title,
.ws-slide.ws-active .ws-caption-sub,
.ws-slide.ws-active .ws-caption-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ARROWS ─── */
.ws-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.ws-arrow:hover {
  background: var(--slider-blue);
  border-color: var(--slider-blue);
  transform: translateY(-50%) scale(1.06);
}
.ws-arrow svg { display: block; }
.ws-arrow-prev { left: 24px; }
.ws-arrow-next { right: 24px; }

@media (max-width: 640px) {
  .ws-arrow { width: 38px; height: 38px; }
  .ws-arrow-prev { left: 12px; }
  .ws-arrow-next { right: 12px; }
}

/* ─── DOTS ─── */
.ws-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.ws-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.25s;
}
.ws-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}
.ws-dot.ws-dot-active {
  background: var(--slider-white);
  width: 26px;
  border-radius: 5px;
}

/* ─── PROGRESS BAR (shows autoplay timing) ─── */
.ws-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--slider-blue);
  width: 0%;
  z-index: 3;
  transition: width linear;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ws-slider { height: 64vh; min-height: 420px; }
  .ws-caption { padding: 0 24px; }
  .ws-caption-inner { max-width: 100%; }
  .ws-caption-sub { display: none; } /* keep mobile clean */
}

@media (max-width: 480px) {
  .ws-slider { height: 56vh; min-height: 380px; }
}
