/* ===================== NAVBAR ===================== */
.jms-navbar {
    background: var(--navy);
    padding: .65rem 0;
    transition: box-shadow .3s ease;
}

@media (max-width: 991.98px) {
    .jms-navbar {
        position: static !important;
    }
}

.jms-navbar.scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.jms-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* .brand-mark {
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
} */

.brand-accent {
    color: var(--orange);
}

/* .brand-sub {
    font-size: .65rem;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .6);
} */

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-weight: 500;
    position: relative;
    margin: 0 .35rem;
    transition: color .25s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    animation: fadeDown .25s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.icon-btn:hover {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    transform: rotate(15deg) scale(1.08);
}

.btn-outline-light {
    border-radius: 20px;
    transition: all .25s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-signup {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 47, 176, .45);
    color: #fff;
    background-position: right center;
}



/* ===================== SUB DROPDOWN ===================== */

.dropdown-toggle-custom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 0.75rem;
}

/* ---- submenu base styles (all sizes) ---- */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.dropdown-submenu.show>.dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* ---- desktop: hover-driven flyout ---- */
@media (min-width:992px) {
    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }
}

/* ---- mobile: click-driven accordion ---- */
@media (max-width:991.98px) {
    .dropdown-submenu>.dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding-left: 18px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dropdown-submenu.show>.dropdown-menu {
        display: block;
    }
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    background: linear-gradient(135deg, #7b3ff2, #ff2faf);
    /* backdrop-filter: blur(37px); */
    /* display:block; */
    left: 50%;
    top: 100%;
}

.dropdown-item {
    color: #fff;
    font-weight: 500;
}

/* background: linear-gradient(135deg, #7b3ff282, #ff2fb0a1);
    backdrop-filter: blur(37px); */
/* ===================== DROPDOWN ICON===================== */

/* Dropdown Icon */

.dropdown-toggle-custom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform .3s ease;
}

/* Rotate icon when dropdown is open */
.dropdown.show>.dropdown-toggle-custom .dropdown-icon {
    transform: rotate(180deg);
}

/* ===================== PROFILE ===================== */
.profile-dropdown {
    min-width: 220px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    padding: 8px 0;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.profile-dropdown .dropdown-item {
    padding: 10px 18px;
    transition: .3s;
    font-size: 1rem;
    font-weight: 500;
}

.profile-dropdown .dropdown-item:hover {
    background: #ffffff;
    color: #000000;
}

.profile-dropdown .dropdown-item i {
    width: 20px;
}

.logout-link {
    color: #ff0000;
    background: #ffffffb5;
}

.logout-link:hover {
    background: #ffffff;
    color: #ff0000 !important;
    transform: scale(0.95);
    border-radius: 10px 10px 10px 10px;
}



/* ===================== SEARCH BAR ===================== */
/* Search Wrapper */
.search-wrapper {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all .45s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    position: fixed;
    z-index: 9;
}

/* Show Search */
.search-wrapper.show {
    max-height: 100%;
    opacity: 1;
    padding: 20px 0;
    position: fixed;
    z-index: 9;
}

@media (max-width: 991.98px) {
    .search-wrapper.show {
        position: absolute;
    }
}

/* Search Form */
.search-box {
    display: flex;
    gap: 15px;
}

.search-box input {
    height: 50px;
    border-radius: 50px;
    padding-left: 20px;
}

.search-box button {
    border-radius: 50px;
    padding: 0 30px;
}

.form-control:focus {
    border: 3px solid #EA31BA;
    box-shadow: none;
}

@media(max-width:768px) {

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 39%;
        margin: auto;
        font-size: 18px;
        padding: 5px;
        font-weight: 500;
    }
}

/* ===========common=============== */
.nav-actions .btn-outline-light {
    border: 2px solid white;
    font-weight: 600;
}

.nav-actions .btn-signup {
    border: 2px solid orangered;
    font-weight: 600;
}