.underline {
    display: inline;
    position: relative;
    overflow: hidden;
}
.underline:after {
    content: "";
    position: absolute;
    z-index: 10000;
    right: 0;
    width: 0;
    bottom: -2px;
    background: var(--heading-font-color);
    height: 4px;
    transition: width 0.5s ease-in;
}
.underline:hover:after,
.underline:focus:after,
.underline:active:after {
    left: 0;
    right: auto;
    width: 100%;
}

.fill {
    display: inline;
    position: relative;
    overflow: hidden;
}

.fill:hover {
    color: var(--heading-font-color) !important;
    div {
        position: relative;
        z-index: 2;
    }
}
.fill:after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0px;
    bottom: 0px;
    width: 0px;
    background: var(--heading-font-color);
    transition: width 0.5s ease-in;
}
.fill:hover:after,
.fill:focus:after,
.fill:active:after {
    right: auto;
    width: 100%;
    left: 0px;
}

@keyframes underlineEffect {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

swiper-slide {
    &:hover {
        h1.active .underline {
            animation-play-state: paused;
        }
    }
}

.titles {
    h1 {
        .underline {
            position: absolute;
            z-index: 10000;
            left: 0px;
            bottom: -10px;
            background: var(--heading-font-color);
            height: 5px;
            width: 0;
            animation: underlineEffect 4s linear forwards;
            @media @tablet {
                height: 10px;
            }
        }

        &:not(.active) .underline {
            animation: none;
        }
    }
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--heading-font-color) !important;
    height: 70px !important;
    width: 70px !important;
    bottom: 0px !important;
    top: initial !important;
    transform: scale(0.5) !important;
}

.swiper-button-prev {
    right: 18% !important;
    left: initial !important;
    transform-origin: left !important;
}

.swiper-button-next {
    right: 3% !important;
    transform-origin: right;
}

@media @tablet {
    .swiper-button-prev,
    .swiper-button-next {
        bottom: initial !important;
        top: 120px !important;
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }
    .swiper-button-prev {
        left: 0% !important;
        right: initial !important;
        transform-origin: left !important;
    }
    .swiper-button-next {
        right: 0% !important;
        transform-origin: right !important;
    }
}

@media @desktop {
    .swiper-button-prev,
    .swiper-button-next {
        top: 155px !important;
        transform: scale(1) !important;
    }
}
