
/* =================================
   DEPARTMENT NAVIGATION
================================= */

#navigation {
    width: 100%;
    min-height: 65px;
    background: #ffffff !important;
    border-top: 3px solid #96244f;
    border-bottom: 1px solid #dddddd;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

#navigation .container {
    max-width: 1240px;
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
}

/* NCERT + Department Brand */

#navigation .department-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

#navigation .ncert-brand {
    background: #872044;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 3px;
    margin-right: 12px;
}

#navigation .department-divider {
    height: 34px;
    width: 2px;
    background: #96244f;
    margin-right: 12px;
}

#navigation .department-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

#navigation .department-title .hindi {
    color: #96244f;
    font-size: 14px;
    font-weight: 600;
}

#navigation .department-title .english {
    color: #333333;
    font-size: 10px;
    font-weight: 400;
}

/* Navigation Links */

#navigation .navbar-collapse {
    align-items: center;
    flex-grow: 0;
}

#navigation .navbar-nav {
    align-items: center;
}

#navigation .navbar-nav .nav-link {
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    padding: 12px 9px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#navigation .navbar-nav .nav-link:hover,
#navigation .navbar-nav .nav-link:focus {
    color: #96244f;
}

/* Dropdown */

#navigation .dropdown-menu {
    min-width: 220px;
    border: 1px solid #eeeeee;
    border-top: 2px solid #96244f;
    border-radius: 0;
    padding: 5px 0;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#navigation .dropdown-item {
    font-size: 13px;
    color: #333333;
    padding: 9px 15px;
    white-space: normal;
}

#navigation .dropdown-item:hover,
#navigation .dropdown-item:focus {
    color: #96244f;
    background: #f8f5f6;
}

/* Mobile Button */

#navigation .navbar-toggler {
    border: 1px solid #96244f;
    border-radius: 3px;
    padding: 5px 9px;
}

/* Back To Top */

#button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 42px;
    height: 42px;
    background: #96244f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#button.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */

@media (max-width: 991px) {

    #navigation .container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    #navigation .department-brand {
        margin-right: auto;
        max-width: calc(100% - 55px);
    }

    #navigation .department-title .hindi {
        font-size: 12px;
        white-space: normal;
    }

    #navigation .department-title .english {
        font-size: 10px;
        white-space: normal;
    }

    #navigation .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    #navigation .navbar-nav {
        align-items: flex-start;
    }

    #navigation .navbar-nav .nav-link {
        padding: 10px 5px;
        white-space: normal;
    }

    #navigation .dropdown-menu {
        box-shadow: none;
        border: 0;
        border-left: 2px solid #96244f;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {

    #navigation .ncert-brand {
        font-size: 11px;
        padding: 8px;
        margin-right: 7px;
    }

    #navigation .department-divider {
        margin-right: 7px;
    }

    #navigation .department-title .hindi {
        font-size: 11px;
    }

    #navigation .department-title .english {
        font-size: 9px;
    }
}

  