#hero {
    display: block;
    float: none;
    margin: auto auto;
    min-height: 663px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

.hero-slide {
    display: none;
    position: relative;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    overflow: hidden;
}

.hero-slide.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: scaleBackground 30s infinite alternate linear;
}

.hero-slide.active .hero-background {
    animation-play-state: running;
}

@keyframes scaleBackground {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1130px;
    margin: 0 auto;
    padding: 64px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-text-group {
    color: white;
    text-align: center;
}

.hero-preheader {
    font-size: 20px;
    line-height: 20px;
    margin-bottom: auto;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-header {
    font-size: 2.25em;
    font-weight: 800;
    line-height: 0.9825;
    letter-spacing: -2%;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-subheader {
    font-size: 1.125em;
    line-height: 1.5;
}

.hero-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin: auto auto;
    max-height: 100px;
}

a.hero-link,
a.hero-links:link {
    position: relative;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

a.hero-link:hover,
a.hero-link:focus {
    color: #c7c7c7;
}

.hero-link::before {
    content: '';
    width: 7px;
    height: 14px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='13.991' viewBox='0 0 7 13.991'%3E%3Cpath id='Path_345' data-name='Path_345' d='M35.391,0l7,7,6.987-7Z' transform='translate(0 49.381) rotate(-90)' fill='%23ff7d00'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.slide-nav-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    max-width: 1130px;
    min-height: 106px;
    margin: -40px auto auto;
    z-index: 3;
}

.slide-nav-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 68px;
    background: #027DC4;
    z-index: -1;
}

a.slide-nav-item {
    position: relative;
    background-color: #03639A;
    color: white;
    cursor: pointer;
    width: calc(33.333% + 45px);
    margin: 0 auto;
    height: 68px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.7s ease-out;
    transition: min-height 0.6s linear;
}

a.slide-nav-item:hover,
a.slide-nav-item:focus,
a.slide-nav-item.active:hover,
a.slide-nav-item.active:focus {
    background-color: #0479bd;
}

a.slide-nav-item.active {
    background-color: #0a91df;
    z-index: 2;
    min-height: 76px;
}

.slide-nav-text {
    display: none;
    font-weight: 600;
}

.slide-nav-title {
    color: white;
    display: block;
    font-size: 16px;
    letter-spacing: -0.025em;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-preheader {
        margin-bottom: 10px;
    }
    .hero-subheader {
        display: none;
    }
    #hero {
        min-height: 375px;
        margin-bottom: 66px;
    }
}

@media (min-width: 768px) {
    .hero-slide {
        padding: 200px 16px 75px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        padding: 172px 0 42px;
    }

    .hero-header {
        font-size: 56px;
        line-height: 0.9825;
        letter-spacing: -2%;
    }

    .hero-text-group {
        flex: 1;
        padding-right: 16px;
        text-align: left;
    }

    .slide-nav-wrapper {
        margin: -64px auto auto;
    }

    .hero-links {
        display: flex;
        flex: 0 0 300px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        row-gap: 8px;
        margin: 0 auto auto;
        text-align: left;
        padding-top: 28px;
        font-size: 20px;
    }

    .slide-nav-title {
        color: white;
        display: block;
        font-size: 20px;
        letter-spacing: -0.03em;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }
}

@media (min-width: 1024px) {
    .hero-header {
        max-width: 685px;
    }
    
    .hero-text-group {
        flex: 1;
        padding-right: 65px;
    }

    .slide-nav-wrapper {
        display: flex;
        width: 100%;
        padding-left: 43px;
        margin: -64px auto auto;
    }

    .slide-nav-wrapper::after {
        height: 97px;
        clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
    }
    a.slide-nav-item {
        clip-path: polygon(44px 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
    }
    
    a.slide-nav-item.active {
        clip-path: polygon(48px 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
        min-height: 105px;
    }

    a.slide-nav-item.active .slide-nav-text {
        padding-top: 7px;
    }

    a.slide-nav-item {
        position: relative;
        background: #03639A;
        color: white;
        cursor: pointer;
        width: calc( + 42px);
        margin-left: -42px;
        padding-right: 42px;
        min-height: 97px;
        padding: 0 64px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .slide-nav-text {
        color: white;
        display: block;
        font-size: 18px;
        line-height: 1;
        text-transform: uppercase;
    }
    
    .slide-nav-title {
        color: white;
        display: block;
        font-size: 42px;
        letter-spacing: -0.04em;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }
    
}