.nav_bar {
    /* width: 1328px; */
    /* border-radius: 9999px; */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    /* top: 1rem; */
    border-bottom: 1px solid #171717;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.54) 100%);
    box-shadow: 0 4px 37.6px 0 rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(2px);
    z-index: 1000;
    margin: auto;
    animation: navbarAnimationStartUp 1.5s linear;
}


.navbar .navbar-brand {
    max-width: 220px;
    padding: 0 !important;
    min-width: auto !important;
}

.navbar .nav_search {
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    color: #fff;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 139%;
    letter-spacing: -0.28px;
}

.nav_bar .search_container_nav {
    display: flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 15px;
    width: 100%;
    max-width: 194px;
}

.nav_bar .navbar-nav {
    gap: 8px;
    justify-content: center;
}

.navbar .nav_search::placeholder {
    color: #666;
}

.nav_btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ededed !important;
    padding: 7px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.nav_btn:hover {
    transition: .3s all ease-in-out;
    background-color: rgb(20, 20, 20) !important;
}

.nav_btn.active {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.54) 100%);
    box-shadow: 0px 4px 37.6px 0px #00000066;
    backdrop-filter: blur(4px);
    border: none;
    background-color: rgb(20, 20, 20);
}



.nav_btn:hover,
.nav_btn.nav_btn--dropdown-open {
    background: linear-gradient(180deg, #000 0%, #000 100%) !important;
    border: 1px solid #1E1E1E !important;
}

.nav_dropdown_menu {
    position: absolute;
    top: 118%;
    border-radius: 5.162px;
    border: 2px solid #171717;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.90) 100%);
    box-shadow: 0 4.129px 38.816px 0 rgba(0, 0, 0, 0.40);
    padding: 8px 19px;
    padding-right: 10px;
    width: 100%;
    max-width: 840px;

}

/* Base state: hidden but still takes layout so it can animate */
.nav_dropdown_menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Open state */
.nav_dropdown_menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown container */
.nav_dropdown_menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transition:
        opacity 0.22s cubic-bezier(.22, 1, .36, 1),
        transform 0.32s cubic-bezier(.22, 1, .36, 1),
        visibility 0.22s ease;
}

.nav_dropdown_menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

/* Sub-menu links (staggered animation) */
.nav_dropdown_menu.is-open .menu-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.26s ease,
        transform 0.26s ease;
}

.nav_dropdown_menu .menu-item {
    opacity: 0;
    transform: translateY(2px);
}

/* Stagger timings */
.nav_dropdown_menu.is-open .menu-item:nth-child(1) {
    transition-delay: 1.06s;
}

.nav_dropdown_menu.is-open .menu-item:nth-child(2) {
    transition-delay: 2.12s;
}

.nav_dropdown_menu.is-open .menu-item:nth-child(3) {
    transition-delay: 3.18s;
}

.nav_dropdown_menu.is-open .menu-item:nth-child(4) {
    transition-delay: 4.24s;
}

.nav_dropdown_menu.is-open .menu-item:nth-child(5) {
    transition-delay: 4.30s;
}

.main_side_btn {
    opacity: 0.9;
    transform: translateY(0);
    transition:
        opacity 0.25s ease,
        transform 0.26s cubic-bezier(.22, 1, .36, 1);
}

.main_side_btn:hover,
.main_side_btn.main_side_btn--active {
    opacity: 1;
    transform: translateY(-3px);
}

.main_side_btn.main_side_btn--active {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.global-search-modal {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0;
    color: #f7f7f7;
}

.global-search-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.4rem;
}

.global-search-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #b1b1b1;
}

.global-search-modal .modal-content {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(3, 3, 3, 0.9));
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.65);
}

.global-search-modal .modal-body {
    padding: 1.75rem 1.5rem 2.25rem;
}

.global-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.25rem;
}

.global-search-input-wrapper .bx {
    font-size: 1.4rem;
    color: #888;
}

.global-search-input {
    background: transparent !important;
    border: none;
    padding: 0.35rem 0;
    color: #fff;
    font-size: 1.15rem;
    width: 100%;
    outline: none;
    box-shadow: none;
}

.global-search-input::placeholder {
    color: #666;
    opacity: 1;
}

body.global-search-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1045;
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.global-search-results {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    padding-top: 6px;
}

.global-search-result {
    display: block;
    padding: 1rem 1.2rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
    min-height: 140px;
}

.global-search-result:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.global-search-result h6 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.global-search-result p {
    margin: 0.35rem 0 0.35rem;
    color: #c9c9c9;
    font-size: 0.92rem;
    line-height: 1.45;
}

.global-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.75rem;
}

.global-search-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

.global-search-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c7c7c;
}

.global-search-empty {
    font-size: 0.9rem;
    color: #9b9b9b;
    padding: 1rem 1.2rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 0.5rem;
}


.nav_dropdown_menu * {
    color: white;
}

.main_side span {
    font-size: 13px;
}

.nav_dropdown_menu .btn_dropdown {
    display: flex;
}

.nav_dropdown_menu .main_side {
    display: flex;
    flex-direction: column;
    width: 380px;
    /* height: 410px; */
    overflow-y: scroll;
}

.nav_dropdown_menu .main_side::-webkit-scrollbar {
    width: 0;
}

.nav_dropdown_menu .main_side * {
    text-align: left;
}

.nav_dropdown_menu .main_side .main_side_btn {
    padding: 17px 15px;
    padding-right: 23px;
    border-radius: 6px;
}

.nav_dropdown_menu .main_side .main_side_btn:hover {
    transition: .3s all ease-in-out;
    background: #141414;
    box-shadow: 0px 4.13px 38.82px 0px #00000066;
    backdrop-filter: blur(4.129411697387695px);
    border: 1px solid transparent;
}

.nav_dropdown_menu .sub_side {
    background: #141414;
    box-shadow: 0px 4.13px 38.82px 0px #00000066;
    backdrop-filter: blur(4.129411697387695px);
    border-radius: 4px;
    padding: 10px 24px;
    width: calc(100% - 390px);
    height: inherit;
    margin-left: auto;
    /* height: 410px;
    overflow-y: scroll; */
}

.nav_dropdown_menu .sub_side::-webkit-scrollbar {
    width: 0;
}

.nav_dropdown_menu .sub_side a {
    padding: 15px 20px;
}

.products_dropdown .main_side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100% !important;
    align-items: start;
    height: auto;
}

.network_menu .main_side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100% !important;
    align-items: start;
    height: auto;
}

.nav_dropdown_menu .sub_side a h5 {
    margin-bottom: 12px;
}

.nav_dropdown_menu .sub_side a strong {
    margin-bottom: 4px;
    font-size: 16px !important;
}

.products_dropdown .sub_side {
    display: none !important;
}

.network_menu .sub_side {
    display: none !important;
    height: auto;
}
.products_menu .main_side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100% !important;
    align-items: start;
    height: auto;
}
.products_menu .sub_side {
    display: none !important;
    height: auto;
}
/* .nav_bar .navbar-nav .nav_dropdown_btn:not(.collapsed) {
    border-bottom: 1px solid white;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
} */

@media screen and (min-width: 1600px) {

    .nav_dropdown_menu .sub_side a strong {
        font-size: 1.2rem;
    }

    .nav_dropdown_menu .sub_side a span {
        font-size: 0.8rem;
    }
}


.max_footer {
    /* max-width: 1328px; */
    margin-left: auto;
    margin-right: auto;
}
