/* IS Slider - Frontend Styles */

/* Device visibility */
@media (max-width: 767px) {
    .is-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .is-hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .is-hide-desktop {
        display: none !important;
    }
}

/* Slider wrapper */
.is-slider-wrap {
    width: 100%;
    position: relative;
    margin: 0 0 20px;
    overflow: hidden;
}

.is-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

/* Slides */
.is-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: none;
    cursor: default;
}

.is-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.is-slide[data-link] {
    cursor: pointer;
}

/* Aspect ratio responsive */
.is-slider-container::after {
    content: '';
    display: block;
    padding-top: 40%;
    pointer-events: none;
}

@media (max-width: 767px) {
    .is-slider-container::after {
        padding-top: 60%;
    }
}


.is-slide.active {
    position: absolute !important;
}

/* Transition effects */
/* FADE */
.is-slide.effect-fade {
    animation: isSliderFadeIn 0.8s ease forwards;
}

@keyframes isSliderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* SLIDE */
.is-slide.effect-slide {
    animation: isSliderSlideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes isSliderSlideIn {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ZOOM */
.is-slide.effect-zoom {
    animation: isSliderZoomIn 0.9s ease forwards;
}

@keyframes isSliderZoomIn {
    from {
        transform: scale(1.12);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* FLIP */
.is-slide.effect-flip {
    animation: isSliderFlipIn 0.8s ease forwards;
    perspective: 1000px;
}

@keyframes isSliderFlipIn {
    from {
        transform: rotateY(-40deg) scale(0.9);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* BLUR */
.is-slide.effect-blur {
    animation: isSliderBlurIn 0.9s ease forwards;
}

@keyframes isSliderBlurIn {
    from {
        filter: blur(12px);
        opacity: 0;
    }

    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* KEN BURNS */
.is-slide.effect-kenburns {
    animation: isSliderKenBurns 7s ease forwards, isSliderFadeIn 0.9s ease;
}

@keyframes isSliderKenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Slide inner content */
.is-slide-inner {
    position: absolute;
    top: 37%;
    left: 13%;
    right: 0;
    /* bottom: 0; */
    display: flex;
    align-items: center;
    padding: 8px;
    /*
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    */
    z-index: 2;
}

.is-slide-content {
    /* max-width: 520px; */
    color: #545454;
}

.is-slide-title {
    font-size: 1.7rem;
    line-height: 35px;
    /*font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    font-weight: 800;   
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.15;
    letter-spacing: -0.5px;*/
    margin: 0 0 8px;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.is-slide-subtitle {
    font-size: 1.7rem;
    line-height: 40px;

    /*font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;  
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);*/
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
    margin: 0 0 12px;
}

.is-slide-text {
    font-size: 1.5rem;
    line-height: 35px;
    font-weight: 400;
    letter-spacing: 0.02em;
    max-width: 440px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .is-slide-title {
        font-size: 20px;
        line-height: 20px;
    }

    .is-slide-subtitle {
        font-size: 18px;
        line-height: 18px;
    }

    .is-slide-text {
        font-size: 16px;
        line-height: 22px;
    }

    .is-slide-text {
        max-width: 340px;
    }
}

@media (max-width: 576px) {

    .is-slide-title {
        font-size: 16px;
        letter-spacing: -0.01em;
    }

    .is-slide-subtitle {
        font-size: 15px;
    }

    .is-slide-text {
        font-size: 14px;
        line-height: 20px;
        text-align: c;
    }
}


/* Navigation arrows */
.is-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(4px);
}

.is-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

.is-prev {
    left: 18px;
}

.is-next {
    right: 18px;
}

@media (max-width: 767px) {
    .is-slide-inner {
        top: 28%;
        left: 18%;
    }
}

@media (max-width: 480px) {
    .is-nav {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .is-prev {
        left: 8px;
    }

    .is-next {
        right: 8px;
    }

    .is-slide-inner {
        top: 27%;
        left: 4%;
        /* text-align: center; */
    }
}

/* Dots */
.is-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.is-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: background 0.25s, transform 0.25s;
}

.is-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* Progress bar */
.is-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    transition: width linear;
    width: 0%;
}