@import url(globals.css);
.nav-link {
    color: #000 !important;
    font-size: 0.9rem !important;
}

.main_navbar {
    height: 64px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.nav-hover {
    line-height: 32px;
}

.menu_dropdown li a {
    font-size: 14px;
}

.menu_dropdown li>a:hover {
    color: var(--clr-primary-1);
    background: transparent;
}

.menu_dropdown {
    z-index: 3;
    padding: .5rem;
    background: #fff;
    box-shadow: 0px 0px 30px 0 rgb(42 67 113 / 15%);
}

.menu_dropdown::before {
    content: '';
    position: absolute;
    display: block;
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}


/* SIDEBAR */

@media (min-width: 992px) {
    .menu_dropdown {
        z-index: 3;
        box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
        top: 55px;
        left: 50%;
        transform: translateX(-50%);
        padding: .5rem;
        background: #fff;
        border-radius: 0.25rem !important;
    }
}

.main_logo {
    /* width: 100px;
    white-space: normal; */
    font-size: 16px;
    color: #212529;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s all;
}

.main_logo img{
    width: 50px;
}

.main_logo:hover,
#language:hover,
.login_btn:hover,
.search_btn:hover {
    color: var(--clr-primary-1);
    cursor: pointer;
}

@media screen and (max-width: 500px) {
    .main_logo {
        font-size: 17px;
    }
}

.main_navbar_collapse {
    display: flex;
    justify-content: space-between;
}

.header_right_container {
    display: flex;
    align-items: center;
}

.login_btn {
    color: #000;
    transition: .3s ease-in;
    font-size: 0.9rem;
}

.search_btn {
    width: 25px;
    font-size: 0.9rem;
    color: #000;
    transition: .3s ease-in;
}

#language {
    padding: 10px;
    font-size: 0.9rem;
    display: block;
    transition: .3s ease-in;
}

#language::after {
    content: '';
    position: absolute;
    border: solid #000;
    border-radius: 0;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    top: 50%;
    left: 40px;
    transform: translateY(-50%) rotate(45deg);
    transition: .3s ease-in;
}

#language:hover::after {
    border-color: var(--clr-primary-1) !important;
}

.language_options {
    min-width: 15px !important;
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
}

.language_options::before {
    content: '';
    position: absolute;
    display: block;
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.metadata_option {
    padding: 0.2rem 1rem !important;
    font-size: 0.9rem;
    cursor: pointer;
}

.metadata_option:hover {
    background: #fff !important;
    color: var(--clr-primary-1);
}

.main_menu_btn {
    display: block;
    z-index: 1001;
}

@media screen and (max-width: 500px) {
    .main_menu_btn {
        padding: 0 !important;
    }
    .main_navbar {
        padding-right: 0 !important;
    }
}

@media (min-width: 992px) {
    .nav-hover:hover .dropdown-menu {
        display: block !important;
    }
    .nav_inner_layer {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .main_navbar_collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        opacity: 0;
        background-color: #000000;
        z-index: 2;
        display: none;
        transition: 0.3s ease-in-out all;
    }
    .menu_dropdown::before {
        top: 47px;
    }
    .main_navbar_collapse.show {
        display: block;
        opacity: 1;
    }
    .menu_name:hover::before {
        transform: scaleX(0);
    }
    .nav-hover {
        line-height: 20px;
    }
    .menu_dropdown li a {
        white-space: normal;
        text-transform: capitalize !important;
    }
    .nav-link {
        color: #fff!important;
        padding-left: 17px !important;
    }
    /* CHANGED------------------------------------------------------- */
    .login_btn,
    #language,
    .search_btn {
        color: #fff;
    }
    /* CHANGED------------------------------------------------------- */
    .header_right_container {
        justify-content: space-between;
    }
    #language::after {
        border-color: #fff !important;
    }
    .main_navbar_collapse::after {
        content: '';
        position: absolute;
        width: calc(100vw - 300px);
        height: 100%;
        background: #00000060;
        left: 100%;
        top: 0;
    }
    .nav_inner_layer {
        width: 100%;
        height: 100%;
        overflow-x: auto;
    }
    .main_navbar_collapse .navbar-nav {
        padding: 20px 0;
    }
}

.header_right_container {
    padding: 5px 15px;
    display: flex;
}


/* @media screen and (max-width: 1200px){ 
    .header_right_container {
        grid-template-columns: 1fr 0.5fr;
    }
}  */


/* *********************BURGER BUTTON********************* */

.bars {
    display: inline-block;
    width: 58px;
    height: 28px;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
}

.bars .bar {
    display: block;
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #1a1a1a;
    transition: 375ms;
    transition-property: top, opacity;
}

.bars .bar:nth-child(1) {
    top: 6px;
    opacity: 1;
    transition-delay: 125ms;
}

.bars .bar:nth-child(2) {
    top: 12px;
    transition-delay: 80ms;
}

.bars .bar:nth-child(3) {
    top: 18px;
    transition-delay: 40ms;
}

.bars .bar:nth-child(4) {
    top: 24px;
    opacity: 0;
    transition-delay: 0ms;
}

.nav_btn:hover .bar:nth-child(1) {
    top: 0px;
    opacity: 0;
    transition-delay: 0ms;
}

