
/* =====================================================
   NCERT DEPARTMENT NAVIGATION
   Department: DER / DEE / DEGSN / PMD / IRD / ESD
   ===================================================== */


/* Main Navigation */

#navigation {
    width: 100%;
    min-height: 65px;
    padding: 8px 0;
    margin: 0;
    background: #ffffff !important;
    border-top: 3px solid #96244f;
    border-bottom: 1px solid #dddddd;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}


/* Main Container */

#navigation > .container {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}


/* Department Identity */

.department-identity {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    flex: 0 0 auto !important;
    min-width: 0;
    margin-right: 25px;
}


/* NCERT Badge */

.ncert-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    background: #96244f;
    color: #ffffff !important;

    padding: 8px 12px;
    border-radius: 3px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none !important;
    white-space: nowrap;

    transition: background 0.2s ease;
}

.ncert-badge:hover {
    background: #751a3c;
    color: #ffffff !important;
}


/* Vertical Divider */

.department-divider {
    width: 2px;
    height: 36px;
    background: #96244f;
    margin: 0 12px;
    flex-shrink: 0;
}


/* Department Name */

.department-title {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;
    white-space: nowrap;
}


/* Hindi Department Name */

.department-title .title-hi {
    display: block;
    color: #96244f;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    margin: 0;
    padding: 0;
}


/* English Department Name */

.department-title .title-en {
    display: block;
    color: #333333;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;

    margin: 0;
    padding: 0;
}


/* Navigation Collapse */

#navigation .navbar-collapse {
    display: flex !important;
    flex-grow: 1 !important;
    flex-basis: auto !important;

    align-items: center;
    justify-content: flex-end !important;

    min-width: 0;
}


/* Navigation List */

#navigation .navbar-nav {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-end;

    margin-left: auto !important;
    margin-bottom: 0;
    padding: 0;
}


/* Navigation Items */

#navigation .nav-item {
    position: relative;
    margin: 0;
    padding: 0;
}


/* Navigation Links */

#navigation .navbar-nav .nav-link {
    display: block;

    color: #333333 !important;

    font-size: 13px;
    font-weight: 400;

    padding: 10px 9px;
    line-height: 1.5;

    white-space: nowrap;
    text-decoration: none;

    transition: color 0.2s ease;
}


/* Hover */

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


/* Dropdown Menu */

#navigation .dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 190px;
    margin: 0;
    padding: 5px 0;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-top: 2px solid #96244f;

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

    z-index: 1050;
}


/* Dropdown Items */

#navigation .dropdown-item {
    display: block;

    padding: 8px 15px;

    color: #333333;
    font-size: 13px;

    white-space: normal;
    text-decoration: none;

    transition: all 0.2s ease;
}


/* Dropdown Hover */

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


/* Dropdown Arrow */

#navigation .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 4px;
}


/* Mobile Toggle Button */

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

#navigation .navbar-toggler:focus {
    box-shadow: none;
}


/* Back To Top Button */

#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: 3px;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;

    text-decoration: none;

    transition: all 0.3s ease;
}

#button:hover {
    background: #751a3c;
    color: #ffffff;
}

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


/* =====================================================
   TABLET RESPONSIVE
   ===================================================== */

@media (max-width: 1199px) {

    #navigation > .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .department-identity {
        margin-right: 12px;
    }

    #navigation .navbar-nav .nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12px;
    }

}


/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {

    #navigation {
        min-height: 60px;
        padding: 8px 0;
    }

    #navigation > .container {
        flex-wrap: wrap !important;
    }

    .department-identity {
        max-width: calc(100% - 60px);
        margin-right: 0;
    }

    .department-title {
        white-space: normal;
    }

    .department-title .title-hi {
        font-size: 12px;
    }

    .department-title .title-en {
        font-size: 9px;
    }

    #navigation .navbar-toggler {
        margin-left: auto;
    }

    #navigation .navbar-collapse {
        display: none !important;
        flex: 0 0 100% !important;
        width: 100%;
        margin-top: 10px;
    }

    #navigation .navbar-collapse.show {
        display: block !important;
    }

    #navigation .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        margin-left: 0 !important;
    }

    #navigation .navbar-nav .nav-link {
        padding: 10px 5px;
        border-bottom: 1px solid #eeeeee;
        font-size: 13px;
    }

    #navigation .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        border-left: 2px solid #96244f;
        padding-left: 8px;
    }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 480px) {

    #navigation > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ncert-badge {
        padding: 7px 8px;
        font-size: 11px;
    }

    .department-divider {
        height: 32px;
        margin: 0 8px;
    }

    .department-title .title-hi {
        font-size: 11px;
        line-height: 1.4;
    }

    .department-title .title-en {
        font-size: 9px;
        line-height: 1.4;
    }

    #button {
        right: 15px;
        bottom: 15px;
    }

}
