
/**
 * CONTENTS
 *
 * 1. Styling Reset 
 *
 * 2. Level 1 
 *
 * 3. ...
 *
 *
 *
 *
 *
 */



 /*------------------------------------*\
    #1. Styling Reset 
\*------------------------------------*/

.nav, 
.lvl-0, 
.lvl-0-item, 
.lvl-0-link, 
.lvl-1, 
.lvl-1-item, 
.lvl-1-link,
.lvl-2, 
.lvl-2-item, 
.lvl-2-link,
.lvl-3, 
.lvl-3-item, 
.lvl-3-link { 
    display: block; 
    padding: 0; 
    margin: 0; 
    list-style: none;
    border: none;
}


.nav {  
   z-index: 200;
   /* background: #007658; */
   background: #002a5c;
   text-align: right;
   padding: 10px 10px 5px 10px;
}

.nav,
.lvl-0,
.container--nav {
    min-height: 66px;
    overflow: visible;
    position: relative;
    z-index: 9999;
}


@media screen and (max-width:540px){
    .nav,
    .container--nav {
        min-height: unset;
    }
}

@media screen and (min-width:1201px){

}





.container.container--nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0;
}

@media screen and (max-width: 540px){
    .container.container--nav {
        flex-direction: column
    }
}



/*------------------------------------*\
    #2. Level 1 
\*------------------------------------*/
.lvl-0-item:before{
    display: none;
    content:'';
}

.lvl-0{
    text-align: left;
}
    /* Styling between 300 and 720px wide */
    @media all and (max-width:1279px) { 
        .lvl-0 { 
           position: absolute; 
           display: block;
           float: left;
            background: #002a5c;
           width: 100%;
           z-index: 9999;
           top: 100%;
        } 
        
        .lvl-0-item { 
            display: inline-block;
            float: none;
            font-size: 16px;
            line-height: 20px;
            position: relative;
            width: 100%;
        }
                
        .lvl-0-link {
            margin: 0;
            padding: 15px 15px 15px 15px; 
            background: transparent; 
            color: #fff; 
            text-align: left;
            font-weight: normal; 

          }

          .lvl-0-item:last-child { margin-right: 0; }
            
                .lvl-0-link:hover,
                .lvl-0-link:active,
                .lvl-0-item.selected .lvl-0-link,
                .lvl-0-item:hover .lvl-0-link {
                    text-decoration: none;
                    color: #fff;
                    background: #32547c;
                 }  
    }
    
    /* Styling over 960 px wide */
    @media all and (min-width: 1280px) { 
        
        .lvl-0 {  
           position: relative; 
           display: block;
           width: calc(100% - 160px);
           float: left;
        }  
        
        .lvl-0-item { 
            display: inline-block;
            float: none;
            font-size: 16px;
            line-height: 20px;
            position: relative;
            margin: 14px 5px;
        }
        
            [lang=cy] .lvl-0-item { 
                margin: 14px 2px;
            }
                
        .lvl-0-link {
            margin: 0;
            padding: 8px 15px 8px 15px; 
            background: transparent; 
            color: #fff; 
            text-align: center;
            font-weight: normal; 
            border:1px solid #002a5c;
          }

          .lvl-0-item:last-child { margin-right: 0; }
            
                .lvl-0-link:hover,
                .lvl-0-link:active,
                .lvl-0-item.selected .lvl-0-link,
                .lvl-0-item:hover .lvl-0-link {
                    text-decoration: none;
                    border:1px solid #fff;
                    color: #fff;
                 }    
    
    }



/*------------------------------------*\
    #3. Level 2
\*------------------------------------*/

    @media all and (max-width: 720px) { 

    }
    
    @media all and (min-width: 721px) and (max-width:1279px){ 

    }

    @media all and (min-width: 1280px) { 

        .lvl-1 {
           display: none;
           position:absolute;
           /*overflow: auto;*/
           padding: 4px 0 0 0;
           background-color: #444;
           min-width: 100%;
           z-index: 1000;
        }
          
        .lvl-1-item { 
            width: 100%;
            position: relative;
        }

        .lvl-1-item + .lvl-1-item { 
           border-top: 1px dotted #fff;
        }

            .lvl-1-link {
                color: #fff; 
                text-align: left;
                font-weight: normal; 
                background-color: #444;
                padding: 0.5em 1em 0.5em 0.75em;
            }       
            
            .lvl-1-link:hover, 
            .lvl-1-link:active, 
            .lvl-1-item.selected .lvl-0-link,
            .lvl-1-item:hover .lvl-0-link {
               text-decoration: none;
               background-color: #000;
               color: #fff
            }  
    }


/*------------------------------------*\
    #4. Level 3 
\*------------------------------------*/

    @media all and (max-width: 720px) { 

    }
    
    @media all and (min-width: 721px) and (max-width:1279px){

    }

    @media all and (min-width: 1280px) { 

        .lvl-2 {
           display: none;
           position:absolute;
           overflow: auto;
           padding: 0;
           background-color: #444;
           min-width: 100%;
           z-index: 1000;
           left:100%;
           top:0;
        }
          
        .lvl-2-item { 
            width:100%;
        }

        .lvl-2-item + .lvl-2-item { 
           border-top: 1px dotted #fff;
        }

            .lvl-2-link {
                color: #fff; 
                text-align: left;
                font-weight: normal; 
                background-color:#444;
                padding: 0.5em 1em 0.5em 0.75em;
            }       
            
            .lvl-2-link:hover, 
            .lvl-2-link:active, 
            .lvl-2-item.selected .lvl-1-link,
            .lvl-2-item:hover .lvl-1-link {
               text-decoration: none;
               background-color: #000;
               color: #fff
            }  
    }




