@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap");


/* ========================================
   NASTROJE-AI.SK COLORS
======================================== */

:root {
    --nai-dark: #222222;
    --nai-gray: #c4c4c4;
    --nai-light: #f2f2f2;
    --nai-white: #ffffff;
    --nai-lime: #c3ff47;
    --nai-green: #80b57f;
}


/* ========================================
   GLOBAL
======================================== */

.bdt-timeline-container,
.bdt-timeline-container *,
.bdt-timeline-container *::before,
.bdt-timeline-container *::after {
    box-sizing: border-box;
}


/* ========================================
   CONTAINER
======================================== */

.bdt-timeline-container {
    display: flow-root;

    max-width: 1200px;

    margin: 50px auto 0;

    padding-left: 15px;
    padding-right: 15px;

    overflow: hidden;
}


/* ========================================
   MAIN SLIDER WRAPPER
======================================== */

.upk-salf-slider-wrapper {
    display: flex;

    flex-direction: row;

    position: relative;

    height: 400px;

    padding: 30px;

    background: var(--nai-dark);

    border: 1px solid rgba(196, 196, 196, 0.15);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}


/* ========================================
   SWIPER
======================================== */

.mySwiper2 {
    width: 100%;
    height: 100%;

    overflow: hidden;
}


.swiper-wrapper {
    height: 100%;
}


.upk-salf-item {
    position: relative;

    display: flex;

    flex-direction: row-reverse;

    width: 100%;
    height: 100%;
}


/* ========================================
   IMAGE
======================================== */

.upk-salf-image-wrap {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: var(--nai-dark);
}


/* subtle dark overlay */

.upk-salf-image-wrap::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(34, 34, 34, 0.35) 0%,
            rgba(34, 34, 34, 0.05) 45%,
            rgba(34, 34, 34, 0.05) 100%
        );
}


.upk-xanc-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 6s ease;
}


.swiper-slide-active .upk-xanc-img {
    transform: scale(1.03);
}


/* ========================================
   CONTENT
======================================== */

.upk-salf-content-wrap {
    position: absolute;

    left: 0;
    bottom: 0;

    z-index: 5;

    max-width: 460px;

    overflow: hidden;

    padding: 20px;

    background: rgba(34, 34, 34, 0.82);

    border-left: 2px solid var(--nai-lime);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        20px 0 50px rgba(0, 0, 0, 0.16);
}


/* ========================================
   TITLE
======================================== */

.upk-salf-title {
    margin: 0 0 20px;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.15;

    color: var(--nai-white);

    text-transform: none;

    opacity: 0;

    transition:
        opacity 0.6s ease,
        color 0.3s ease;
}


/* ========================================
   DESCRIPTION
======================================== */

.upk-salf-desc {
    margin-bottom: 20px;

    color: var(--nai-gray);

    font-size: 14px;

    line-height: 1.6;

    opacity: 0;

    transition: opacity 0.6s ease;
}


/* ========================================
   CONTENT BUTTON
======================================== */

.upk-salf-button {
    opacity: 0;

    transition: opacity 0.6s ease;
}


.swiper-slide-active .upk-salf-title,
.swiper-slide-active .upk-salf-desc,
.swiper-slide-active .upk-salf-button {
    opacity: 1;
}


/* ========================================
   TEXT LINK
======================================== */

.upk-salf-button .link {
    color: var(--nai-lime);

    cursor: pointer;

    font-weight: 600;

    text-decoration: none;

    text-transform: none;

    font-size: 14px;

    transition: all 0.3s ease;
}


.upk-salf-button .link:hover {
    color: var(--nai-white);
}


/* ========================================
   SMALL ARROW ICON
======================================== */

.link--arrowed {
    display: inline-block;
}


.link--arrowed .arrow-icon {
    position: relative;

    top: 0;

    margin-left: 6px;

    vertical-align: middle;

    transition: transform 0.3s ease;
}


.link--arrowed .arrow-icon--circle {
    stroke-dasharray: 95;
    stroke-dashoffset: 95;

    transition: stroke-dashoffset 0.3s ease;
}


.link--arrowed g {
    stroke: currentColor;

    color: var(--nai-lime);
}


.link--arrowed:hover .arrow-icon {
    transform: translate3d(5px, 0, 0);
}


.link--arrowed:hover .arrow-icon--circle {
    stroke-dashoffset: 0;
}


