﻿/*=========================================================
    HEADER CSS
    PART 1
    Medicare Plus Healthcare Pvt. Ltd.
=========================================================*/

/*==========================================
    HEADER
==========================================*/

header {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 999;
}


/*==========================================
    TOP HEADER
==========================================*/

.top-header {
    background: linear-gradient(90deg,#062B5B,#0E4B8F);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .top-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 44px;
    }


/*==========================================
    LEFT CONTACT
==========================================*/

.left-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .left-info a {
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        transition: .35s;
    }

        .left-info a:hover {
            color: #D7EBFF;
        }

    .left-info i {
        margin-right: 8px;
        color: #7FD3FF;
    }


/*==========================================
    SOCIAL ICONS
==========================================*/

.right-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .right-social a {
        width: 34px;
        height: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        color: #fff;
        transition: .35s;
    }

        .right-social a:hover {
            background: #fff;
            color: #0B3D91;
            transform: translateY(-3px);
        }


/*==========================================
    MIDDLE HEADER
==========================================*/

.middle-header {
    background: #fff;
    border-bottom: 1px solid #EDF2F7;
}

    .middle-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 105px;
    }


/*==========================================
    LOGO
==========================================*/

.logo {
    display: flex;
    align-items: center;
}

    .logo a {
        display: flex;
        align-items: center;
        color: inherit;
    }

    .logo img {
        width: 90px;
        margin-right: 18px;
    }


/*==========================================
    COMPANY NAME
==========================================*/

.company-name {
    display: flex;
    flex-direction: column;
}

    .company-name h1 {
        font-size: 34px;
        font-weight: 800;
        color: #072A5F;
        line-height: 1;
        letter-spacing: .3px;
        margin: 0;
    }

    .company-name h3 {
        margin-top: 7px;
        font-size: 15px;
        color: #0B65C2;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .company-name span {
        margin-top: 6px;
        font-size: 13px;
        color: #7C8796;
        font-style: italic;
    }


/*==========================================
    RIGHT HEADER
==========================================*/

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


/*==========================================
    SUPPORT BOX
==========================================*/

.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .info-box i {
        width: 58px;
        height: 58px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 14px;
        background: #EEF5FD;
        color: #0B3D91;
        font-size: 24px;
        transition: .35s;
    }

    .info-box:hover i {
        background: #0B3D91;
        color: #fff;
    }

    .info-box small {
        display: block;
        font-size: 12px;
        color: #7A8795;
        font-weight: 500;
    }

    .info-box strong {
        display: block;
        margin-top: 3px;
        color: #072A5F;
        font-size: 17px;
        font-weight: 700;
    }


/*==========================================
    MENU BUTTON
==========================================*/

.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 12px;
    background: #0B3D91;
    color: #fff;
    font-size: 22px;
    transition: .35s;
}

    .menu-toggle:hover {
        background: #072A5F;
        transform: translateY(-2px);
    }
/*==========================================
    STICKY NAVIGATION
==========================================*/

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(90deg,#0B3D91,#0E4B8F);
    box-shadow: 0 8px 25px rgba(11,61,145,.18);
}

    .navbar .container {
        display: flex;
        justify-content: center;
    }

.menu {
    display: flex;
    align-items: center;
}

    .menu > li {
        position: relative;
    }

        .menu > li > a {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #fff;
            padding: 18px 22px;
            font-size: 15px;
            font-weight: 500;
            transition: all .35s ease;
        }

            .menu > li > a i {
                font-size: 13px;
            }

            .menu > li > a:hover,
            .menu > li > a.active {
                background: rgba(255,255,255,.12);
                color: #fff;
            }

/*==========================================
    DROPDOWN
==========================================*/

.submenu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 260px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .35s ease;
    overflow: hidden;
}

.menu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 14px 22px;
    color: #2b2b2b;
    font-size: 14px;
    border-bottom: 1px solid #edf2f7;
    transition: .3s;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--primary);
    color: #fff;
    padding-left: 30px;
}

/*==========================================
    MOBILE MENU
==========================================*/

.mobile-logo {
    display: none;
}

.close-menu {
    display: none;
    border: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    visibility: hidden;
    opacity: 0;
    transition: .35s;
    z-index: 9998;
}

    .overlay.show {
        visibility: visible;
        opacity: 1;
    }

/*==========================================
    MOBILE
==========================================*/

