﻿/* CEyS site module: home slider */

.ceys-home-slider-host {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.ceys-home-slider {
  position: relative;
  width: 100%;
  height: clamp(300px, 30vw, 560px);
  overflow: hidden;
  background: #163047;
}

.ceys-home-slider-track,
.ceys-home-slide {
  position: absolute;
  inset: 0;
}

.ceys-home-slide {
  display: block;
  opacity: 0;
  color: #fff;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
  transition: opacity .45s ease;
  pointer-events: none;
}

.ceys-home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ceys-home-slide-shade {
  position: absolute;
  inset: auto 0 0;
  min-height: 46px;
  background: rgba(30, 37, 43, .72);
}

.ceys-home-slide-copy {
  position: absolute;
  left: clamp(20px, 19vw, 372px);
  right: 24px;
  bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.ceys-home-slide-copy strong {
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
}

.ceys-home-slide-copy em {
  font-style: normal;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 800;
}

.ceys-home-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 78px;
  padding: 0;
  color: #5fb030 !important;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 82px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.52), 0 0 18px rgba(95,176,48,.32);
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, text-shadow .18s ease;
}

.ceys-home-slider-arrow:hover,
.ceys-home-slider-arrow:focus-visible {
  color: #00b0cd !important;
  background: rgba(29, 58, 108, .42) !important;
  box-shadow: 0 0 0 1px rgba(0,176,205,.38), 0 12px 28px rgba(0,0,0,.28) !important;
  outline: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.62), 0 0 22px rgba(0,176,205,.48);
}

.ceys-home-slider-arrow.is-prev {
  left: clamp(16px, 7vw, 136px);
}

.ceys-home-slider-arrow.is-next {
  right: clamp(16px, 7vw, 136px);
}

.ceys-home-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.ceys-home-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(95,176,48,.45) !important;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.ceys-home-slider-dots button.is-active {
  background: #5fb030 !important;
  box-shadow: 0 0 0 3px rgba(95,176,48,.22);
}

html body .ceys-home-slider .ceys-home-slider-arrow,
html body .ceys-home-slider .ceys-home-slider-arrow:visited {
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #5fb030 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

html body .ceys-home-slider .ceys-home-slider-arrow:hover,
html body .ceys-home-slider .ceys-home-slider-arrow:focus,
html body .ceys-home-slider .ceys-home-slider-arrow:active,
html body .ceys-home-slider .ceys-home-slider-arrow:focus-visible {
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #00b0cd !important;
  background: rgba(29, 58, 108, .42) !important;
  background-color: rgba(29, 58, 108, .42) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 1px rgba(0,176,205,.38), 0 12px 28px rgba(0,0,0,.28) !important;
  outline: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

html body .ceys-home-slider .ceys-home-slider-dots button,
html body .ceys-home-slider .ceys-home-slider-dots button:hover,
html body .ceys-home-slider .ceys-home-slider-dots button:focus,
html body .ceys-home-slider .ceys-home-slider-dots button:active {
  background: rgba(95,176,48,.45) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

html body .ceys-home-slider .ceys-home-slider-dots button.is-active,
html body .ceys-home-slider .ceys-home-slider-dots button.is-active:hover,
html body .ceys-home-slider .ceys-home-slider-dots button.is-active:focus {
  background: #5fb030 !important;
  border: 0 !important;
  box-shadow: 0 0 0 3px rgba(95,176,48,.22) !important;
}

@media (max-width: 900px) {
  .ceys-home-slider {
    height: clamp(220px, 48vw, 340px);
  }

  .ceys-home-slide-copy {
    left: 18px;
    bottom: 10px;
  }

  .ceys-home-slider-arrow {
    width: 46px;
    height: 62px;
    font-size: 66px;
  }

  .ceys-home-slider-arrow.is-prev {
    left: 8px;
  }

  .ceys-home-slider-arrow.is-next {
    right: 8px;
  }
}
