/* ==========================================================
   C&S Custom Homepage Slider
   Plugin-independent Smart Slider style replacement
   No Swiper, no Smart Slider, no Slider Revolution dependency
========================================================== */

.cs-slider-row,
.cs-slider-row *,
.cs-home-slider,
.cs-home-slider * {
    box-sizing: border-box;
}

.cs-slider-row {
    position: relative;
    display: block;
    padding-left: 0 !important;
    padding-right: 0 !important;

    margin-bottom: 0 !important;
    min-height: 0;
    width: 100%;
    opacity: 1;
    margin-left: 0px !important;
    padding-top: 50px !important;
}

.cs-slider-column,
.cs-slider-column-inner,
.cs-slider-wrapper {
    position: relative;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
}

.cs-home-slider {
    position: relative;
    display: block;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    overflow: hidden;

    outline: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cs-home-slider__inner,
.cs-home-slider__viewport {
    position: relative;
    width: 100%;
}

.cs-home-slider__viewport {
    height: clamp(296px, 36.458vw, 700px);
    min-height: 296px;
    max-height: 700px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.cs-home-slider__viewport.is-dragging {
    cursor: grabbing;
}

.cs-home-slider__backgrounds,
.cs-home-slider__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.cs-home-slider__backgrounds {
    z-index: 1;
}

.cs-home-slider__slides {
    z-index: 20;
    pointer-events: none;
}

.cs-home-slider__ratio {
    display: block;
    width: 100%;
    height: auto;
    visibility: hidden;
    pointer-events: none;
}

.cs-home-slider__background,
.cs-home-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.cs-home-slider__background {
    overflow: hidden;
    text-align: left;
    z-index: 1;
}

.cs-home-slider__slide.is-active {
    pointer-events: auto;
}

.cs-home-slider__image-layer,
.cs-home-slider__image-layer picture,
.cs-home-slider__image-layer img,
.cs-home-slider__background-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cs-home-slider__image-layer {
    z-index: 5;
    --cs-slide-position-x: 64%;
    --cs-slide-position-y: 47%;
}

.cs-home-slider__image-layer picture {
    display: block;
    filter: blur(0);
}

.cs-home-slider__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: var(--cs-slide-position-x) var(--cs-slide-position-y);
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    /* Scale slightly to hide any 1px artifacts baked into the image or subpixel rendering gaps */
    transform: scale(1.01);
}

.cs-home-slider__background-color {
    z-index: 1;
    background-color: rgba(0, 0, 0, 1);
    pointer-events: none;
}

.cs-home-slider__slide {
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cs-home-slider__slide.is-active {
    pointer-events: auto;
}

.cs-home-slider__screen-reader-title {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cs-home-slider__content {
    position: relative;
    z-index: 25;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 50px 65px !important;
    pointer-events: none;
}

.cs-home-slider__content-inner {
    max-width: 600px;
    color: #fff;
    pointer-events: auto;
    text-align: left;
}

.cs-home-slider__description {
    color: #fff;
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 24px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.55);
}

.cs-home-slider__description p {
    margin: 0 0 10px;
}

.cs-home-slider__description p:last-child {
    margin-bottom: 0;
}

.cs-home-slider__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 28px;
    background: #0056b3;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.cs-home-slider__button:hover,
.cs-home-slider__button:focus {
    background: #004494;
    color: #fff !important;
    text-decoration: none !important;
}

.cs-home-slider__control {
    position: absolute;
    z-index: 40;
    pointer-events: none;
    visibility: hidden;
}

.cs-home-slider__control>* {
    visibility: visible;
    pointer-events: auto;
}

.cs-home-slider__control--previous,
.cs-home-slider__control--next {
    top: 0;
    width: 70px;
    height: 100%;
    display: flex;
    align-items: center;
}

.cs-home-slider__control--previous {
    left: 0;
    justify-content: flex-start;
}

.cs-home-slider__control--next {
    right: 0;
    justify-content: flex-end;
}

.cs-home-slider__arrow {
    width: 32px;
    height: 32px;
    margin: 0 15px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.25s ease;
}

.cs-home-slider:hover .cs-home-slider__arrow,
.cs-home-slider:focus-within .cs-home-slider__arrow {
    opacity: 1;
}

.cs-home-slider__arrow:hover,
.cs-home-slider__arrow:focus {
    transform: scale(1.08);
    outline: none;
}

.cs-home-slider__arrow span {
    display: block;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
    opacity: 0.8;
}

.cs-home-slider__arrow--previous span {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.433 15.992L22.69 5.712c.393-.39.393-1.03 0-1.42-.393-.39-1.03-.39-1.423 0l-11.98 10.94c-.21.21-.3.49-.285.76-.015.28.075.56.284.77l11.98 10.94c.393.39 1.03.39 1.424 0 .393-.4.393-1.03 0-1.42L11.433 15.992z' fill='%23ffffff' opacity='0.8' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cs-home-slider__arrow--next span {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.722 4.293c-.394-.39-1.032-.39-1.427 0-.393.39-.393 1.03 0 1.42l11.283 10.28-11.283 10.29c-.393.39-.393 1.02 0 1.42.395.39 1.033.39 1.427 0l12.007-10.94c.21-.21.3-.49.284-.77.014-.27-.076-.55-.286-.76L10.722 4.293z' fill='%23ffffff' opacity='0.8' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cs-home-slider__control--bullets {
    left: 0;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cs-home-slider__bullets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: auto;
}

.cs-home-slider__bullet {
    display: block;
    width: 32px;
    height: 4px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: #b5b5b5 !important;
    opacity: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: all .3s ease;
    margin: 0;
}

.cs-home-slider__bullet.is-active {
    background: #0066b2 !important;
    opacity: 1;
}

.cs-home-slider__bullet:hover,
.cs-home-slider__bullet:focus {
    opacity: 1;
    transform: none;
    outline: none;
}

.wpb_column.vc_column_container.vc_col-sm-12.vc_hidden-lg.vc_hidden-md.vc_hidden-sm.vc_col-xs-offset-1.vc_col-xs-1 {
    margin-left: 0px !important;
    width: 100% !important;
}

@media (min-width: 768px) {

    .cs-home-slider__background.has-no-desktop-image,
    .cs-home-slider__slide.has-no-desktop-image {
        display: none !important;
    }
}



@media (max-width: 767px) {

    .cs-home-slider__viewport {
        height: auto;
        min-height: auto;
        max-height: none;
        aspect-ratio: 814 / 1239;

    }

    .cs-slider-row,
    .cs-slider-column,
    .cs-slider-column-inner,
    .cs-slider-wrapper,
    .cs-home-slider {
        width: 100vw !important;
        max-width: 100vw !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cs-home-slider,
    .cs-home-slider__viewport,
    .cs-home-slider__background,
    .cs-home-slider__backgrounds,
    .cs-home-slider__image-layer,
    .cs-home-slider__image {
        background: transparent !important;
        padding: 0px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0px !important;
        margin-right: 0px !important;

    }

    .cs-home-slider__background-color {
        display: none !important;
    }

    .cs-home-slider__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: top center;
        transform: none;
    }

    .cs-home-slider__content {
        align-items: flex-start;
    }

    .cs-home-slider__control--bullets {
        bottom: 10px;
    }

    .cs-home-slider__arrow span {
        width: 12px;
        height: 12px;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

    .cs-home-slider__viewport {
        height: auto;
        min-height: auto;
        max-height: none;
        aspect-ratio: 1920 / 700;
        overflow: hidden;
    }

    .cs-home-slider__background,
    .cs-home-slider__slide,
    .cs-home-slider__image-layer,
    .cs-home-slider__image-layer picture {
        height: 100%;
    }

    .cs-home-slider__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: top center;
        background: transparent !important;
        transform: none;
    }

    .cs-home-slider__background-color {
        display: none;
    }

    .cs-home-slider__content {
        padding: 25px 35px !important;
    }

}