
/* ==========================================
   MAIN NAVIGATION
========================================== */

#navigation {

    width: 100%;

    background: #ffffff !important;

    border-top: 3px solid #96244f;

    border-bottom: 1px solid #dddddd;

    min-height: 65px;

    padding: 0;

}

#navigation > .container {

    max-width: 1250px;

    width: 100%;

    min-height: 62px;

    display: flex;

    flex-direction: row;

    align-items: center;

    flex-wrap: nowrap;

    gap: 14px;

}


/* ==========================================
   NCERT BRAND
========================================== */

#navigation .ncert-brand {

    display: inline-block;

    flex: 0 0 auto;

    background: #891b43;

    color: #ffffff !important;

    font-size: 13px;

    font-weight: 600;

    padding: 9px 12px;

    border-radius: 3px;

    text-decoration: none;

    white-space: nowrap;

}

#navigation .ncert-brand:hover {

    background: #68132f;

    color: #ffffff !important;

}


/* ==========================================
   DEPARTMENT INFORMATION
========================================== */

#navigation .department-information {

    flex: 0 0 430px;

    width: 430px;

    min-width: 430px;

    max-width: 430px;

    border-left: 2px solid #96244f;

    padding-left: 12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    margin: 0;

}

#navigation .department-name-hi {

    color: #96244f;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

    white-space: nowrap;

}

#navigation .department-name-en {

    color: #333333;

    font-size: 10px;

    line-height: 1.5;

    white-space: nowrap;

}


/* ==========================================
   NAVIGATION MENU
========================================== */

#navigation .navbar-collapse {

    flex: 1 1 auto;

    min-width: 0;

}

#navigation .navbar-nav {

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-end;

    margin-left: auto !important;

    flex-wrap: nowrap;

}

#navigation .navbar-nav .nav-link {

    color: #333333;

    font-size: 13px;

    padding: 12px 9px;

    white-space: nowrap;

}

#navigation .navbar-nav .nav-link:hover {

    color: #96244f;

}


/* ==========================================
   DROPDOWN MENU
========================================== */

#navigation .dropdown-menu {

    border: 1px solid #dddddd;

    border-radius: 0;

    margin-top: 0;

    min-width: 210px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

}

#navigation .dropdown-item {

    font-size: 13px;

    padding: 9px 14px;

    color: #333333;

}

#navigation .dropdown-item:hover {

    background: #f5f5f5;

    color: #96244f;

}


/* ==========================================
   MOBILE TOGGLE
========================================== */

#navigation .navbar-toggler {

    border: 1px solid #cccccc;

    border-radius: 3px;

    padding: 6px 9px;

}


/* ==========================================
   BACK TO TOP
========================================== */

#button {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #96244f;

    color: #ffffff;

    border-radius: 4px;

    opacity: 0;

    visibility: hidden;

    z-index: 9999;

    transition: all 0.3s ease;

}

#button.show {

    opacity: 1;

    visibility: visible;

}

#button:hover {

    background: #68132f;

    color: #ffffff;

}


/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 991px) {

    #navigation > .container {

        flex-wrap: wrap;

        padding-top: 8px;

        padding-bottom: 8px;

    }

    #navigation .department-information {

        flex: 1 1 200px;

        width: auto;

        min-width: 0;

        max-width: none;

    }

    #navigation .department-name-hi,
    #navigation .department-name-en {

        white-space: normal;

    }

    #navigation .navbar-toggler {

        margin-left: auto;

    }

    #navigation .navbar-collapse {

        flex: 0 0 100%;

        width: 100%;

    }

    #navigation .navbar-nav {

        flex-direction: column;

        align-items: stretch;

        margin-left: 0 !important;

    }

    #navigation .navbar-nav .nav-link {

        padding: 10px;

        border-bottom: 1px solid #eeeeee;

    }

    #navigation .dropdown-menu {

        border: none;

        box-shadow: none;

    }

}


@media (max-width: 480px) {

    #navigation > .container {

        gap: 8px;

    }

    #navigation .ncert-brand {

        font-size: 11px;

        padding: 8px;

    }

    #navigation .department-name-hi {

        font-size: 12px;

    }

    #navigation .department-name-en {

        font-size: 9px;

    }

}
