/*!
 * Colorlib kit: sliders.css (load after vendor/swiper/14.3.0/swiper-bundle.min.css, before the theme CSS)
 *
 * Replaces owl.carousel.min.css / owl.theme.default.min.css / slick.css / slick-theme.css for
 * sliders built by js/sliders.js in Owl or Slick compat mode. Selectors keep the original plugin
 * specificity, so theme rules that used to win (or lose) still do: the kit's own marker classes
 * (.kit-owl, .kit-slick) sit inside :where(), which adds nothing. Capital Shop: `.kit-slick
 * .slick-slide { min-height: 1px }` at (0,2,0) beat the theme's `.slider-height { min-height: 700px }`
 * (slick.css had `.slick-slide` at (0,1,0)) and the hero collapsed to 300 px.
 */

/* ---- Owl Carousel compat (.kit-owl is added by sliders.js) ---- */
.kit-owl { position: relative; z-index: 1; width: 100%; -webkit-tap-highlight-color: transparent; }
.kit-owl .owl-stage-outer { position: relative; }
.kit-owl .owl-item { position: relative; min-height: 1px; -webkit-tap-highlight-color: transparent; }
/* as in owl.carousel.css, plus height:auto for images with width/height attributes; imgFullWidth: false
   (.kit-owl-img-auto, Owl 1 had no such rule) leaves images their own width, e.g. testimonial avatars */
.owl-carousel:where(:not(.kit-owl-img-auto)) .owl-item img { display: block; width: 100%; height: auto; }
/* The <button> reset has no specificity at all, so every theme rule wins: Owl 2.2 drew arrows as
   <div>s, and a (0,3,1) reset beat Alime's `.hero-slides .owl-prev` rules (16 px dark arrows). */
:where(.kit-owl .owl-nav button.owl-prev, .kit-owl .owl-nav button.owl-next, .kit-owl button.owl-dot) { background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; }
.kit-owl .owl-nav.disabled, .kit-owl .owl-dots.disabled, .kit-owl .owl-nav[hidden], .kit-owl .owl-dots[hidden] { display: none; }
.kit-owl .owl-nav .disabled { opacity: .5; cursor: default; }

/* owl.theme.default look (only when the markup has .owl-theme, like the original) */
.owl-theme:where(.kit-owl) .owl-nav { margin-top: 10px; text-align: center; -webkit-tap-highlight-color: transparent; }
/* owl.theme.default's colour, size, padding and grey background for the arrows lost to
   owl.carousel.css's button reset (0,3,1, padding !important); they are left out so the look stays
   what Owl 2.3 rendered now that the kit's reset has no specificity. */
.owl-theme:where(.kit-owl) .owl-nav [class*="owl-"] { margin: 5px; display: inline-block; border-radius: 3px; }
.owl-theme:where(.kit-owl) .owl-nav [class*="owl-"]:hover { background: #869791; color: #fff; text-decoration: none; }
.owl-theme:where(.kit-owl) .owl-nav.disabled + .owl-dots { margin-top: 10px; }
.owl-theme:where(.kit-owl) .owl-dots { text-align: center; -webkit-tap-highlight-color: transparent; }
.owl-theme:where(.kit-owl) .owl-dots .owl-dot { display: inline-block; zoom: 1; }
.owl-theme:where(.kit-owl) .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 5px 7px; background: #d6d6d6; display: block; backface-visibility: visible; transition: opacity .2s ease; border-radius: 30px; }
:where(.kit-owl-dots-default .owl-dots) { text-align: center; }
:where(.kit-owl-dots-default .owl-nav.disabled + .owl-dots) { margin-top: 10px; }
:where(.kit-owl-dots-default .owl-dots .owl-dot) { display: inline-block; }
:where(.kit-owl-dots-default .owl-dots .owl-dot span) { width: 10px; height: 10px; margin: 5px 7px; background: #d6d6d6; display: block; border-radius: 30px; transition: opacity .2s ease; }
:where(.kit-owl-dots-default .owl-dots .owl-dot.active span, .kit-owl-dots-default .owl-dots .owl-dot:hover span) { background: #869791; }
.owl-theme:where(.kit-owl) .owl-dots .owl-dot.active span,
.owl-theme:where(.kit-owl) .owl-dots .owl-dot:hover span { background: #869791; }

/* ---- Slick compat (.kit-slick is added by sliders.js); slick.css specificity: .slick-slide (0,1,0) ---- */
.kit-slick { position: relative; display: block; box-sizing: border-box; user-select: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
:where(.kit-slick) .slick-list { position: relative; display: block; margin: 0; padding: 0; }
:where(.kit-slick) .slick-slide { min-height: 1px; outline: none; }
:where(.kit-slick) .slick-slide img { display: block; }
.kit-slick .slick-arrow[hidden], .kit-slick .slick-dots[hidden] { display: none; }
.kit-slick .slick-arrow.disabled { opacity: .5; cursor: default; }

/* Owl and Slick sized each item by its content; Swiper's `.swiper-slide { height: 100% }` makes a slide
   the track's height, and the track already holds the slide's own bottom margin, so a slide with a
   vertical margin overflows its slot and the caption hanging into that margin was clipped (AZNews).
   height:auto lets flex stretch fit the slide inside the track minus its margins; a fixed-height stage
   still stretches every slide to its height. (0,1,0): beats swiper-bundle.css by order (sliders.css
   loads after it), loses to every theme height rule (`.single-slider { height: 100vh }`). */
:where(.kit-owl, .kit-slick) .swiper-slide { height: auto; }

/* Shared: hide controls Swiper locked (everything fits), and show focus for keyboard users. */
.kit-nav-lock, .kit-pagination-lock { display: none !important; }
.kit-owl :is(.owl-prev, .owl-next, .owl-dot):focus-visible,
.kit-slick :is(.slick-arrow, .slick-dots button):focus-visible,
.swiper :is(.swiper-button-prev, .swiper-button-next, .swiper-pagination-bullet):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Swiper gives .swiper z-index:1, which in Owl/Slick layouts paints the stage over the theme's
   absolutely positioned arrows and dots (they come later in the DOM with z-index:auto). */
:where(.kit-owl) > .owl-stage-outer.swiper, :where(.kit-slick) > .slick-list.swiper { z-index: auto; isolation: isolate; }

/* A slider straight in a flex .row (BS5 makes every .row child a flex item; compat rules may set width:auto)
   sizes to its max-content: Swiper's stage then measured millions of px (Bato 33M, Unapp 14M). max-width
   caps it at the row; min-width:0 lets it shrink. Theme widths still apply below 100%. */
.row > :where(.kit-owl, .kit-slick, .swiper) { min-width: 0; max-width: 100%; }

/* Pagination items the kit hides (dots of cloneForLoop copies) stay hidden even when the theme styles
   them (`.slick-dots li { display: inline-block }`, Wordsmith). */
:where(.kit-owl .owl-dots, .kit-slick .slick-dots, .swiper-pagination) [hidden] { display: none !important; }

/* Arrows in normal flow (a theme wrapper like .slider-arrows) sit side by side: Swiper's own `display:flex` stacked the two
   buttons on phones (Zogin). Absolutely positioned arrows are blockified either way. Two classes: beats Swiper's one-class rule, a theme rule loaded later still wins. */
.swiper-button-prev.swiper-button-prev, .swiper-button-next.swiper-button-next { display: inline-flex; }
