/*-----------------------------------------------------------------------------------
    WOWSlider styles + transition effect keyframes
    Chrome colors (bullets / arrows / caption) follow the active color preset.
-----------------------------------------------------------------------------------*/

#wowslider-container1 {
  position: relative;
  width: 100%;
  /*max-width: 1265px;*/
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cp-navy);
  font-size: 0;
  zoom: 1;
}

#wowslider-container1 .ws_images {
  position: relative;
  overflow: hidden;
  width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

#wowslider-container1 .ws_images ul {
  animation: none;
}

#wowslider-container1 .ws_images ul li {
  overflow: hidden;
  list-style: none;
  backface-visibility: hidden;
}

#wowslider-container1 .ws_images ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

#wowslider-container1 .ws_images ul li a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------------------- transition effects ------------------------------- */
#wowslider-container1 .ws_images ul li[class*=ws-fx-] {
  animation-timing-function: cubic-bezier(0.42, 0, 0.18, 1);
  animation-fill-mode: both;
}

/* fade */
@keyframes wsFxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ws-fx-fade-in { animation-name: wsFxFadeIn; }

/* slide (incoming sweeps over, outgoing drifts) */
@keyframes wsFxSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes wsFxSlideOut {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}
.ws-fx-slide-in { animation-name: wsFxSlideIn; }
.ws-fx-slide-out { animation-name: wsFxSlideOut; }

/* zoom (incoming scales down into focus) */
@keyframes wsFxZoomIn {
  from { transform: scale(1.28); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes wsFxZoomOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.1); opacity: 0.6; }
}
.ws-fx-zoom-in { animation-name: wsFxZoomIn; }
.ws-fx-zoom-out { animation-name: wsFxZoomOut; }

/* kenburns (slow cinematic pan + settle) */
@keyframes wsFxKenburnsIn {
  from { transform: scale(1.18) translate(2.5%, 2%); opacity: 0.35; }
  to { transform: scale(1) translate(0, 0); opacity: 1; }
}
@keyframes wsFxKenburnsOut {
  from { opacity: 1; }
  to { opacity: 0.4; }
}
.ws-fx-kenburns-in { animation-name: wsFxKenburnsIn; }
.ws-fx-kenburns-out { animation-name: wsFxKenburnsOut; }

/* flip (horizontal card flip toward the viewer) */
@keyframes wsFxFlipIn {
  from { transform: rotateX(88deg); opacity: 0; }
  to { transform: rotateX(0); opacity: 1; }
}
@keyframes wsFxFlipOut {
  from { opacity: 1; }
  to { opacity: 0.25; }
}
.ws-fx-flip-in { animation-name: wsFxFlipIn; transform-origin: 50% 100%; }
.ws-fx-flip-out { animation-name: wsFxFlipOut; }

/* cube (both faces rotate in 3D) */
@keyframes wsFxCubeIn {
  from { transform: rotateY(75deg); opacity: 0.35; }
  to { transform: rotateY(0); opacity: 1; }
}
@keyframes wsFxCubeOut {
  from { transform: rotateY(0); opacity: 1; }
  to { transform: rotateY(-75deg); opacity: 0.35; }
}
.ws-fx-cube-in { animation-name: wsFxCubeIn; transform-origin: 0% 50%; }
.ws-fx-cube-out { animation-name: wsFxCubeOut; transform-origin: 100% 50%; }

/* book (page turns open from the left edge) */
@keyframes wsFxBookIn {
  from { transform: rotateY(-82deg); opacity: 0.4; }
  to { transform: rotateY(0); opacity: 1; }
}
@keyframes wsFxBookOut {
  from { opacity: 1; }
  to { opacity: 0.3; }
}
.ws-fx-book-in { animation-name: wsFxBookIn; transform-origin: 0% 50%; }
.ws-fx-book-out { animation-name: wsFxBookOut; }

/* blinds slices are animated with JS (.ws-blinds-overlay) */

/* -------------------------------- caption ------------------------------------ */
#wowslider-container1 .ws-title {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.5;
}
#wowslider-container1 .ws-caption-card {
  font-family: "Rubik", sans-serif;
}
/* staggered entrance: children slide in from the left when .ws-show is added */
#wowslider-container1 .ws-caption-card > * {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
#wowslider-container1 .ws-title.ws-show .ws-caption-card > * {
  opacity: 1;
  transform: translateX(0);
}
#wowslider-container1 .ws-title.ws-show .ws-caption-card > *:nth-child(1) { transition-delay: 0.05s; }
#wowslider-container1 .ws-title.ws-show .ws-caption-card > *:nth-child(2) { transition-delay: 0.20s; }
#wowslider-container1 .ws-title.ws-show .ws-caption-card > *:nth-child(3) { transition-delay: 0.35s; }
#wowslider-container1 .ws-title.ws-show .ws-caption-card > *:nth-child(4) { transition-delay: 0.50s; }
/* WOW.js never processes the dynamically injected caption: keep it visible
   and let the staggered transition above own the entrance animation */