.link--arrowed:hover g {
    color: var(--nai-white);
}


/* ========================================
   LARGE SIDE BUTTON
======================================== */

.upk-page-scroll {
    position: absolute;

    right: 5%;
    bottom: 8%;

    z-index: 10;

    display: none;

    transform: rotate(90deg);
}


/* 70 x 70 BUTTON */

.upk-page-scroll .arrow-up {
    position: relative;

    display: block;

    width: 70px;
    height: 70px;

    overflow: hidden;

    cursor: pointer;

    background: rgba(34, 34, 34, 0.90);

    border: 1px solid rgba(195, 255, 71, 0.45);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transform: rotate(-90deg);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.5s cubic-bezier(0.25, 1.7, 0.35, 1.5);
}


/* lime background animation */

.upk-page-scroll .arrow-slide {
    position: absolute;

    left: 0;
    top: -100%;

    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    background: var(--nai-lime);
}


/* ========================================
   LARGE ARROW
======================================== */

.upk-page-scroll .long-arrow-left {
    position: relative;

    z-index: 2;

    display: block;

    width: 16px;
    height: 16px;

    margin: 27px auto;

    border-top: 2px solid var(--nai-lime);
    border-left: 2px solid var(--nai-lime);

    transform: rotate(-135deg);

    transition: border-color 0.3s ease;
}


.upk-page-scroll .long-arrow-left::after {
    content: "";

    position: absolute;

    display: block;

    width: 2px;
    height: 25px;

    left: 0;
    top: 0;

    background-color: var(--nai-lime);

    transform:
        rotate(-45deg)
        translate(8px, 3px);

    transition: background-color 0.3s ease;
}


/* ========================================
   LARGE BUTTON HOVER
======================================== */

.upk-page-scroll .arrow-up:hover {
    border-color: var(--nai-lime);

    box-shadow:
        0 0 25px rgba(195, 255, 71, 0.20);
}


.upk-page-scroll .arrow-up:hover .arrow-slide {
    transform: translateY(200%);

    transition: all 0.5s ease-in-out;
}


.upk-page-scroll .arrow-up:hover .long-arrow-left {
    border-color: var(--nai-lime);
}


/* ========================================
   RIGHT NAVIGATION WRAPPER
======================================== */

.upk-salf-nav-pag-wrap {
    position: absolute;

    top: 0;
    right: 0;

    height: 100%;

    z-index: 20;
}


/* ========================================
   PREVIOUS / NEXT
======================================== */

.upk-salf-navigation {
    margin-top: 40px;
    margin-right: 2px;
}


.upk-salf-navigation .link--arrowed {
    display: inline-block;
}


.upk-salf-navigation .arrow-icon {
    position: relative;

    top: 0;

    vertical-align: middle;

    transition: transform 0.3s ease;
}


.upk-salf-navigation .arrow-icon--circle {
    stroke-dasharray: 95;
    stroke-dashoffset: 95;

    transition: stroke-dashoffset 0.3s ease;
}


.upk-salf-navigation g {
    stroke: currentColor;

    color: var(--nai-gray);
}


.upk-salf-navigation .link--arrowed:hover .arrow-icon {
    transform: translate3d(5px, 0, 0);
}


.upk-salf-navigation .link--arrowed:hover .arrow-icon--circle {
    stroke-dashoffset: 0;
}


.upk-salf-navigation .link--arrowed:hover g {
    color: var(--nai-lime);
}


/* NEXT */

.upk-button-next {
    margin-top: 15px;

    transform: rotate(90deg);

    cursor: pointer;
}


/* PREVIOUS */

.upk-button-prev {
    transform: rotate(-90deg);

    cursor: pointer;
}


/* ========================================
   PAGINATION
======================================== */

.upk-salf-pagi-wrap {
    position: absolute;

    top: 43%;
    right: 0;

    margin-right: 22px;
}


.swiper-pagination {
    position: static !important;

    display: flex;

    flex-direction: column;
}


/* ========================================
   PAGINATION BULLET
======================================== */

.swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;

    margin: 6px -7px !important;

    background-color: transparent !important;

    opacity: 0.75 !important;
}


.swiper-pagination-bullet svg {
    transform: rotate(-90deg);
}


/* inactive bullet */

.swiper-pagination-bullet .svg__circle {
    stroke: rgba(196, 196, 196, 0.50);
}


