.header-top {
    padding: 10px 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}


.logo-text {
    width: 540px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #2e78e8;
}



.nav-link.dropdown-toggle::after {
    margin-left: 5px;
}

.admission {
    background: black;
    color: #fff !important;
    border-radius: 20px;
    padding: 7px 20px;
    font-weight: bold;
    text-decoration: none;
    height: 40px;
    margin-top: 7px;

}

.admission .pgdm-btn {
    color: white;

    text-decoration: none;
    animation: blink 1s infinite;
}

.text-gray {
    color: gray;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    10% {
        opacity: 0;
    }
}

.menu-btn {
    background-color: #2e78e8 !important;
    padding: 4px !important;
    border-radius: 5px !important;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    margin-top: 5px;
}

.navbar {
    background: #2e78e8;
   
}

.dropdown-right-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 200px;

}



.navbar .nav-link,
.navbar .dropdown-item {
    color: #fff;
    font-weight: bold;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
    color: white;
    background: #2e78e8;
}

/* Prevent parent link from changing color when dropdown open */
.navbar .nav-link.show {
    color: #fff;
}

/* Dropdown menu */
.dropdown-menu {
    background-color: white;
    border: 1px solid #2e78e8;
    margin-top: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item {
    color: black;
}

/* Right-aligned submenu */
.dropdown-menu .dropdown-right-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 1px;
    background-color: white;
    border: 1px solid #2e78e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 10px;
    display: none;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown.dropdown-right:hover>.dropdown-right-menu {
    display: block;
}

/* Ensure nav-link stays same color even when dropdown is shown */
.nav-item.dropdown:hover>.nav-link {
    color: white;
}

/* Mobile fallback: show submenu statically */
@media (max-width: 992px) {
   

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        width: 100%;
        font-size: 1.2rem;
        color: #2e78e8;
        font-weight: 700;
    }

    .banner-logo h5 {
        font-size: 15px;
    }

   
}
@media (max-width: 768px) {
    .navbar {
      
        padding: 2px !important;
        
    }
    .header-top .logo {
        max-width: 60px;
        margin-right: 10px;
    }

    .banner-logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .banner-logo h2.logo-text {
        font-size: 13px;
        line-height: 1.2;
        margin: 0;
    }

    .banner-logo h5 {
        font-size: 12px;
        margin: 0;
    }

    .col-9 {
        display: flex;
        align-items: center;
    }

    .col-3 {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .col-3 a,
    .col-3 button {
        margin-left: 6px;
        padding: 6px 10px;
        font-size: 16px;
        border-radius: 8px;
    }

    .navbar-toggler.menu-btn {
        border: none;
        background: none;
        padding: 6px;
    }

    .navbar-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        margin-bottom: 4px;
        background-color: white;
    }

    .login {
        margin-left: 10px;
    }
}
