/* CSS Document */
.toggle,
[id^=drop] {
  display: none;
}

/* Giving a background-color to the nav container. */
nav { 
  margin:0 auto;
  padding: 0;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.02), #FFFF);
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
  content:"";
  display:table;
  clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
  float: left;
  padding:0;
  margin:0;
  list-style: none;
  position: relative;
  
  }
.menu {width: var(--container);}
/* Positioning the navigation items inline */
nav ul li {
  margin: 0px;
  display:inline-block;
  float: left;
  background: none;
  /*border-right:1px solid #da3f20;
  text-transform: uppercase;*/
  }
nav ul ul li {
  border:none;
}
/* Styling the links */
nav a {
  display:block;
  padding: 15px 8px 15px 8px; 
  color:#000;
  font-size:16px;
  font-weight: 500;
  text-decoration:none;
  cursor: pointer;
}

nav ul li a img {
  padding: 0;
  margin: -15px 0 -10px 0;
  padding: 1px 0 0 1px;
  height:auto;
}
nav ul ul li { background: var(--bg-white);}
nav ul ul li a { color: var(--dark); line-height: 1.2; padding: 8px 10px; margin-top:0; }
nav ul ul li a:hover {color: var(--gray); text-decoration: underline;}

nav ul li ul li:hover { }

/* Background color change on Hover */
nav ul li a:hover { 
  color: red;
  transition: .5s;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.05), #FFF) !important;;
}
/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
  display: none;
  position: absolute; 
  /* has to be the same number as the "line-height" of "nav a" */
  top: 47px; 
  z-index: 10;
  width: auto;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
}
  
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
  display:inherit;
}
  
/* Fisrt Tier Dropdown */
nav ul ul li {
  width:170px;
  float:none;
  display:list-item;
  position: relative;
}

/* Second, Third and more Tiers 
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
  position: relative;
  top:-60px;
  /* has to be the same number as the "width" of "nav ul ul li" */ 
  left:170px; 
}

/* Change ' +' in order to change the Dropdown symbol */
nav li > a:after { content: " \f107"; font-family:FontAwesome; }
nav li > a:only-child:after { content: ''; }

nav li a.current-menu {
  background-image: linear-gradient(to top, #FFF, rgba(0, 0, 0, 0.05));
  color: var(--bg-org);
}
nav li a.current-menu:hover {
  color: var(--light);
}
.logom {
  display: none;
}

.hidemobile {margin-right: 25px;}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

  .stiky {
    position: fixed;
    z-index: 100;
    top:10px;
  }
  .hidemobile {display: none;}
  .logo {
    display: none;
  }
  .logom {
    display: block;
    margin-top: 0px;
    padding: 5px 0 0 0;
    width: 100%;
    text-align: center;
    height: 55px;
    position: fixed!important;
    z-index: 12;
    background: var(--black);
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    left: 0;
    border-top: 0px solid #FFF;
    top: 0px;
  }
  .logom img {
    margin-top: -1px;
    max-width: 70%;
    width: auto;
    height: auto;
    max-height: 47px;
  }

  nav {
    margin: 0;
  }
  nav a {
    padding: 8px 10px; 
    color: #333; 
    font-size: 20px; 
    font-weight: 400; 
    text-transform: capitalize;
  }

  /* Hide the navigation menu by default */
  /* Also hide the  */
  .toggle + a{
    display: block;/**/
  }
  .menu {
    display: none;
  }

  /* Stylinf the toggle lable */
  .toggle {
    display: block;
    /*background-color: #254441;*/
    padding:8px 20px;  
    color:#ccc;
    font-size:17px;
    text-decoration:none;
    border:none;
    float: right;
    cursor: pointer;
    position: absolute;
    right: 5px;

  }
  .toggle-menu {
    display: block;
    /*background-color: #254441;*/
    padding: 12px 20px;  
    color: var(--bg-white);
    font-size:24px;
    text-decoration:none;
    border:none;
    float: left;
    left: 0px;
    top: 0px;
    cursor: pointer;
    position: absolute;
    z-index: 1001;
    font-weight: 100;
  }

  .toggle-menu:after {
    content: " \f037";font-family:FontAwesome; 
  }

  .toggle:hover {
    /*background-color: #000000;*/
  }

  /* Display Dropdown when clicked on Parent Lable */
  [id^=drop]:checked + ul {
    display: block;
    overflow: auto;
  }

  [id^=drop]:checked + ul.menu {
    display: block;
    position: fixed;
    z-index: 11;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
    top:60px;
    background: #FFF;
    left: 0;
  }
  ul li > .toggle:after { content: " \f107";font-family:FontAwesome; }
  ul li > a:after { content: "";}

  /* Change menu item's width to 100% */
  nav ul li {
    display: block;
    width: 100%;
    background: #FFF;
    float: left;
  }

  nav ul li:hover {
    
  }

  nav ul ul .toggle,
  nav ul ul a {
    padding: 0 40px;
  }

  nav ul ul ul a {
    padding: 0 80px;
  }

  nav a:hover,
  nav ul ul ul a {
    background: #FFF;
  }
  
  nav ul li ul li .toggle,
  nav ul ul a,
  nav ul ul ul a{
    padding:5px 20px;  
    color:#FFF;
    font-size:20px; 
  }
  
  nav ul li a:hover { 
    background-color: var(--bg-primary); 
    color: var(--dark);
  }
  nav ul ul li a:hover {
    text-decoration: none;
  }
  nav ul li ul li .toggle,
  nav ul ul a {
    border-bottom: 1px dotted #efefef;
  }
  nav ul ul li a:before {
    content:'- ';
    padding-left: 10px;
  }

  /* Hide Dropdowns by Default */
  nav ul ul {
    float: none;
    position:static;
    color: #FFF;
    /* has to be the same number as the "line-height" of "nav a" */
  }
    
  /* Fisrt Tier Dropdown */
  nav ul ul li {
    display: block;
    width: 100%;
  }

  nav ul ul ul li {
    position: static;
    /* has to be the same number as the "width" of "nav ul ul li" */ 

  }
}

@media all and (max-width : 480px) {

  nav ul li {
    display:block;
    width: 100%;
  }
}

#icon-menu {
    width: var(--container);
    height: 40px;
    display: none;
    position: fixed;
    top: 45px;
    background: var(--light);
    color: var(--white);
    text-align: center;
    border-radius: 0 0 5px 5px;
    padding:2px 10px;
    z-index: 98;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

@media all and (max-width : 480px) {
  #icon-menu {
    bottom: 10px;
    top: auto;
    width: 50%;
    margin: 0 22.5%;
    float: none;
    padding: 0;
    border-radius: 30px;
  }
}