header#masthead div.menu-primary-menu-container {
	display: block;
    background-color: var(--lightpurple);
    border-radius: 50px;
}

header#masthead div.menu-primary-menu-container ul {
    padding: 0 20px;
}

header#masthead div.menu-primary-menu-container ul li{
    padding: 15px 0;
}

header#masthead .lhs{
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 40px;
}

header#masthead .rhs{
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 40px;
}

header#masthead div.menu-mobile-menu-container {
	display: none;
}

header#masthead {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    max-width: 1800px;
    transition: background 0.3s ease;
}

header#masthead .header-wrapper{
    height: 80px;
    margin: 15px 15px 0;
    width: calc(100% - 30px);
    padding-left: calc(5% - 15px);
    padding-right: calc(5% - 15px);
    background: var(--white);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
        transition: border-radius .3s ease;
        position: relative;
}


header#masthead .header-wrapper::after{
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: 15px;
    background: var(--darkpurple);
    z-index: 0;
    content: "";
    transition: opacity .25s ease;
}

/* hidden after scroll */
header#masthead.header-scrolled .header-wrapper::after{
    opacity: 0;
}
.page-id-22 header#masthead .header-wrapper::after{
    display: none;
}

header#masthead.header-compact .header-wrapper{
    border-radius: 20px;
}

header#masthead .main-navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
}

header#masthead .main-navigation ul li {
    margin: 0 20px;
    padding: 24px 0;
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul li a{
    color: var(--darkpurple);
    font-size: 0.85em;
    font-family: var(--inter);
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul li:hover a,
header#masthead .main-navigation ul li:focus a{
    color: var(--purple);
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul li.menu-item-has-children{
    padding-right: 15px;
}

header#masthead .main-navigation ul li.menu-item-has-children:after {
content: " ";
    width: 7px;
    height: 7px;
    position: absolute;
    border: 1.5px solid var(--darkpurple);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
    right: 0px;
    top: calc(50% - 6px);
}


header#masthead .main-navigation ul li ul li {
    padding: 10px 0;
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul li ul li a,
header#masthead .main-navigation ul li:hover ul li a,
header#masthead .main-navigation ul li:focus ul li a{
    color: var(--darkpurple);
    font-size: 0.9em;
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul li ul li:hover a,
header#masthead .main-navigation ul li ul li:focus a{
    color: var(--purple);
    transition: all 0.3s ease;
}

header#masthead .main-navigation ul ul {
    background: var(--lightpurple);
    display:block;
    margin-left: -15px;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    box-shadow: none;
    margin-top: -10px;
}

header#masthead a.custom-logo-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header#masthead a.custom-logo-link img.custom-logo {
    width: auto;
    height: 40px;
    display: block;
}

header#masthead .menu-top-menu-container{
    position: absolute;
    background: #3C285E;
    top: -15px;
	z-index: 999;
    right: 0;
    border-bottom-left-radius: 15px;
    padding: 0 0 0 15px;

    /* add these */
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

header#masthead .menu-top-menu-container.topnav-hidden{
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

header#masthead  .menu-top-menu-container ul li {
    padding: 0;
    margin: 0;
}

header#masthead .menu-top-menu-container ul li a{
    color: var(--white);
    font-size: 0.8em;
    font-weight: 300;
    padding: 5px 20px;
    text-wrap: nowrap;
}

header#masthead .menu-top-menu-container ul li a:hover{
    color: #b39dda;
}

header#masthead .menu-top-menu-container ul li:last-child a{
    background-color: #00CF78;
    transition: 0.3s ease all;
    border-bottom-left-radius: 15px;
}

header#masthead .menu-top-menu-container ul li:last-child a:hover{
    background-color: #01a963;
    color: var(--white);
    transition: 0.3s ease all;
}

header#masthead a.contact-number {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

header#masthead a.contact-number div{
    display: flex;
    gap: 0;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

header#masthead a.contact-number div span{
    font-size: 0.8em;
    font-weight: 350;
    line-height: 0.8em;
}

header#masthead a.contact-number svg{
    width: 30px;
}

header#masthead a.contact-number:hover svg{
    fill: var(--purple);
}

@media screen and (max-width:1200px){
    header#masthead .main-navigation .menu-toggle {
        margin-right: 40px!important;
    }
    header#masthead .menu-top-menu-container {
    top: -15px;
    }
header#masthead .rhs {
    margin-right: 50px;
    gap: 30px;
}
    header#masthead div.menu-primary-menu-container {
	display: none;
	}
	header#masthead div.menu-mobile-menu-container {
	display: flex;
	}

