/***** Shared subpages *****/

.subpage .nav-background {
    height: 160px;
}

.subpage .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 48px, 1360px);
    padding: 18px 0 0;
    z-index: 100;
}

.subpage .subpage-logo {
    display: block;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}

.subpage .subpage-logo img {
    display: block;
    width: 120px;
    height: auto;
    margin-left: 20px;
}

.subpage nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.subpage nav ul {
    position: static;
    margin: 0;
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.subpage nav ul li {
    margin-left: 30px;
}

.subpage nav ul li:first-child {
    margin-left: 0;
}

.subpage header {
    position: relative;
    height: 500px;
    margin-bottom: 50px;
}

.subpage .header-text {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.subpage .mobile-nav-icon {
    top: 10px;
}

.subpage .mobile-nav-icon:hover {
    color: #ffffff;
    transform: scale(1.15);
    transition: transform 0.5s ease, opacity 0.8s ease;
}

.subpage .btn-full {
    margin: 0;
}

@media only screen and (max-width: 1025px) {

    .subpage header {
        height: 300px;
    }

    .subpage .nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 0 24px;
    }

    .subpage .subpage-logo {
        position: fixed;
        top: 16px;
        left: 0;
        z-index: 120;
    }

    .subpage .subpage-logo img {
        width: 90px;
    }

    .subpage .nav-background {
        height: 120px;
        width: 100%;
    }

    .subpage nav {
        display: flex;
        justify-content: flex-end;
        flex: 1;
        position: static;
    }

    .subpage nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding-top: 48px;
        display: none;
        z-index: 100;
        text-align: center;
    }

    .subpage nav ul li {
        display: block;
        margin-left: 0;
        padding-bottom: 25px;
    }

    .subpage .btn-full {
        margin: auto;
    }
}
