
header {
    position: relative;
    width: 100%;
    background: #FFF;
    padding: 7px 0px;
    z-index: 99;
}

header.fixed-top {
    animation-name: fadeInDown;
    animation-duration: 1s;
    animation-fill-mode: both;
    opacity: 0;
    box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInDown {
    from {
        transform: translate3d(0, -200px, 0)
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}

header .top-phone{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 15px;
    font-weight: 300;
}

header .top-phone strong{
    display: inline-block;
    padding-left: 5px;
}

header .top-phone a{
    color: var(--maroon-dark);
    transition: all 0.6s ease;
}

header .top-phone a:hover{
    color: var(--maroon);
    transition: all 0.6s ease;
}

header .top-phone a.top-enquiry{
    color: var(--white);
    padding: 10px 30px;
    margin-left: 15px;
    transition: all 0.6s ease;
    position: relative;
    z-index: 10;
    border-radius: 5px;
    font-weight: 600;;
    overflow: hidden;
    animation: tilt-shaking 0.45s infinite;
}

@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0eg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
  }

  header .top-phone a.top-enquiry:hover {

    animation:none;

   }






header .top-phone a.top-enquiry:before{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: "";
    background: var(--maroon);
    z-index: -2;
}

header .top-phone a.top-enquiry:after{
    position: absolute;
    right: 0;
    top: 0;
    width: 0px;
    height: 100%;
    content: "";
    background: var(--maroon-dark);
    z-index: -1;
    transition: all 0.6s ease;
}

header .top-phone a.top-enquiry:hover:after{
    width: 100%;
    left: 0px;
    right: inherit;
    transition: all 0.6s ease;
}
 
a.logo {
    display: block;
    position: absolute;
    left: calc(47% - 65px);
    top: 5px;
    width: auto;
    transition: all 0.6s ease;
    padding: 0px 0px 20px 0px;
}

a.logo:before{
    display: none;
    position: absolute;
    left: -35px;
    bottom: 0;
    width: 200px;
    height: 100%;
    border-radius: 0px 0px 150px 150px;
    content: "";
    z-index: -1;
    background: #FFF;
    transition: all 0.6s ease;
}

a.logo img{
    transition: all 0.6s ease;
    /* background: #fff;
    border-radius: 0px 0px 100px 100px; */
}
a.logo span {
    position: relative; display: block;
}

a.logo span.logobg::after{ 
    position: absolute;
    left: -30px;
  bottom: -30px;
  width: 260px;
    height: 100%;
    border-radius: 0px 0px 150px 150px;
    content: "";
    z-index: -1;
    background: #FFF;
    transition: all 0.6s ease;
}


.fixed-top a.logo span.logobg::after{ 
    position: absolute;
    left: -30px;
  bottom: -30px;
  width: 160px;
    height: 100%;
    border-radius: 0px 0px 150px 150px;
    content: "";
    z-index: -1;
    background: #FFF;
    transition: all 0.6s ease;
}



.fixed-top a.logo{
    left: calc(50% - 50px);
}


.fixed-top a.logo img{
    max-width: 100px;
}

.fixed-top a.logo:before{
    left: -35px;
    width: 170px;
}

nav {
    position: relative;
    margin: 0 auto;
}

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #head-mobile {
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

#cssmenu:after,
#cssmenu>ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}

#cssmenu #head-mobile {
    display: none
}

#cssmenu>ul {
    display: flex;
    overflow: hidden;
}

#cssmenu>ul:hover {
    overflow: visible;
}



#cssmenu>ul>li>a {
    padding: 30px 30px 30px 0px;
    font-size: 15px;
    text-decoration: none;
	position: relative;
    color: var(--maroon-dark);
    font-weight: 300;
    border-radius: 50px;
}


#cssmenu>ul>li.active>a:before{
	background: #194B98;
	transition: all 0.6s ease;
}


#cssmenu>ul>li:hover>a{
	color:  var(--maroon);
}

#cssmenu>ul>li.active:hover>a {
    color: var(--maroon);
}

#cssmenu>ul>li.active>a {
    color: var(--maroon);
}

#cssmenu ul ul li.active a {
    color: var(--maroon);
}

#cssmenu ul li.has-sub{
    margin-right: 10px;
}

#cssmenu>ul>li:hover,
#cssmenu ul li.active:hover,
#cssmenu ul li.active,
#cssmenu ul li.has-sub.active:hover {
    color: var(--maroon);
}


.fixed-top #cssmenu ul li.contact a {
    margin-top: 10px;
}

#cssmenu ul li.contact a:hover,
#cssmenu ul li.contact.active a {
    background:  var(--maroon);
    color: #FFF;
}

#cssmenu ul li.contact a:before {
    background:  var(--maroon);
    position: absolute;
    right: 0px;
    top: 0px;
    content: "";
    width: 0px;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    transition: all 0.6s ease;
}

