/* ================================
   NN ENTERPRISE NAVBAR
================================= */

.nn-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nn-container {
    display: flex;
    align-items: center;
}

.nn-nav-wrapper {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nn-nav-main {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    flex: 1 1 auto;
}

/* Logo */
.nn-logo img {
    height: 48px;
    width: auto;
}

/* Center navigation */
.nn-collapse {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
}

.nn-nav-list {
    gap: 20px;
    /* align-items: center; */
    flex-wrap: nowrap;
}

.nn-nav-list li:hover {
    background: transparent !important;
}

.nn-link {
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nn-link:hover,
.nn-link.active {
    color: #e1251b !important;
    border-bottom: 2px solid #e1251b;
    background: transparent !important;
}

.dropdown_default_cursor {
    cursor: default;
}

/* Dropdown caret */
.nn-dropdown>.nn-link>.nn-link2::after {
    content: " ▾";
    font-size: 20px;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

.nn-link2 {
    margin-left: -3px !important;

}


/* Dropdown box styling */
.nn-dropbox {
    background: linear-gradient(135deg, rgba(35, 38, 45, 0.9), rgba(25, 28, 32, 0.95)) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    padding: 20px !important;
    border-radius: 16px !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 260px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: nnFadeIn 0.3s ease forwards;
}

/* Mega menu width for Products & Services */
.nn-dropdown:nth-child(3) .nn-dropbox {
    min-width: 700px;
}

@keyframes nnFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nn-dropdown {
    position: relative;
    background: transparent !important;
}

.nn-dropdown:hover {
    background: transparent !important;
}

.nn-dropdown:hover>.nn-dropbox,
.nn-dropdown:focus-within>.nn-dropbox {
    display: block !important;
}

.nn-dropdown>.nn-dropbox::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nn-box {
    display: block;
}

/* Products & Services specific grid */
.nn-dropdown:nth-child(3) .nn-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
}

.nn-sub-section {
    position: relative;
    padding: 0;
}

.nn-sub-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
}

.nn-sub-menu {
    z-index: 10;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
}

.nn-sub-title {
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: #ff3e3e !important;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0;
    border: none !important;
}

header .data-sub:hover .btn_sub {
    background: transparent !important;
}



.nn-sub-menu a {
    display: block;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
}

.nn-sub-menu a:hover {
    color: #000000 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Right Section */
.nn-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
}

.nn-phone-link {
    color: #333;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    display: none;
}

/* Contact Button */
.nn-contact-btn {
    border: 2px solid #000;
    padding: 8px 24px;
    border-radius: 8px;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    min-width: 120px;
    text-align: center;
    background: transparent;
}

.nn-contact-btn:hover {
    background: #000;
    color: #fff !important;
}

/* SAP Logo */
.nn-sap-logo {
    height: 48px;
}

/* Mobile */
.nn-toggler {
    color: #333;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 6px;
}

.nn-mobile-only,
.nn-mobile-footer {
    display: none;
}

@media (max-width: 992px) {

    .nn-navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 2px solid #e51d1d;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
        height: auto;
        padding: 0;
    }

    .nn-container {
        padding-left: 0;
        padding-right: 0;
    }

    .nn-nav-wrapper,
    .nn-nav-main {
        flex-wrap: wrap;
    }

    .nn-nav-wrapper {
        align-items: stretch;
    }

    .nn-nav-main {
        width: 100%;
        padding: 4px 20px 0;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    .nn-logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 72px);
        /* position: relative;
        top: -10px; */
    }

    .nn-logo img {
        display: block;
        width: auto;
        height: 48px;
        max-width: 100%;
    }

    .nn-toggler {
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        margin-left: auto;
        border: 0 !important;
        border-radius: 0;
        padding: 0;
        background: #ffffff !important;
        background-image: none !important;
        color: #111 !important;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
        /* top: -10px; */
        right: -15px;
    }

    .nn-toggler:hover,
    .nn-toggler:focus,
    .nn-toggler:focus-visible,
    .nn-toggler:active,
    .nn-toggler:not(.collapsed) {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        transform: none !important;
    }

    .nn-toggler span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 24px;
        height: 2px;
        transform: translate(-50%, -50%);
        background: currentColor;
        border-radius: 999px;
        color: transparent;
        font-size: 0;
        line-height: 0;
        text-indent: -9999px;
        overflow: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nn-toggler::before,
    .nn-toggler::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 24px;
        height: 2px;
        transform: translateX(-50%);
        background: currentColor;
        border-radius: 999px;
        transition: top 0.2s ease, transform 0.2s ease;
    }

    .nn-toggler::before {
        top: 16px;
    }

    .nn-toggler::after {
        top: 32px;
    }

    .nn-toggler[aria-expanded="true"] span {
        opacity: 0;
    }

    .nn-toggler[aria-expanded="true"]::before,
    .nn-toggler[aria-expanded="true"]::after {
        top: 50%;
    }

    .nn-toggler[aria-expanded="true"]::before {
        transform: translateX(-50%) rotate(45deg);
    }

    .nn-toggler[aria-expanded="true"]::after {
        transform: translateX(-50%) rotate(-45deg);
    }

    #collapsibleNavbar.nn-collapse {
        flex: 0 0 calc(100% + 40px);
        order: 3;
        width: calc(100% + 40px);
        margin: 0 -20px;
        background: radial-gradient(circle at top right, rgba(255, 61, 61, 0.12), rgba(255, 61, 61, 0) 34%),
            linear-gradient(180deg, #191919 0%, #0d0d0f 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        min-height: calc(100vh - 88px);
        padding: 8px 20px 24px;
        margin-top: 10px;

    }

    .nn-collapse.collapse:not(.show) {
        display: none !important;
    }

    .nn-collapse.collapse.show,
    .nn-collapse.collapsing {
        display: block !important;
    }

    .nn-nav-list {
        width: 100%;
        gap: 0;
        padding-left: 0;
        margin-bottom: 0;
        flex-direction: column;
    }

    .nn-nav-list > .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    }

    .nn-nav-list > .nav-item:last-child {
        border-bottom: 0;
    }

    .nn-nav-list > .nav-item > .nn-link {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        color: #f4f4f4 !important;
        border-bottom: 0 !important;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
    }

    .nn-link:hover,
    .nn-link.active {
        color: #f4f4f4 !important;
        border-bottom: 0 !important;
    }

    .nn-dropdown > .nn-link {
        cursor: pointer;
    }

    .nn-dropdown > .nn-link .nn-link2 {
        margin-left: auto !important;
        width: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nn-dropdown > .nn-link .nn-link2::after {
        content: "\2304";
        font-size: 18px;
        line-height: 1;
        color: #f4f4f4;
        display: inline-block;
        transform: translateY(-1px);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nn-dropdown.is-open > .nn-link {
        color: #ff312a !important;
    }

    .nn-dropdown.is-open > .nn-link .nn-link2::after {
        color: #ff312a;
        transform: rotate(180deg) translateY(-7px);
        
    }

    .nn-dropdown>.nn-dropbox {
        display: none !important;
    }

    .nn-dropdown.is-open>.nn-dropbox {
        display: block !important;
    }

    .nn-dropdown:hover>.nn-dropbox,
    .nn-dropdown:focus-within>.nn-dropbox {
        display: none !important;
    }

    .nn-dropdown.is-open:hover>.nn-dropbox,
    .nn-dropdown.is-open:focus-within>.nn-dropbox {
        display: block !important;
    }

    .nn-dropbox {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        min-width: 0;
        margin: 2px 0 18px;
        padding: 18px 16px 16px !important;
        border-radius: 18px !important;
        background: linear-gradient(145deg, rgba(34, 36, 41, 0.98), rgba(21, 23, 27, 0.98)) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
        animation: none;
        scrollbar-width: none;
    }

    .nn-dropdown:nth-child(3) .nn-dropbox {
        min-width: 0;
        
    }

    .nn-box {
        display: block;
    }

    .nn-dropdown:nth-child(3) .nn-box {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .nn-sub-section {
        padding: 0;
    }

    .nn-sub-title {
        margin-bottom: 10px;
        color: #ff3b31 !important;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .nn-sub-menu {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .nn-sub-menu a {
        display: block;
        padding: 10px 0;
        margin-bottom: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: #f2f2f2 !important;
        font-size: 16px;
        line-height: 1.35;
    }

    .nn-sub-menu a:hover {
        color: #ffffff !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nn-mobile-only {
        display: block;
    }

    .nn-actions {
        display: none !important;
    }

    .nn-mobile-footer {
        width: 100%;
        margin-top: 18px;
        padding-top: 18px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        flex-direction: column;
        gap: 16px;
    }

    #collapsibleNavbar.show .nn-mobile-footer,
    #collapsibleNavbar.collapsing .nn-mobile-footer {
        display: flex;
    }

    .nn-mobile-footer__strip {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .nn-mobile-sap-logo {
        display: block;
        width: auto;
        height: 48px;
        flex: 0 0 auto;
    }

    .nn-mobile-footer__divider {
        width: 1px;
        height: 40px;
        background: rgba(255, 255, 255, 0.16);
        flex: 0 0 auto;
    }

    .nn-mobile-phone {
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }

    .nn-mobile-cta {
        display: block;
        width: 100%;
        padding: 15px 18px;
        border-radius: 14px;
        background: linear-gradient(180deg, #ff3a2d 0%, #e10f0f 100%);
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        /* box-shadow: 0 12px 24px rgba(226, 15, 15, 0.28); */
    }
}

@media (max-width: 576px) {
    .nn-nav-main {
        padding: 2px 16px 0;
    }

    #collapsibleNavbar.nn-collapse {
        flex-basis: calc(100% + 32px);
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 8px 16px 22px;
        min-height: calc(100vh - 84px);
        margin-top: 10px;

    }

    .nn-logo {
        max-width: calc(100% - 60px);
    }

    .nn-logo img {
        height: 44px;
    }

    .nn-toggler {
        width: 44px;
        height: 44px;
    }

    .nn-toggler::before,
    .nn-toggler::after,
    .nn-toggler span {
        width: 22px;
    }

    .nn-toggler::before {
        top: 15px;
    }

    .nn-toggler::after {
        top: 29px;
    }

    .nn-nav-list > .nav-item > .nn-link {
        font-size: 17px;
        padding: 16px 0;
    }

    .nn-dropbox {
        padding: 16px 14px 14px !important;
        margin-bottom: 16px;
    }

    .nn-sub-menu a {
        font-size: 15px;
    }

    .nn-mobile-footer {
        padding-top: 16px;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }

    .nn-mobile-sap-logo {
        height: 44px;
    }

    .nn-mobile-phone {
        font-size: 15px;
    }

    .nn-mobile-cta {
        padding: 14px 16px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .nn-nav-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    #collapsibleNavbar.nn-collapse {
        flex-basis: calc(100% + 28px);
        width: calc(100% + 28px);
        margin: 0 -14px;
        padding-left: 14px;
        padding-right: 14px;
        margin-top: 10px;
    }

    .nn-logo {
        max-width: calc(100% - 56px);
    }

    .nn-logo img {
        height: 40px;
    }

    .nn-toggler {
        width: 40px;
        height: 40px;
    }

    .nn-toggler::before,
    .nn-toggler::after,
    .nn-toggler span {
        width: 20px;
    }

    .nn-toggler::before {
        top: 13px;
    }

    .nn-toggler::after {
        top: 27px;
    }

    .nn-nav-list > .nav-item > .nn-link {
        font-size: 16px;
        padding: 15px 0;
    }

    .nn-sub-menu a {
        font-size: 14px;
    }

    .nn-mobile-footer {
        padding-top: 14px;
    }

    .nn-mobile-sap-logo {
        height: 40px;
    }

    .nn-mobile-phone {
        font-size: 14px;
    }

    .nn-mobile-cta {
        font-size: 15px;
    }
}