header#masthead .main-navigation .menu-toggle {
        display: block;
        margin: auto;
    }
    
    header#masthead .main-navigation {
        display: flex;
        width: 85px;
        position: fixed;
        right: 0;
        height:80px;
        background-color: transparent;
        flex-direction: column;
        justify-content: center;
        z-index: 9999;
    }
    
    
    header#masthead .main-navigation ul#mobile-menu {
        background: #f8f8f8;
        height: 100vh;
        top: 0;
        left: -500px;
        position: fixed;
        width: calc(100% - 85px);
        max-width:400px;
        min-width:150px;
        padding: 35px 20px 35px 5%!important;
        display: flex!important;
        flex-direction: column;
        justify-content: center;
        transition: all 1s ease;
    } 
    
    
    header#masthead .main-navigation.toggled ul#mobile-menu {
        background: #f8f8f8;
        z-index:9999;
        height: 100vh;
        top: 0;
        left: 0;
        position: fixed;
        width: calc(100% - 85px);
        max-width:400px;
        min-width:150px;
        padding: 35px 20px 35px 5%!important;
        display: flex!important;
        flex-direction: column;
        justify-content: center;
        transition: all 1s ease;
    } 
    
    header#masthead .main-navigation ul li {
        margin: 0;
        font-size: 1.25em;
    }
    
    header#masthead .main-navigation ul li a,
    header#masthead .main-navigation ul li:hover a,
    header#masthead .main-navigation ul li:focus a{
        margin: 0 0 15px;
        line-height: 1em;
        padding-bottom:3px;
    }
    
    header#masthead .main-navigation ul li.current_page_item a, 
    header#masthead .main-navigation ul li ul li.current_page_item a,
    header#masthead .main-navigation ul li.current_page_item:hover a,
    header#masthead .main-navigation ul li.current_page_item:focus a {
        margin: 0 0 15px;
        padding-bottom:3px;
    }

    
    header#masthead .main-navigation ul li {
        height: auto;
    }
    
    header#masthead .main-navigation ul li:hover,
    header#masthead .main-navigation ul li:focus{
        margin:0;
        font-size: 1.25em;
    }
    
    header#masthead .main-navigation ul ul{
        box-shadow: none;
    }
    
    
    
    header#masthead button div:first-child {
         margin: 0px 0 5px;
    }
    
   header#masthead button div {
    height: 3px;
    width: 34px;
    background: var(--darkpurple);
    margin: 5px 0;
    display:block;
    transition: all 0.3s ease;
}

    
    header#masthead button:hover div,
header#masthead button:focus div {
        background: var(--purple)0;
        transition: all 0.3s ease;
    }
    
    header#masthead button div:last-child {
         margin: 5px 0 8px;
        transition: all 0.3s ease;
    }
    
    

/* Top bar */
header#masthead nav#site-navigation.toggled button div:first-child {
    transform: rotate(45deg) translate(4px, 5px);
}

/* Middle bar hidden */
header#masthead nav#site-navigation.toggled button div:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

header#masthead nav#site-navigation.toggled button div:nth-child(3) {
 transform: rotate(-45deg) translate(7px, -7px);
}

    
    
    header#masthead .menu-toggle{
        background-color: transparent;
        color:var(--darkpurple);
        border:0;
        border-radius:0;
        font-size: 0.65em;
        cursor: pointer;
        padding: 0!important;
    }
    
    header#masthead .menu-toggle:hover,
header#masthead .menu-toggle:focus {
        color: var(--purple);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    header#masthead .menu-toggle:focus {
        outline: 0;
    }
    
    header.active .menu-toggle{
        color:var(--darkpurple)!important;
        transition: all 0.3s ease;
    }
    
    header.active button div{
        background-color:var(--darkpurple)!important;
        transition: all 0.3s ease;
    }
    
    header.active .menu-toggle:hover,
header.active .menu-toggle:focus{
        color:var(--purple)!important;
        transition: all 0.3s ease;
    }
    
    header.active button:hover div,
header.active button:focus div{
        background-color:var(--purple)!important;
        transition: all 0.3s ease;
    }
    header#masthead .menu-top-menu-container ul li{
        font-size: unset;
    }
        header#masthead .menu-top-menu-container ul li a{
                margin: 0;
                padding: 5px 20px;
    }
}

@media screen and (max-width:840px){
        header#masthead .menu-top-menu-container {
        display: none;
}
}
@media screen and (max-width:768px){
    header#masthead a.contact-number{
        display: none;
    }
        header#masthead .rhs {
        margin-right: 60px;
        }
}

@media screen and (max-width:540px){
	header#masthead a.no-svg{
		display: none;
	}
}