#cssmenu ul li.contact a:hover:before,
#cssmenu ul li.contact.active a:before {
    width: 100%;
    right: inherit;
    left: 0px;
    opacity: 1;
    transition: all 0.6s ease;
}


#cssmenu>ul>li.has-sub>a:after {
    position: absolute;
    top: 32px;
    right: 15px;
    display: block;
    color: #a7a7a7;
	font-family: FontAwesome;
    content: '\f107';
	transition: all .3s ease;
}

.fixed-top #cssmenu>ul>li>a{
    padding: 20px 30px 20px 0px;
}
.fixed-top #cssmenu>ul>li.has-sub>a:after{
    top: 22px;
}

#cssmenu>ul>li.has-sub:hover>a:after {
    transform: rotate(180deg);
	color:  var(--maroon);
    transition: all .3s ease;
}

#cssmenu ul ul {
    position: absolute;
    left: 0px;
    top: 120px;
    z-index: 999;
    background: #FFF;
    border-radius: 5px;
    padding: 7px;
    opacity: 0;
    visibility: hidden;
    transition: all .6s ease;
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.2);
}

#cssmenu>ul>li.active>a:after,
#cssmenu>ul>li.active>a:hover:after,
#cssmenu>ul>li.active:hover>a:after{
	color: var(--maroon);
	transition: all 0.6s ease;
}


.fixed-top #cssmenu ul ul {
    top: 105px;
}


#cssmenu ul ul li {
    margin: 1px 0px;
    transition: all .6s ease
}

#cssmenu li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -50px, 0);
    transition: all .6s ease;
}

#cssmenu ul ul ul {
    margin-left: 100%;
    top:42px;
    left: 17px;
}

#cssmenu ul ul li a {
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    padding: 13px 15px;
    width: 250px;
    font-size: 13px;
    text-decoration: none;
    color: var(--maroon-dark);
    font-weight: 300;
    display: block;
    position: relative;
    border-radius: 0px;
}

#cssmenu ul ul li a:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0px;
    content: "";
    background:  var(--maroon);
    transition: all 0.6s ease;
}

#cssmenu ul ul li:last-child>a,
#cssmenu ul ul li.last-item>a {
    border-bottom: 0
}

#cssmenu ul ul li:hover>a,
#cssmenu ul ul li.active a,
#cssmenu ul ul li a:hover {
    color:  var(--maroon);
    padding: 13px 15px 13px 20px;
}

#cssmenu ul ul li.active a:before,
#cssmenu ul ul li a:hover:before {
    height: 100%;
    transition: all 0.6s ease;
}


#cssmenu ul ul li.has-sub>a:after {
    position: absolute;
    top: 20px;
    right: 12px;
    width: 5px;
    height: 1px;
    display: block;
    transform: rotate(-45deg);
    background: #747474;
    content: ''
}

#cssmenu ul ul li.has-sub>a:before {
    position: absolute;
    top: 15px;
    left: inherit;
    right: 14px;
    display: block;
    width: 1px;
    height: 5px;
    transform: rotate(-45deg);
    background: #747474;
    content: '';
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    transition: all .25s ease
}

#cssmenu ul ul>li.has-sub:hover>a:before,
#cssmenu ul ul>li.has-sub:hover>a:after {
    background: #9d9d9d;
}


#cssmenu ul ul ul li.active a {
    border-left: 0px solid #333
}




@media (max-width:1200px) {
    #cssmenu ul li.has-sub {
        margin-right: 0px;
    }


}

