/* NP Home Slider */
.np-slider {
    --np-speed: 900ms;
    --np-brand: #2e358f;
    --np-accent: #fed100;
    --np-ink: #034153;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b1140;
    color: #333;
}

.np-slider--fullscreen {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
}

.np-slider:not(.np-slider--fullscreen) {
    height: var(--np-slider-h, 800px);
}

.np-slider__viewport {
    position: absolute;
    inset: 0;
}

.np-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity var(--np-speed) ease, transform var(--np-speed) ease;
}

.np-slider--slide .np-slide {
    transform: translateX(4%);
}

.np-slider--slide.np-slider--rtl .np-slide {
    transform: translateX(-4%);
}

.np-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.np-slider--slide .np-slide.is-active {
    transform: translateX(0);
}

.np-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center;
}

.np-slide.is-active .np-slide__bg {
    animation: np-kenburns var(--np-delay, 8000ms) ease-out forwards;
}

.np-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .75) 36%, rgba(255, 255, 255, 0) 68%);
}

.np-slider--rtl .np-slide__shade {
    background: linear-gradient(270deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .75) 36%, rgba(255, 255, 255, 0) 68%);
}

.np-slide__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.np-slide__inner {
    width: 100%;
    max-width: 1170px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* flex-start is logical: left in LTR, right in RTL */
    align-items: flex-start;
    text-align: left;
}

.np-slider--rtl .np-slide__inner {
    align-items: flex-start;
    text-align: right;
}

.np-slide__title {
    margin: 0 0 18px;
    max-width: 640px;
    font-size: 65px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--np-brand);
    opacity: 0;
    transform: translateY(24px);
}

.np-slide__subtitle {
    margin: 0 0 26px;
    max-width: 520px;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 600;
    color: #3a4256;
    opacity: 0;
    transform: translateY(24px);
}

.np-slide__btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 3px;
    background: var(--np-accent);
    color: var(--np-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition: background-color .25s ease, color .25s ease;
}

.np-slide__btn:hover,
.np-slide__btn:focus {
    background: var(--np-ink);
    color: #fff;
}

.np-slide.is-active .np-slide__title {
    animation: np-rise .7s .1s ease forwards;
}

.np-slide.is-active .np-slide__subtitle {
    animation: np-rise .7s .25s ease forwards;
}

.np-slide.is-active .np-slide__btn {
    animation: np-rise .7s .4s ease forwards;
}

.np-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--np-brand);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease;
}

.np-slider__arrow:hover {
    background: var(--np-brand);
    color: #fff;
}

.np-slider__arrow span {
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    display: block;
}

.np-slider__arrow--prev {
    left: 22px;
}

.np-slider__arrow--prev span {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.np-slider__arrow--next {
    right: 22px;
}

.np-slider__arrow--next span {
    transform: rotate(45deg);
    margin-right: 3px;
}

.np-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.np-slider__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(46, 53, 143, .35);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.np-slider__dot.is-active {
    width: 30px;
    border-radius: 6px;
    background: var(--np-brand);
}

@keyframes np-kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes np-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@media (max-width: 991px) {
    .np-slide__title {
        font-size: 44px;
        max-width: 480px;
    }

    .np-slide__subtitle {
        font-size: 19px;
        max-width: 420px;
    }

    .np-slider__arrow {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 600px) {
    .np-slider--fullscreen {
        min-height: 460px;
    }

    .np-slide__shade {
        background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .82) 55%, rgba(255, 255, 255, .96) 100%);
    }

    .np-slider--rtl .np-slide__shade {
        background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .82) 55%, rgba(255, 255, 255, .96) 100%);
    }

    .np-slide__content {
        align-items: flex-end;
        padding-bottom: 60px;
    }

    .np-slide__title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .np-slide__subtitle {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .np-slide__btn {
        padding: 12px 28px;
    }

    .np-slider__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-slider *,
    .np-slider {
        animation: none !important;
        transition: none !important;
    }
}