.swiper-pagination-bullet .svg__circle-inner {
    stroke: var(--nai-green);

    fill: transparent;

    transition: all 0.3s ease;
}


/* ========================================
   ACTIVE PAGINATION
======================================== */

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}


.swiper-pagination-bullet-active .svg__circle {
    stroke: var(--nai-lime);

    stroke-dasharray: 75;
    stroke-dashoffset: 0;

    animation: progress 4s ease-in-out 1 forwards;
}


.swiper-pagination-bullet-active .svg__circle-inner {
    fill: var(--nai-lime);

    stroke: var(--nai-lime);
}


/* ========================================
   PAGINATION ANIMATION
======================================== */

@keyframes progress {

    0% {
        stroke-dashoffset: 75;
        opacity: 1;
    }

    95% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }

}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) {

    .upk-salf-slider-wrapper {
        height: 550px;

        padding: 60px;
    }


    /* LARGE SIDE BUTTON */

    .upk-page-scroll {
        bottom: 4%;

        display: block;
    }


    /* TITLE */

    .upk-salf-title {
        font-size: 40px;
    }


    /* CONTENT */

    .upk-salf-content-wrap {
        top: 50%;
        bottom: auto;

        max-width: 400px;

        padding:
            40px
            40px
            40px
            30px;

        transform: translateY(-50%);
    }


    /* IMAGE */

    .upk-salf-image-wrap {
        width: 80%;
    }


    /* NAV */

    .upk-salf-navigation {
        margin-top: 60px;

        margin-right: 20px;
    }


    /* PAGINATION */

    .upk-salf-pagi-wrap {
        margin-right: 47px;
    }


    .swiper-pagination-bullet {
        margin: 6px 0 !important;
    }

}


/* ========================================
   DESKTOP
======================================== */

@media (min-width: 1024px) {

    .upk-salf-slider-wrapper {
        height: 650px;

        padding: 70px;
    }


    /* LARGE BUTTON */

    .upk-page-scroll {
        bottom: 9%;
    }


    /* TITLE */

    .upk-salf-title {
        font-size: 50px;
    }


    /* CONTENT */

    .upk-salf-content-wrap {
        max-width: 460px;

        padding:
            50px
            50px
            50px
            35px;
    }


    /* DESCRIPTION */

    .upk-salf-desc {
        font-size: 16px;
    }


    /* LINK */

    .upk-salf-button .link {
        font-size: 16px;
    }


    /* IMAGE */

    .upk-salf-image-wrap {
        width: 70%;
    }


    /* NAVIGATION */

    .upk-salf-navigation {
        margin-top: 85px;

        margin-right: 30px;
    }


    /* PAGINATION */

    .upk-salf-pagi-wrap {
        margin-right: 53px;
    }


    .swiper-pagination-bullet {
        margin: 6px -5px !important;
    }

}


/* ========================================
   LARGE DESKTOP
======================================== */

@media (min-width: 1440px) {

    .upk-salf-slider-wrapper {
        height: 700px;

        padding: 80px;
    }


    .upk-salf-title {
        font-size: 55px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .bdt-timeline-container {
        margin-top: 20px;

        padding-left: 10px;
        padding-right: 10px;
    }


    .upk-salf-slider-wrapper {
        height: 520px;

        padding: 20px;

        background: var(--nai-dark);
    }


    .upk-salf-image-wrap {
        width: 100%;
    }


    .upk-salf-image-wrap::after {
        background:
            linear-gradient(
                0deg,
                rgba(34, 34, 34, 0.55),
                rgba(34, 34, 34, 0.05)
            );
    }


    .upk-salf-content-wrap {
        left: 20px;
        right: 20px;
        bottom: 20px;

        max-width: none;

        padding: 25px;

        background: rgba(34, 34, 34, 0.90);

        border-left: 2px solid var(--nai-lime);
    }


    .upk-salf-title {
        margin-bottom: 12px;

        font-size: 30px;

        color: var(--nai-white);
    }


    .upk-salf-desc {
        margin-bottom: 15px;

        font-size: 14px;

        color: var(--nai-gray);
    }


    /*
       LARGE SIDE BUTTON
       hidden on mobile, same behavior
       as original slider
    */

    .upk-page-scroll {
        display: none;
    }


    .upk-salf-navigation {
        margin-top: 30px;

        margin-right: 10px;
    }


    .upk-salf-pagi-wrap {
        right: 10px;

        margin-right: 0;
    }

}