@media(max-width:991px) {

    .top-header {
        display: none;
    }

    .middle-header .container {
        min-height: 75px;
    }

    .logo img {
        width: 60px;
    }

    .company-name h1 {
        font-size: 22px;
    }

    .company-name h3 {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .company-name span {
        display: none;
    }

    .info-box {
        display: none;
    }

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Drawer */

    .navbar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        transition: .4s ease;
        z-index: 99999;
        box-shadow: 0 0 25px rgba(0,0,0,.18);
    }

        .navbar.active {
            left: 0;
        }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px;
        background: linear-gradient(90deg,#0B3D91,#0E4B8F);
        color: #fff;
    }

        .mobile-logo img {
            width: 55px;
        }

        .mobile-logo > div {
            flex: 1;
            margin-left: 15px;
        }

        .mobile-logo h3 {
            font-size: 18px;
        }

        .mobile-logo small {
            opacity: .9;
        }

    .close-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255,255,255,.15);
        color: #fff;
        cursor: pointer;
    }

    .menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

        .menu > li {
            width: 100%;
        }

            .menu > li > a {
                width: 100%;
                justify-content: space-between;
                padding: 16px 20px;
                color: #1d3557;
                background: #fff;
                border-bottom: 1px solid #edf2f7;
            }

                .menu > li > a:hover {
                    background: #f4f8fd;
                    color: var(--primary);
                }

    .submenu {
        position: static;
        width: 100%;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8fbff;
    }

    .menu li:hover > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 14px 40px;
    }

        .submenu li a:hover {
            background: #EAF3FF;
            color: var(--primary);
            padding-left: 48px;
        }
}
/*==========================================
    MOBILE MENU
==========================================*/

.mobile-logo {
    display: none;
}

.close-menu {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 9998;
}

    .overlay.show {
        opacity: 1;
        visibility: visible;
    }

/*==========================================
    MOBILE
==========================================*/

