/*
    Template Author : infoways.net
    Author Email    : info@infoways.net
    Template Name   : PageHeader
*****************************************/

/*  General CSS  */

.TopBG{
    width: 100%;
    height: 120px;
    background: rgba(40, 40, 40, .7);
    background: #003300;
    background: -moz-linear-gradient(top, #003300 0%, #336600 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003300), color-stop(100%, #336600));
    background: -webkit-linear-gradient(top, #003300 0%, #336600 100%);
    background: -o-linear-gradient(top, #003300 0%, #336600 100%);
    background: -ms-linear-gradient(top, #003300 0%, #336600 100%);
    background: linear-gradient(to bottom, #003300 0%, #336600 100%);
    box-shadow: 0px 10px 25px #000;
}

header{
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.topwrapper{
    max-width: 1250;
    margin: 0 auto;
    position: relative;

}

header .logo{
    width: Auto;
    margin-top: 20px;
    margin-left: 10px;
    float: right;
}


/*  desktop menu -------------------------------------------*/
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
  padding: 0;
  border: 0;
  list-style: none;
  float: left;
  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 #menu-button {
  display: none;
}

#cssmenu {
  z-index: 100;
  margin-right: 1%;
  font-family: 'Open Sans', Helvetica, sans-serif;
}

#cssmenu > ul {
  top: 25px;
  background: url('../images/bgxx.jpg');
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.05);
}

#cssmenu.align-right > ul > li {
  float: right;
}

/*  menu button dirction ar/en------------*/
#cssmenu > ul > li {
  float: right;
  display: inline-block;
}

#cssmenu.align-center > ul {
  float: none;
  text-align: center;
  font-size: 0;
}

#cssmenu.align-center > ul > li {
  float: none;
}

#cssmenu.align-center ul ul {
  text-align: left;
}

/*  main menu vars------------*/
#cssmenu > ul > li > a {
  padding: 18px 25px 21px 25px;
  border-right: 1px solid rgba(80, 80, 80, 0.12);
  text-decoration: none;
  font-size: 120%;
  font-weight: bold;
  color: #d3eced;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cssmenu > ul > li:hover > a,
#cssmenu > ul > li > a:hover,
#cssmenu > ul > li.active > a {
  color: #fff;
  background: #32a9c3;
  background: rgba(0, 0, 0, 0.1);
}
#cssmenu > ul > li.has-sub > a {
  padding-right: 45px;
}

#cssmenu > ul > li.has-sub > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #d3eced;
  right: 17px;
  top: 22px;
}
#cssmenu > ul > li.has-sub.active > a::after,
#cssmenu > ul > li.has-sub:hover > a {
  border-top-color: #fff;
}

#cssmenu ul ul {
  position: absolute;
  left: -9999px;
  top: 20px;
  z-index: 9999;
  padding-top: 6px;
  font-size: 13px;
  opacity: 0;
  -webkit-transition: top 0.2s ease, opacity 0.2s ease-in;
  -moz-transition: top 0.2s ease, opacity 0.2s ease-in;
  -ms-transition: top 0.2s ease, opacity 0.2s ease-in;
  -o-transition: top 0.2s ease, opacity 0.2s ease-in;
  transition: top 0.2s ease, opacity 0.2s ease-in;
}
#cssmenu.align-right ul ul {
  text-align: right;
}
#cssmenu > ul > li > ul::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-bottom-color: #fff;
  top: -4px;
  left: 20px;
}
#cssmenu.align-right > ul > li > ul::after {
  left: auto;
  right: 20px;
}
#cssmenu ul ul ul::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right-color: #fff;
  top: -20px;
  left: -4px;
}
#cssmenu.align-right ul ul ul::after {
  border-right-color: transparent;
  border-left-color: #fff;
  left: auto;
  right: -4px;
}
#cssmenu > ul > li > ul {
  top: 10px;
}
#cssmenu > ul > li:hover > ul {
  top: 52px;
  left: 0;
  opacity: 1;
}
#cssmenu.align-right > ul > li:hover > ul {
  left: auto;
  right: 0;
}
#cssmenu ul ul ul {
  padding-top: 0;
  padding-left: 6px;
}
#cssmenu.align-right ul ul ul {
  padding-right: 6px;
}
#cssmenu ul ul > li:hover > ul {
  left: 180px;
  top: 0;
  opacity: 1;
}
#cssmenu.align-right ul ul > li:hover > ul {
  left: auto;
  right: 100%;
  opacity: 1;
}
/*  sub menu view desktop-------*/
#cssmenu ul ul li a {
  text-decoration: none;
  font-size: 120%;
  font-weight: bold;
  padding: 11px 25px;
  width: 180px;
  background: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.1), -1px 1px 1px rgba(0, 0, 0, 0.1);
  text-align: right;
  color: #000;
}
#cssmenu ul ul li:hover > a,
#cssmenu ul ul li.active > a {
  color: #333333;
}
#cssmenu ul ul li:first-child > a {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
#cssmenu ul ul li:last-child > a {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
#cssmenu > ul > li > ul::after {
  position: absolute;
  display: block;
}
#cssmenu ul ul li.has-sub > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-left-color: #fff;
  right: 17px;
  top: 14px;
}
#cssmenu.align-right ul ul li.has-sub > a::after {
  border-left-color: transparent;
  border-right-color: #fff;
  right: auto;
  left: 17px;
}
#cssmenu ul ul li.has-sub.active > a::after,
#cssmenu ul ul li.has-sub:hover > a::after {
  border-left-color: #333333;
}
#cssmenu.align-right ul ul li.has-sub.active > a::after,
#cssmenu.align-right ul ul li.has-sub:hover > a::after {
  border-right-color: #333333;
  border-left-color: transparent;
}