#wowslider-container1 .ws-caption-card .wow {
  visibility: visible !important;
  animation: none !important;
}
#wowslider-container1 .ws-caption-sub {
  display: block;
  font-family: "Rajdhani";
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--cp-aqua);
  color: color-mix(in srgb, var(--cp-aqua) 60%, #ffffff);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
#wowslider-container1 .ws-caption-title {
  margin: 12px 0 14px;
  font-family: "Rajdhani";
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}
#wowslider-container1 .ws-caption-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--cp-ice);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
#wowslider-container1 .ws-caption-card .hero-btn {
  margin-top: 24px;
}
#wowslider-container1 .ws-caption-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-family: "Rajdhani";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cp-aqua);
  transition: color 0.25s ease;
}
#wowslider-container1 .ws-caption-btn i {
  font-size: 13px;
  transition: transform 0.25s ease;
}
#wowslider-container1 .ws-caption-btn:hover {
  color: var(--cp-ice);
}
#wowslider-container1 .ws-caption-btn:hover i {
  transform: translateX(5px);
}

/* -------------------------------- bullets ------------------------------------ */
#wowslider-container1 .ws_bullets {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 100%;
  z-index: 5;
  text-align: center;
}
#wowslider-container1 .ws_bullets > div {
  display: inline-flex;
  gap: 10px;
}
#wowslider-container1 .ws_bullets a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cp-ice);
  background: transparent;
  text-indent: -9999px;
  cursor: pointer;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
  -ms-transition: all 0.25s;
  transition: all 0.25s;
}
#wowslider-container1 .ws_bullets a:hover {
  border-color: var(--cp-aqua);
}
#wowslider-container1 .ws_bullets a.ws_selbull {
  background: var(--cp-aqua);
  border-color: var(--cp-aqua);
  transform: scale(1.2);
}

/* ------------------------------ prev / next ---------------------------------- */
#wowslider-container1 .ws_next,
#wowslider-container1 .ws_prev {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--cp-navy);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
}
#wowslider-container1 .ws_next { right: 28px; }
#wowslider-container1 .ws_prev { left: 28px; }
#wowslider-container1 .ws_next:before,
#wowslider-container1 .ws_prev:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--cp-ice);
  border-right: 3px solid var(--cp-ice);
}
#wowslider-container1 .ws_next:before {
  transform: translate(-62%, -50%) rotate(45deg);
}
#wowslider-container1 .ws_prev:before {
  transform: translate(-38%, -50%) rotate(-135deg);
}
#wowslider-container1 .ws_next:hover,
#wowslider-container1 .ws_prev:hover {
  background: var(--cp-aqua);
  border-color: var(--cp-aqua);
}
#wowslider-container1 .ws_next:hover:before,
#wowslider-container1 .ws_prev:hover:before {
  border-color: var(--cp-navy);
}

/* -------------------------------- responsive --------------------------------- */
@media (max-width: 991px) {
  #wowslider-container1 .ws-title {
    left: 40px;
    max-width: 340px;
  }
  #wowslider-container1 .ws-caption-sub {
    font-size: 13px;
    letter-spacing: 2.5px;
  }
  #wowslider-container1 .ws-caption-title {
    font-size: 28px;
    margin: 8px 0 10px;
  }
  #wowslider-container1 .ws-caption-desc {
    font-size: 13px;
    line-height: 1.6;
  }
  #wowslider-container1 .ws-caption-card .hero-btn {
    margin-top: 16px;
  }
  #wowslider-container1 .ws_next,
  #wowslider-container1 .ws_prev {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }
  #wowslider-container1 .ws_next { right: 16px; }
  #wowslider-container1 .ws_prev { left: 16px; }
}
@media (max-width: 767px) {
  #wowslider-container1 .ws-title {
    left: 24px;
    top: auto;
    bottom: 64px;
    transform: none;
    max-width: 300px;
  }
  #wowslider-container1 .ws-caption-title {
    font-size: 24px;
  }
}
@media (max-width: 575px) {
  #wowslider-container1 .ws-title {
    display: none !important;
  }
}
