.carousel-item {
    position: relative;
    height: 850px;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-inner {
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(47, 57, 103, 0.95) 0%, rgba(47, 57, 103, 0.4) 100%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 250px;
    pointer-events: none;
}

.overlay > * {
    pointer-events: auto;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    min-height: 850px;
    height: auto;
    z-index: 0;
}

#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 60px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    opacity: 0.85 !important;
    background: transparent !important;
    border: none !important;
}

#carouselExampleControls .carousel-control-prev {
    left: 20px !important;
}

#carouselExampleControls .carousel-control-next {
    right: 20px !important;
}

.carousel-control-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    position: relative;
    z-index: 1;
}

.carousel-control-prev:hover .carousel-control-circle,
.carousel-control-next:hover .carousel-control-circle {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    color: white;
}

.overlay > h1 {
    width: 60%;
    font-size: 70px;
    color: #fff;
    margin: 0;
}

.overlay .btn-link {
    cursor: pointer;
    margin-top: 25px;
    padding: 14px 30px;
    font-size: 14px;
    background-color: #fff;
    text-transform: uppercase;
    color: #000;
    display: inline-block;
}

.overlay .btn-link:hover {
    background-color: #2f3967;
    color: #fff;
    text-decoration: none;
}

.overlay .btn-link > i {
    margin-right: 5px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .overlay {
        padding-left: 110px;
    }

    .overlay > h1 {
        width: 80%;
        font-size: 50px;
    }
}

@media (max-width: 620px) {
    .overlay {
        padding-left: 60px;
    }

    .overlay > h1 {
        width: 85%;
        font-size: 30px;
    }
}
