/*------------------------------------*\
    
    WebFX Slick Customizations - Global styling for all slider/carousels

    Add custom slider styling to this file if it should be applied to all slick sliders on the site
    Otherwise, put your slider-specific styles in individual block stylesheets

\*------------------------------------*/


/* Preloader affect for your slider */

 /* Add class 'slider-has-preloader' to slider to show  */
.slider-has-preloader:not(.slick-initialized) {
    position: relative;
}

.slider-has-preloader:not(.slick-initialized) > .fx-slide {
    opacity: 0;
}

.slider-has-preloader:not(.slick-initialized):before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid;
    border-color: transparent #AF231C;
    animation: 1s sliderLoad infinite linear;
}

@keyframes sliderLoad {
    0% {
        transform: translate3d( -50%, -50%, 0 ) rotateZ( 0 );
    }

    100% {
        transform: translate3d( -50%, -50%, 0 ) rotateZ( 360deg );
    }    
}


/* Only show the 1st slide while your slider is loading - Utility Classes
NOTE: Add the .fx-slider class to the wrapper that is holding your entire slider.
NOTE: Add the .fx-slide class to the wrapper of each individual slide.
Guru: https://app.getguru.com/card/ixR67EpT/Slick-Slider
*/

.fx-slider .fx-slide {
    display: none;
}

.fx-slider .fx-slide:first-child {
    display: block;
}

.fx-slider.slick-initialized .fx-slide {
    display: block;
}


/* Slick Arrow  */

.slick-arrow {
    font-size: 0;
    line-height: 1px;
    position: absolute;
    padding: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    outline: none;
    z-index: 9;
    text-align: center;
    color: var(--white);
    transition: all ease-in 0.3s;
    bottom: 0;
    z-index: 1;
    border: none;
    background: var(--dark);
}

.bg-dark .slick-arrow {
    background: var(--primary-color);
}

.slick-next {
    right: 50%;
    margin-right: -58px;
    border-radius: 15px 5px;
}

.slick-prev {
    left: 50%;
    margin-left: -58px;
    border-radius: 5px 15px;
}

.slick-arrow::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-size: 25px;
    line-height: 1em;
    font-family: 'rmfx-icon';
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slick-prev::before {
    content: '\e905';
}

.slick-next::before {
    content: '\e90d';
}

.slick-arrow:hover {
    background: var(--darkest);
}

.bg-dark .slick-arrow:hover {
    background: var(--primary-hover);
}

.slick__arrows-custom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-align: center;
}

/* custom slick arrows */

 .slick__arrows-custom .slick-prev-arrow,
 .slick__arrows-custom .slick-next-arrow {
    border: 0;
    box-shadow: none;
    color: var(--white);
    font-size: 25px;
    line-height: 1em;
    font-family: 'rmfx-icon';
    font-weight: normal;
    width: 50px;
    height: 50px;
    padding: 0;
    position: relative;
    transform: none;
    transition: background-color .2s ease-in-out;
}

 .slick__arrows-custom .slick-arrow::before {
    display: none;
}

.slick__arrows-custom .slick-prev-arrow {
    border-radius: 5px 15px;
}

.slick__arrows-custom .slick-next-arrow {
    border-radius: 15px 5px;
}