/* Premium sliders — smooth motion, progress, glass controls */

:root {
  --slider-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --slider-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slider-duration: 0.75s;
}

/* ─── Shared progress bar ─── */
.slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 12;
  overflow: hidden;
}

.slider-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--md-accent, #2ec4b6), var(--md-primary, #e85d04));
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.slider-progress.is-running .slider-progress__fill {
  animation: slider-progress-fill var(--slider-autoplay, 6s) linear forwards;
}

@keyframes slider-progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Pill dots */
.slider-dots--pill {
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.slider-dots--pill .slider-dot,
.hero-slider__dots.slider-dots--pill .hero-slider__dot,
.doctors-slider__dots .doctors-slider__dot,
.bottom-slider__dots .bottom-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.35s var(--slider-ease-out), background 0.25s, transform 0.25s;
}

.slider-dots--pill .slider-dot.is-active,
.hero-slider__dots.slider-dots--pill .hero-slider__dot.is-active {
  width: 28px;
  background: #fff;
}

/* Glass arrows (shared pattern) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s var(--slider-ease-out), background 0.25s, box-shadow 0.25s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-arrow .material-icons-round {
  font-size: 1.75rem;
}

/* ═══ HERO SLIDER ═══ */
.hero-slider {
  min-height: clamp(480px, 80vh, 760px);
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.hero-slider__track {
  transition: transform var(--slider-duration) var(--slider-ease-out);
  will-change: transform;
}

.hero-slider__slide::before {
  background: linear-gradient(
    108deg,
    rgba(15, 40, 58, 0.88) 0%,
    rgba(27, 73, 101, 0.72) 38%,
    rgba(27, 73, 101, 0.45) 62%,
    rgba(232, 93, 4, 0.28) 100%
  );
}

.hero-slider__bg {
  transform: scale(1.08);
  transition: transform 10s ease-out, opacity 0.6s ease;
  will-change: transform;
}

.hero-slider__slide.is-active .hero-slider__bg {
  transform: scale(1);
  animation: hero-ken-burns 12s ease-out forwards;
}

@keyframes hero-ken-burns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-slider__content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.55s var(--slider-ease-out);
}

.hero-slider__slide.is-active .hero-slider__content > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider__slide.is-active .hero-slider__badge { transition-delay: 0.08s; }
.hero-slider__slide.is-active .hero-slider__content h2 { transition-delay: 0.14s; }
.hero-slider__slide.is-active .hero-slider__content p { transition-delay: 0.22s; }
.hero-slider__slide.is-active .hero-slider__cta { transition-delay: 0.3s; }

.hero-slider__badge {
  background: rgba(46, 196, 182, 0.22);
  border: 1px solid rgba(46, 196, 182, 0.55);
  box-shadow: 0 4px 20px rgba(46, 196, 182, 0.15);
}

.hero-slider__content h2 {
  max-width: 22ch;
  letter-spacing: -0.02em;
}

.hero-slider__arrow {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s var(--slider-ease-out), background 0.25s, box-shadow 0.25s;
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.hero-slider__nav {
  bottom: 2rem;
  padding: 0 1rem;
}

.hero-slider__dots.slider-dots--pill .hero-slider__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-slider__dots.slider-dots--pill .hero-slider__dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--md-accent, #2ec4b6), #fff);
  border: none;
  transform: none;
}

.hero-slider .slider-progress {
  bottom: 0;
  height: 3px;
}

/* ═══ DOCTORS SLIDER ═══ */
.doctors-slider {
  padding: 0 3.5rem;
}