/*------------------------------------*\
    #5. Navigation Event Handling
\*------------------------------------*/

.nav li > .nav ul { top: auto; left: auto; z-index: 10; }

.lvl-0-item:hover .lvl-1 { display: block;  }
.lvl-1-item:hover .lvl-2 { display: block;  }


/*------------------------------------*\
    #6. Footer navigation 
\*------------------------------------*/

.footer-lvl-0,
.footer-lvl-0-item,
.footer-lvl-0-link { 
    display: block; 
    padding: 0; 
    margin: 0; 
    list-style: none; 
    border: none; 
    background: none;
}

.footer-lvl-0 { 
    overflow: hidden; 
    max-width: 100%;
    margin-bottom: 15px;
}

.footer-lvl-0-item { 
    display: inline-block; 
}

.footer-lvl-0-link { 
    display: inline-block; 
    padding: 0 10px 0 0; 
    background: none; 
    color: #444;
}
    .footer-lvl-0-link:hover,
    .footer-lvl-0-link:focus { 
        
    }

.footer-lvl-0-item:last-child .footer-lvl-0-link { padding-right: 0; }


/*------------------------------------*\
    #7. Small screen nav toggle
\*------------------------------------*/

.nav__toggle { 
    display: none;
    width: 100px;
    position: relative;
    padding: 5px 5px 5px 10px;
    margin: 12px 0 0 0;
    background: #000;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    overflow: auto;
    z-index:300;    
    float: left;
}

  .nav__toggle:hover{
      color:#fff;
      text-decoration: none;
  }

  .nav__toggle--caption {
      display:inline-block;
      vertical-align: middle;
      margin-right:5px;
  }


  .bars {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    padding: 5px 0;

    -webkit-transition: all .7s ease;
    -moz-transition: all .7s ease;
    -ms-transition: all .7s ease;
    -o-transition: all .7s ease;
    transition: all .7s ease;
  }

    .bar {
      display: block;
      width:30px;
      height: 2px;
      background: white;
      margin: 0 auto;
      padding: 0;

      -webkit-transition: all .7s ease;
      -moz-transition: all .7s ease;
      -ms-transition: all .7s ease;
      -o-transition: all .7s ease;
      transition: all .7s ease;
    }

    .bar.top {
      margin-bottom: 5px;
    }

    .bar.bottom {
      margin-top: 5px;
    }

    .bar.middle {
      margin: 0 auto;
    }

    .con {
      padding: 1px 0;
    }

  .mod--csstransforms .bars--open .middle {
   width: 0;
  }

  /* .mod--no-csstransitions .bars--open .middle {
    width:30px;
  } */

  .mod--csstransforms .bars--open .top {
    -webkit-transform: translateY(7px) rotateZ(45deg);
    -moz-transform: translateY(7px) rotateZ(45deg);
    -ms-transform: translateY(7px) rotateZ(45deg);
    -o-transform: translateY(7px) rotateZ(45deg);
    transform: translateY(7px) rotateZ(45deg);
  }

  .mod--csstransforms .bars--open .bottom {
    -webkit-transform: translateY(-7px) rotateZ(-45deg);
    -moz-transform: translateY(-7px) rotateZ(-45deg);
    -ms-transform: translateY(-7px) rotateZ(-45deg);
    -o-transform: translateY(-7px) rotateZ(-45deg);
    transform: translateY(-7px) rotateZ(-45deg);
  } 
    
    .nav__toggle__label { margin-right: 10px; }

    @media all and (max-width: 1280px){ 
        
      .nav__toggle { 
        display: block;
        margin: 0;
      }

       .lvl-0 { display:none; } 

       .menu__show .lvl-0 { display:block; }
        
        .nav__toggle { 
            position: static;
            bottom: auto;
            right: auto;
        }
        
    }



/*------------------------------------*\
    #8. Nav logo
\*------------------------------------*/


.nav--left {
    flex: 0 0 auto;

    justify-content: center;

    padding: 8px 0 0 0;
    max-height: 58px;
}

    body.en .nav--left {
        flex: 0 0 138px;
        min-width: 138px;
    }

    body.cy .nav--left {
        flex: 0 0 217px;
        min-width: 216px;
    }    


.nav--right{
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

.nav__image {
   max-height: 40px;
    width: 100%;   
}

@media screen and (max-width:540px){
    
    .nav--left{

    }
    
    .nav--right{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav__image--wrap{
        max-width:182px;
        margin:0 auto;
    }
    
    .nav__image--wrap a{
        display: block;
    }
    
     .nav__toggle { 
        flex: 0 0 115px;
    }
    
}

@media screen and (min-width:541px) and (max-width:960px){
    .nav--left{
        justify-content: flex-start;
        padding: 8px 0 0 0;
        margin-right: 2em;
        max-height: 58px;
    }

    .nav--right{
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .nav__toggle { 
        flex: 0 0 115px; 
    }
    
}

@media screen and (min-width:961px) and (max-width:1280px){
    .nav--left{
        justify-content: flex-start;
        padding: 8px 0 0 0;
        margin-right: 120px;
        max-height: 58px;
    }

    .nav--right{
        width: calc(100% - 330px);

        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    
    .nav__toggle { 
        flex: 0 0 115px; 
    }
    
}

@media screen and (min-width:1281px){

    .nav--left{
        justify-content: flex-start;
        padding: 8px 0 0 0;
        margin-right: 120px;
        max-height: 58px;
    }

}