@media (max-width:991px) {

    .top-header {
        display: none;
    }

    .middle-header .container {
        min-height: 75px;
    }

    .logo img {
        width: 58px;
        margin-right: 12px;
    }

    .company-name h1 {
        font-size: 22px;
    }

    .company-name h3 {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .company-name span {
        display: none;
    }

    .info-box {
        display: none;
    }

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Drawer */

    .navbar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        overflow-y: auto;
        background: #fff;
        transition: .35s;
        z-index: 99999;
        box-shadow: 0 0 30px rgba(0,0,0,.18);
    }

        .navbar.active {
            left: 0;
        }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px;
        background: linear-gradient(90deg,#0B3D91,#2563EB);
        color: #fff;
    }

        .mobile-logo img {
            width: 55px;
        }

        .mobile-logo > div {
            flex: 1;
            margin-left: 15px;
        }

        .mobile-logo h3 {
            font-size: 17px;
            margin-bottom: 2px;
        }

        .mobile-logo small {
            opacity: .9;
        }

    .close-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255,255,255,.18);
        color: #fff;
        border: none;
        cursor: pointer;
        transition: .3s;
    }

        .close-menu:hover {
            background: rgba(255,255,255,.3);
        }

    .menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

        .menu > li {
            width: 100%;
        }

            .menu > li > a {
                width: 100%;
                justify-content: space-between;
                padding: 16px 22px;
                color: #1F2937;
                background: #fff;
                border-bottom: 1px solid #EEF3F8;
                font-size: 15px;
            }

                .menu > li > a:hover {
                    background: #EFF6FF;
                    color: var(--primary);
                }

                .menu > li > a.active {
                    background: #E8F1FF;
                    color: var(--primary);
                }

    .submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-radius: 0;
        box-shadow: none;
        background: #F8FBFF;
        border-top: 1px solid #EEF3F8;
    }

    .menu li:hover > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 14px 40px;
        font-size: 14px;
    }

        .submenu li a:hover {
            background: #E8F1FF;
            color: var(--primary);
            padding-left: 48px;
        }
}
```css
/* =========================================================
   MEDICARE PLUS
   MOBILE RESPONSIVE HEADER / NAVBAR
   Add at the VERY END of header.css
========================================================= */
/* =========================================================
   GLOBAL HEADER SAFETY
========================================================= */
header,
.navbar,
.top-header,
.middle-header {
    width: 100%;
}

    header *,
    .navbar * {
        box-sizing: border-box;
    }

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   DESKTOP NAVBAR
========================================================= */

.navbar {
    position: relative;
    width: 100%;
    z-index: 9999;
}

    .navbar .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .menu > li {
        position: relative;
    }

        .menu > li > a {
            display: flex;
            align-items: center;
            gap: 7px;
            white-space: nowrap;
        }


        /* =========================================================
   DESKTOP SUBMENU
========================================================= */

        .menu > li > .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 230px;
            margin: 0;
            padding: 8px 0;
            background: #fff;
            list-style: none;
            visibility: hidden;
            opacity: 0;
            transform: translateY(10px);
            transition: all .25s ease;
            box-shadow: 0 15px 35px rgba(0,0,0,.12);
            border-radius: 0 0 10px 10px;
            z-index: 10000;
        }

        .menu > li:hover > .submenu {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
        }

        .menu > li > .submenu li {
            width: 100%;
        }

        .menu > li > .submenu a {
            display: block;
            width: 100%;
            padding: 11px 18px;
            white-space: nowrap;
        }


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;
    border: 0;
    outline: none;
    cursor: pointer;
    background: transparent;
    color: #0B3D91;
    font-size: 25px;
    padding: 8px;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-logo {
    display: none;
}


/* =========================================================
   TABLET + MOBILE
========================================================= */

@media (max-width: 991px) {

    /* -----------------------------------------
       TOP HEADER
    ----------------------------------------- */

    .top-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-header .container,
    .top-header .left-info,
    .top-header .right-social {
        flex-wrap: wrap;
    }


    /* -----------------------------------------
       MIDDLE HEADER
    ----------------------------------------- */

    .middle-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .header-right .info-box {
            display: none;
        }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* -----------------------------------------
       MOBILE NAVBAR
    ----------------------------------------- */

    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 380px;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 99999;
        transition: left .35s ease;
        box-shadow: 10px 0 35px rgba(0,0,0,.15);
    }

        .navbar.active {
            left: 0;
        }


    /* -----------------------------------------
       MOBILE LOGO HEADER
    ----------------------------------------- */

    .mobile-logo {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 75px;
        padding: 12px 15px;
        background: linear-gradient(90deg,#0B3D91,#0E4B8F);
        color: #fff;
        z-index: 10;
    }

        .mobile-logo img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .mobile-logo > div {
            min-width: 0;
            flex: 1;
        }

        .mobile-logo h3 {
            margin: 0;
            color: #fff;
            font-size: 17px;
            line-height: 1.2;
            white-space: nowrap;
        }

        .mobile-logo small {
            display: block;
            margin-top: 3px;
            color: rgba(255,255,255,.9);
            font-size: 10px;
        }

    .close-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.15);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }


    /* -----------------------------------------
       MOBILE MENU CONTAINER
    ----------------------------------------- */

    .navbar .container {
        width: 100%;
        padding: 0;
    }

    .menu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px 0 30px;
    }

        .menu > li {
            display: block;
            width: 100%;
            border-bottom: 1px solid #E8EEF7;
        }

            .menu > li > a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                min-height: 52px;
                padding: 14px 18px;
                color: #163A63;
                font-size: 15px;
                font-weight: 600;
                text-decoration: none;
            }

                .menu > li > a i {
                    font-size: 11px;
                }

                .menu > li > a:hover {
                    background: #F3F8FF;
                    color: #0B3D91;
                }


            /* -----------------------------------------
       MOBILE SUBMENU
    ----------------------------------------- */

            .menu > li > .submenu {
                position: static;
                display: none;
                width: 100%;
                min-width: 0;
                padding: 0;
                margin: 0;
                background: #F7FAFF;
                visibility: visible;
                opacity: 1;
                transform: none;
                box-shadow: none;
                border-radius: 0;
            }

                .menu > li > .submenu li {
                    display: block;
                    width: 100%;
                    border-top: 1px solid #E5ECF5;
                }

                .menu > li > .submenu a {
                    display: block;
                    width: 100%;
                    padding: 13px 25px 13px 35px;
                    color: #45617F;
                    font-size: 14px;
                    white-space: normal;
                }

                    .menu > li > .submenu a:hover {
                        background: #EAF3FF;
                        color: #0B3D91;
                    }


    /* -----------------------------------------
       STICKY NAVBAR
    ----------------------------------------- */

    .navbar.fixed {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 380px;
    }

        .navbar.fixed.active {
            left: 0;
        }
}


/* =========================================================
   MOBILE
   767px
========================================================= */

@media (max-width: 767px) {

    .top-header {
        display: none;
    }

    .middle-header {
        min-height: 70px;
    }

        .middle-header .container {
            min-height: 70px;
        }

    .logo img {
        max-width: 52px;
        max-height: 52px;
    }

    .company-name h1 {
        font-size: 18px;
    }

    .company-name h3 {
        font-size: 9px;
    }

    .company-name span {
        display: none;
    }

    .menu-toggle {
        width: 45px;
        height: 45px;
        padding: 0;
    }

    .navbar {
        max-width: 350px;
    }
}


/* =========================================================
   SMALL MOBILE
   480px
========================================================= */

@media (max-width: 480px) {

    .middle-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        min-width: 0;
    }

        .logo > a {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .logo img {
            width: 45px;
            height: 45px;
            flex-shrink: 0;
        }

    .company-name {
        min-width: 0;
    }

        .company-name h1 {
            font-size: 16px;
            white-space: nowrap;
        }

        .company-name h3 {
            font-size: 8px;
            white-space: nowrap;
        }

    .menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .navbar {
        max-width: 100%;
    }

    .mobile-logo {
        min-height: 70px;
        padding: 10px 12px;
    }

        .mobile-logo img {
            width: 44px;
            height: 44px;
        }

        .mobile-logo h3 {
            font-size: 16px;
        }
}


/* =========================================================
   EXTRA SMALL MOBILE
   360px
========================================================= */

@media (max-width: 360px) {

    .company-name h1 {
        font-size: 15px;
    }

    .company-name h3 {
        font-size: 7px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-logo h3 {
        font-size: 15px;
    }
}