@media (max-width:1100px) {
    a.logo {
        left: calc(50% - 50px);
    }
    a.logo img {
        max-width: 120px;
    }
    a.logo:before {
        left: -35px;
        width: 170px;
    }


    a.logo span.logobg::after {width: 190px;
    height: 190PX;
    bottom: -20px;
}


    nav {
        width: 100%;
    }
    header .container {
        max-width: 100%;
        padding-left: 0px;
        padding-right: 20px;
    }

    #cssmenu {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    #cssmenu ul {
        width: 100%;
        display: none;
    }


    #cssmenu ul li {
        width: 100%;
        border-top: 1px solid #ebebeb;
    }

    #cssmenu ul ul li.active a {
        color: #000;
    }

    #cssmenu ul ul li,
    #cssmenu li:hover>ul>li {
        height: auto
    }

    #cssmenu ul li a,
    #cssmenu ul ul li a {
        width: 100%;
        border-bottom: 0;
        border-radius: 0px;
        padding: 15px 10px !important;
    }

    #cssmenu ul li.enquiry a{
        background: var(--maroon-dark);
        color: var(--white);
    }

    #cssmenu>ul>li {
        float: none
    }

    

    header.fixed-top #cssmenu ul ul {
        top: 0px;
    }


    #cssmenu ul ul li a {
        padding-left: 25px
    }

    #cssmenu ul ul ul li a {
        padding-left: 35px
    }
	
	#cssmenu>ul>li>a:before{
		display: none;
	}

    #cssmenu ul ul,
    #cssmenu ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        padding: 0px 10px;
		background: #f3f3f3;
        margin: 0;
        opacity: 1;
        top: 0px;
        max-height: 300px;
        overflow-y: auto;
        visibility: visible;
        text-align: left;
        transform: none !important;
        transition: all 0.2s ease;
        border-radius: 0px;
        box-shadow: none;
    }

    #cssmenu li:hover>ul {
        transition: all 0.2s ease;
    }

    #cssmenu>ul>li.has-sub>a:after,
    #cssmenu>ul>li.has-sub>a:before,
    #cssmenu ul ul>li.has-sub>a:after,
    #cssmenu ul ul>li.has-sub>a:before {
        display: none
    }

    #cssmenu #head-mobile {
        display: block;
        text-align: right;
    }
    header .button {
        position: absolute;
        left: 20px;
        top: -10px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 12399994;
    }

    body.town-bus header .button {
        top: 0px;
    }


    header .button:after {
        position: absolute;
        top: 8px;
        right: 0px;
        display: block;
        height: 10px;
        width: 30px;
        border-top: 2px solid #4c4c4c;
        border-bottom: 2px solid #4c4c4c;
        content: ''
    }

    header .button:before {
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
        position: absolute;
        top: 0px;
        right: 0px;
        display: block;
        height: 2px;
        width: 30px;
        background: #4c4c4c;
        content: ''
    }

    header .button.menu-opened:after {
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
        top: 4px;
        border: 0;
        height: 2px;
        background: var(--maroon);
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg)
    }

    header .button.menu-opened:before {
        top: 4px;
        background: var(--maroon);
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg)
    }

    header.fixed-top .button.menu-opened:after,
    header.fixed-top .button.menu-opened:before {
        top: 5px;
    }

    #cssmenu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        background: #dbdbdb;
        display: block;
        height: 46px;
        width: 46px;
        border-bottom: 1px solid #bbb;
        cursor: pointer
    }

    #cssmenu .submenu-button.submenu-opened {
        background: #cfcfcf;
    }

    #cssmenu ul ul .submenu-button {
        height: 44px;
        width: 44px
    }

    #cssmenu .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #878787;
        content: ''
    }

    #cssmenu ul ul .submenu-button:after {
        top: 20px;
        right: 17px
    }

    #cssmenu .submenu-button.submenu-opened:after {
        background: #878787
    }

    #cssmenu .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #878787;
        content: ''
    }

    #cssmenu ul ul .submenu-button:before {
        top: 17px;
        right: 20px
    }

    #cssmenu .submenu-button.submenu-opened:before {
        display: none
    }

    #cssmenu ul ul ul li.active a {
        border-left: none
    }

    #cssmenu>ul>li.has-sub>ul>li.active>a,
    #cssmenu>ul ul>li.has-sub>ul>li.active>a {
        border-top: none
    }

    #cssmenu ul {
        position: fixed;
        top: 55px;
        left: 0px;
        padding: 0px;
        z-index: 999;
        background: #FFF;
        box-shadow: 10px 10px 20px rgb(0 0 0 / 20%);
    }

    header.fixed-top #cssmenu ul {
        top: 55px;
    }

    #cssmenu .submenu-button {
        background: #efefef;
        border-bottom: 1px solid #cfcfcf;
    }
}

@media (max-width: 960px){
    header .top-phone{
        font-size: 13px;
    }
    header .button{
        top: -8px;
    }
    header .top-phone a.top-enquiry{
        padding: 10px 20px;
        font-size: 12px;
    }
    #cssmenu ul, header.fixed-top #cssmenu ul{
        top: 52px;
    }

    a.logo span.logobg::after {
        width: 160px;
        height: 190PX;
        bottom: -20px;
      }
      .fixed-top a.logo span.logobg::after {bottom: -20px;}



    a.logo img, .fixed-top a.logo img{
        max-width: 100px;
    }
    a.logo, .fixed-top a.logo {
        left: calc(46% - 35px);
        padding-bottom: 10px;
    }
    a.logo:before, .fixed-top a.logo:before {
        left: -15px;
        width: 100px;
    }
}

@media (max-width: 760px){
    header{
        height: 60px;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
        width: 100%;
        display: flex;
        align-items: center;
        opacity: 1 !important;
        animation: none !important;
    }
    header .button.menu-opened::after, header .button.menu-opened::before {
        top: 6px;
    }
    header .top-phone a.top-enquiry{
        display: none;
    }
    #cssmenu ul{
        top: 60px;
    }
}

@media (max-width: 580px){
    header .top-phone{
        display: block;
        position: absolute;
        right: 0;
        top: 10px;
        right: 20px;
        text-align: right;
    }
    header .top-phone strong{
        display: block;
    }
}