:root {
    --ship-nav-bg: #fbfaf6;
    --ship-nav-bg-soft: #f3efe7;
    --ship-nav-text: #18303b;
    --ship-nav-muted: #6d7c82;
    --ship-nav-blue: #1a7890;
    --ship-nav-gold: #d5a860;
    --ship-nav-border: rgba(7, 29, 43, 0.12);
    --ship-nav-shadow: 0 10px 35px rgba(7, 29, 43, 0.08);
}

body {
    padding-top: 100px;
}

#top-nav.ship-navbar {
    min-height: 100px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--ship-nav-border);
    border-radius: 0;
    background: rgba(251, 250, 246, 0.96);
    box-shadow: var(--ship-nav-shadow);
    backdrop-filter: blur(12px);
}

.ship-navbar-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.ship-navbar-header {
    flex: 0 0 auto;
}

.ship-navbar-brand {
    height: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--ship-nav-text);
}

.ship-navbar-brand:hover,
.ship-navbar-brand:focus {
    color: var(--ship-nav-text);
    text-decoration: none;
}

.ship-logo-container {
    position: relative;
    min-width: 350px;
    min-height: 82px;
    display: flex;
    align-items: center;
    padding-left: 46px;
    color: var(--ship-nav-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ship-logo-container::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 340px;
    height: 82px;
    background-image: url("/_projects/osszkerek/templates/hajosjogsi/img/osszkerek-logo.png");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

#top-menu-container {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding: 0;
}

#top-nav .navbar-nav {
    float: right;
    height: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#top-nav .navbar-nav > li {
    float: none;
    list-style: none;
}

#top-nav .navbar-nav > li > a {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--ship-nav-text);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

#top-nav .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background: var(--ship-nav-gold);
    transition: width 0.25s ease;
}

#top-nav .navbar-nav > li > a:hover,
#top-nav .navbar-nav > li > a:focus,
#top-nav .navbar-nav > .active > a,
#top-nav .navbar-nav > .active > a:hover,
#top-nav .navbar-nav > .active > a:focus {
    color: var(--ship-nav-blue);
    background: transparent;
}

#top-nav .navbar-nav > li > a:hover::after,
#top-nav .navbar-nav > li > a:focus::after,
#top-nav .navbar-nav > .active > a::after {
    width: 100%;
}

#top-nav .dropdown-menu {
    top: calc(100% - 15px);
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--ship-nav-border);
    border-radius: 14px;
    background: var(--ship-nav-bg);
    box-shadow: 0 20px 50px rgba(7, 29, 43, 0.14);
}

#top-nav .dropdown-menu > li > a {
    padding: 12px 14px;
    border-radius: 9px;
    color: var(--ship-nav-text);
    font-size: 13px;
    font-weight: 600;
}

#top-nav .dropdown-menu > li > a:hover,
#top-nav .dropdown-menu > li > a:focus {
    color: var(--ship-nav-blue);
    background: rgba(26, 120, 144, 0.08);
}

.ship-menu-toggle {
    width: 48px;
    height: 48px;
    margin: 26px 0 0;
    padding: 0;
    border: 1px solid var(--ship-nav-border);
    border-radius: 50%;
    background: var(--ship-nav-bg-soft);
}

.ship-menu-toggle:hover,
.ship-menu-toggle:focus {
    border-color: var(--ship-nav-blue);
    background: rgba(26, 120, 144, 0.08);
}

.ship-menu-line {
    width: 20px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--ship-nav-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ship-menu-toggle.is-open .ship-menu-line:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
}

.ship-menu-toggle.is-open .ship-menu-line:nth-of-type(3) {
    opacity: 0;
}

.ship-menu-toggle.is-open .ship-menu-line:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1199px) {
    .ship-logo-container {
        min-width: 285px;
        font-size: 20px;
    }

    .ship-logo-container::before {
        width: 280px;
    }

    #top-nav .navbar-nav {
        gap: 21px;
    }

    #top-nav .navbar-nav > li > a {
        font-size: 12px;
        letter-spacing: 0.12em;
    }
}

@media (min-width: 992px) {
    .ship-menu-toggle {
        display: none !important;
    }

    #top-menu-container {
        display: block !important;
        visibility: visible !important;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 76px;
    }

    #top-nav.ship-navbar {
        min-height: 76px;
    }

    .ship-navbar-container {
        position: relative;
        min-height: 76px;
        display: block;
    }

    .ship-navbar-header {
        width: 100%;
        min-height: 76px;
    }

    .ship-navbar-brand {
        min-height: 76px;
    }

    .ship-logo-container {
        min-width: 245px;
        min-height: 68px;
        padding-left: 32px;
        font-size: 18px;
    }

    .ship-logo-container::before {
        top: 4px;
        width: 240px;
        height: 66px;
    }

    #top-nav .ship-menu-toggle {
        display: block !important;
        margin-top: 14px;
    }

    #top-menu-container {
/*        position: absolute;*/
        top: 76px;
        right: 0;
        left: 0;
        display: none !important;
        z-index: 1001;
        max-height: 100vh;
        padding: 18px 24px 28px;
        overflow-y: auto;
        border: 0;
        border-bottom: 1px solid var(--ship-nav-border);
        background: var(--ship-nav-bg);
        box-shadow: 0 20px 35px rgba(7, 29, 43, 0.12);
    }

    #top-menu-container.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 80vh !important;
    }

    #top-nav .navbar-nav {
        float: none;
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    #top-nav .navbar-nav > li > a {
        min-height: auto;
        display: block;
        padding: 30px 0;
        border-bottom: 1px solid var(--ship-nav-border);
        font-size: 20px;
    }

    #top-nav .navbar-nav > li > a::after {
        display: none;
    }

    #top-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        border: 0;
        box-shadow: none;
        background: var(--ship-nav-bg-soft);
    }
}

@media (max-width: 480px) {
    .ship-logo-container {
        min-width: 205px;
        padding-left: 20px;
        font-size: 15px;
        letter-spacing: 0.02em;
    }

    .ship-logo-container::before {
        width: 200px;
    }
}