.nav_btn:hover .bar:nth-child(2) {
    top: 6px;
    transition-delay: 40ms;
}

.nav_btn:hover .bar:nth-child(3) {
    top: 12px;
    transition-delay: 80ms;
}

.nav_btn:hover .bar:nth-child(4) {
    top: 18px;
    opacity: 1;
    transition-delay: 125ms;
}

.nav_open .nav_btn .bar:nth-child(1) {
    top: 12px;
    transform-origin: 50% 50%;
    transform: rotate(45deg) scaleX(1.442);
    opacity: 1;
    transition-property: top, transform;
    background: #fff;
    height: 4px;
    width: 15px;
}

.nav_open .nav_btn .bar:nth-child(2) {
    top: 12px;
    opacity: 0;
    transition-delay: 0ms;
}

.nav_open .nav_btn .bar:nth-child(3) {
    top: 12px;
    transform-origin: 50% 50%;
    transform: rotate(-45deg) scaleX(1.442);
    transition-delay: 0ms;
    background: #fff;
    transition-property: top, transform;
    height: 4px;
    width: 15px;
}

.nav_open .nav_btn .bar:nth-child(4) {
    top: 24px;
    opacity: 0;
    transition: 0ms;
    transition-delay: 0ms;
}


/* SEARCH  MODAL*/

.search_container {
    background: #f1f5f8;
    position: fixed;
    top: 65px;
    width: 100%;
    padding: 10px;
}

.modal_search_form {
    width: 35%;
    display: flex;
    margin: 0 auto;
}

.search_modal_body {
    padding: 7px;
}

.modal_search_input {
    color: rgb(42, 42, 42);
    width: 100%;
    border: none;
    padding: 0.4rem 1.5rem;
    box-shadow: 0px 0px 30px 0 rgb(42 67 113 / 15%);
}

.modal_search_btn {
    display: inline-block;
    border: none;
    background-image: none;
    background-color: var(--clr-primary-1);
    color: white;
    letter-spacing: 1px;
    transition: 0.3s ease-in;
    padding: 0.4rem 1.5rem;
}

.modal_search_btn:hover {
    background: var(--clr-primary-hover);
}

.modal_search_article {
    display: block;
    width: 100%;
    color: rgb(42, 42, 42);
    padding: 1rem 1.5rem;
    background: #fff;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0px 0px 30px 0 rgb(42 67 113 / 15%);
    transition: 0.3s ease-in;
}

.modal_search_article:hover {
    color: var(--clr-primary-1);
}


/* SEARCH */

.main_search_form {
    height: 60px;
    position: relative;
    padding: 15px;
}

.main_search_input {
    height: 100%;
    font-size: 14px;
    display: inline-block;
    font-family: "Lato";
    font-weight: 100;
    border: none;
    outline: none;
    color: #555;
    padding: 3px;
    padding-right: 45px;
    width: 0px;
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    transition: width .4s cubic-bezier(0.000, 0.795, 0.000, 1.000);
    cursor: pointer;
    z-index: 2;
}

.main_search_input:focus:hover {
    border-bottom: 1px solid #BBB;
}

.main_search_input:focus {
    width: 250px;
    border-bottom: 1px solid #BBB;
    cursor: text;
    background-color: transparent;
    background: #fff;
}

.main_search_btn {
    position: absolute;
    top: 50%;
    left: 0;
    background: transparent;
    border: none;
    outline: none;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.main_search_icon {
    position: absolute;
    top: 0%;
    left: 0;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: .3s ease-in;
}

.main_search_input:hover~.main_search_icon {
    color: var(--clr-primary-1);
}

.main_search_btn:focus {
    outline: none;
}

.main_search_input:focus~.main_search_btn {
    z-index: 3 !important;
    display: block;
}

.main_search_input:focus~.main_search_icon {
    display: none;
}

@media screen and (max-width: 1200px) {
    .main_search_input:focus {
        width: calc(100vw - 350px);
    }
}

@media screen and (max-width: 992px) {
    .nav_inner_layer {
        position: relative;
    }
    .modal_search_form {
        position: absolute;
        top: 0;
    }
    .main_search_input {
        height: 65%;
        padding-right: 30px;
    }
    .main_search_input:focus {
        top: 70px;
        width: 250px;
        background: transparent;
    }
    .main_search_btn {
        color: #fff;
        top: 90px;
        left: 230px;
    }
    .main_search_icon {
        color: #fff;
    }
    .main_search_input {
        left: 0;
    }
    .main_search_input:focus~.main_search_icon {
        display: block;
    }
}

/* logout popup */
    .login_out_btn{
        transition: 0.2s ease-in;
    }

    .log_out_container:hover .login_out_btn {
        color: var(--clr-primary-1);
    }

    .menu_dropdown_right_side {
        right: 0;
        left: auto;
    }

    .menu_dropdown_right_side li a {
        font-size: 14px;
        transition: 0.2s ease-in;
    }

    .menu_dropdown_right_side  li>a:hover {
        color: var(--clr-primary-1);
        background: transparent;
    }

    .menu_dropdown_right_side  {
        z-index: 3;
        padding: .5rem;
        background: #fff;
        box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
    }

.menu_dropdown_right_side li:first-child {
    border-bottom: 1px solid silver;
    padding-left: 5px;
}