/*  Mobile Media - Style and Menu -------------------------------------------*/

@media (max-width: 1300px) {

.TopBG{
    width: 100%;
    height: 75px;
    background: 75px;
    background: rgba(40, 40, 40, .7);
    background: #003300;
    background: -moz-linear-gradient(top, #003300 0%, #336600 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003300), color-stop(100%, #336600));
    background: -webkit-linear-gradient(top, #003300 0%, #336600 100%);
    background: -o-linear-gradient(top, #003300 0%, #336600 100%);
    background: -ms-linear-gradient(top, #003300 0%, #336600 100%);
    background: linear-gradient(to bottom, #003300 0%, #336600 100%);
    box-shadow: 0px 10px 25px #000;
}

header .logo{
    height: 30px;
    margin-top: 10px;
    margin-right: 10px;
    height: 60px;
    width: auto;
    float: right;
}

/*  Mobile Media - Menu --------------------------*/
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
    float: none;
    color: #fff;
}

  #cssmenu {
    width : 100%;
    float: right;
  }

  #cssmenu > ul {
    display: none;
  }

  #cssmenu > ul.open {
    display: block;
    top: 10px;
    width : 100%;
    background: #333;
    border-top: 1px solid black;
    text-align: right;
  }

  #cssmenu.align-right > ul {
    float: none;
  }

  #cssmenu.align-center > ul {
    text-align: right;
  }

  #cssmenu > ul > li,
  #cssmenu.align-right > ul > li {
    float: none;
    display: block;
    border-top: 1px solid #666
  }

#cssmenu > ul > li > ul::after {
    left: 200px;
}

  #cssmenu > ul > li > a {
    padding: 14px 25px 18px 25px;
    border-right: 0;
  }

  #cssmenu > ul > li:hover > a,
  #cssmenu > ul > li.active > a {
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
  }

/* Mobile Menu bar ******/
  #cssmenu #menu-button {
    display: block;
    top: -60px;
    color: #000;
    padding: 20px 25px 18px 25px;
    padding: 0px 0px 0px 0px;
    cursor: pointer;
    float: left;
    margin-left: 80px;

  }

  #cssmenu ul ul,
  #cssmenu ul li:hover > ul,
  #cssmenu > ul > li > ul,
  #cssmenu ul ul ul,
  #cssmenu ul ul li:hover > ul,
  #cssmenu.align-right ul ul,
  #cssmenu.align-right ul li:hover > ul,
  #cssmenu.align-right > ul > li > ul,
  #cssmenu.align-right ul ul ul,
  #cssmenu.align-right ul ul li:hover > ul {
    left: 0;
    right: auto;
    top: auto;
    opacity: 1;
    width: 100%;
    padding: 0;
    position: relative;
    text-align: right;
  }

  #cssmenu ul ul li {
    width: 100%;
  }

/* Mobile Sub Menu bar ******/
  #cssmenu ul ul li a {
    width: 100%;
    box-shadow: none;
    padding-left: 40px;
    background: #444;
    color: #fff;
  }

  #cssmenu ul ul li a:hover {
    background: #333;
    color: White;
  }

  #cssmenu ul ul ul li a {
    padding-left: 45px;
  }

  #cssmenu ul ul li:first-child > a,
  #cssmenu ul ul li:last-child > a {
    border-radius: 0;
  }

  #cssmenu #menu-button::after {
    display: block;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    content: '';
    position: absolute;
    height: 3px;
    width: 25px;
    border-top: 3px solid #d3eced;
    border-bottom: 3px solid #d3eced;
    right: 25px;
    top: 18px;
  }

  #cssmenu #menu-button::before {
    display: block;
    content: '';
    position: absolute;
    height: 3px;
    width: 25px;
    border-top: 3px solid #d3eced;
    right: 25px;
    top: 30px;
  }

  #cssmenu > ul > li.has-sub > a::after,
  #cssmenu ul ul li.has-sub > a::after {
    display: none;
  }

}