.doctors-slider__viewport {
  border-radius: 24px;
  box-shadow:
    0 4px 6px rgba(27, 73, 101, 0.04),
    0 24px 64px rgba(27, 73, 101, 0.14);
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

.doctors-slider__track {
  transition: transform var(--slider-duration) var(--slider-ease-out);
  will-change: transform;
}

.doctors-slider__slide {
  transition: opacity 0.4s ease;
}

.doctors-slider__card {
  transform: scale(0.98);
  opacity: 0.92;
  transition: transform 0.55s var(--slider-ease-out), opacity 0.45s ease, box-shadow 0.45s ease;
}

.doctors-slider__slide.is-active .doctors-slider__card {
  transform: scale(1);
  opacity: 1;
  box-shadow:
    0 20px 60px rgba(27, 73, 101, 0.16),
    0 0 0 1px rgba(46, 196, 182, 0.12);
}

.doctors-slider__arrow {
  width: 48px;
  height: 48px;
  border: none;
  background: #fff;
  color: var(--md-secondary, #1b4965);
  box-shadow: 0 8px 28px rgba(27, 73, 101, 0.15);
  transition: transform 0.25s var(--slider-ease-out), background 0.2s, color 0.2s, box-shadow 0.25s;
}

.doctors-slider__arrow:hover {
  background: var(--md-primary, #e85d04);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 36px rgba(232, 93, 4, 0.35);
}

.doctors-slider__footer {
  margin-top: 1.25rem;
  position: relative;
}

.doctors-slider__dots .doctors-slider__dot {
  width: 10px;
  height: 10px;
  border: none;
  background: #cbd5e1;
  border-radius: 999px;
  transition: width 0.35s var(--slider-ease-out), background 0.25s;
}

.doctors-slider__dots .doctors-slider__dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--md-secondary, #1b4965), var(--md-primary, #e85d04));
  transform: none;
}

.doctors-slider .slider-progress--dark {
  position: relative;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  height: 4px;
}

.doctors-slider .slider-progress--dark .slider-progress__fill {
  background: linear-gradient(90deg, var(--md-secondary, #1b4965), var(--md-primary, #e85d04));
}

/* ═══ BOTTOM NEWS SLIDER ═══ */
.bottom-slider {
  background: linear-gradient(165deg, #f0f6fc 0%, #e4ecf4 50%, #dce6f0 100%);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.bottom-slider::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-slider__stage {
  gap: 0.75rem;
}

.bottom-slider__viewport {
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
}

.bottom-slider__track {
  display: flex;
  min-height: 160px;
  transition: transform var(--slider-duration) var(--slider-ease-out);
  will-change: transform;
}

.bottom-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: block !important;
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 40px rgba(27, 73, 101, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: none;
  animation: none;
}

.bottom-slider__slide.is-active {
  animation: bottom-slide-in 0.55s var(--slider-ease-out);
}

@keyframes bottom-slide-in {
  from {
    opacity: 0.6;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bottom-slider__arrow {
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--md-secondary, #1b4965);
  border: 1px solid rgba(27, 73, 101, 0.1);
  box-shadow: 0 6px 20px rgba(27, 73, 101, 0.12);
}

.bottom-slider__arrow:hover {
  background: var(--md-primary, #e85d04);
  color: #fff;
  border-color: transparent;
}

.bottom-slider__dots .bottom-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  transition: width 0.35s var(--slider-ease-out), background 0.25s;
}

.bottom-slider__dots .bottom-slider__dot.is-active {
  width: 24px;
  background: var(--md-primary, #e85d04);
  transform: none;
}

/* Gallery strip hover */
.gallery-strip__item {
  transition: transform 0.4s var(--slider-ease-out), box-shadow 0.4s ease;
}

.gallery-strip__item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(27, 73, 101, 0.2);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track,
  .doctors-slider__track,
  .bottom-slider__track {
    transition-duration: 0.01ms;
  }
  .hero-slider__bg,
  .hero-slider__content > *,
  .doctors-slider__card,
  .bottom-slider__slide {
    animation: none !important;
    transition: none !important;
  }
  .slider-progress__fill {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .hero-slider__arrow {
    width: 44px;
    height: 44px;
  }
  .doctors-slider {
    padding: 0 0.5rem;
  }
  .doctors-slider__arrow {
    width: 40px;
    height: 40px;
  }
}
