/* -------------------------------- 

Slider

-------------------------------- */
.cd-hero {
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cd-hero-slider {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.cd-hero-slider div.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
}
.cd-hero-slider div.slide.selected {
  /* this is the visible slide */
  position: relative;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}


.cd-hero-slider div.slide.selected {
  /* the is-moving class is assigned to the slide which is moving outside the viewport */
  -webkit-transition: -webkit-transform 0.5s;
  -moz-transition: -moz-transform 0.5s;
  transition: transform 0.5s;
}

.cd-hero-slider div.is-moving, .cd-hero-slider div.selected {
  /* the is-moving class is assigned to the slide which is moving outside the viewport */
  -webkit-transition: -webkit-transform 0.5s;
  -moz-transition: -moz-transform 0.5s;
  transition: transform 0.5s;
}


@media only screen and (min-width: 768px) {
  .cd-hero-slider {
    height: 500px;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-hero-slider {
    height: 680px;
  }
}

/* -------------------------------- 

Single slide style

-------------------------------- */
.cd-hero-slider div.slide {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cd-hero-slider div.slide:nth-of-type(1) {
  background-color: #2c343b;
  background-image: url("../_test_img/uniontax_tax_965x455.jpg");
}
.cd-hero-slider div.slide:nth-of-type(2) {
  background-color: #3d4952;
  background-image: url("../../img/uniontax_slider_work_1800x680.jpg");
}
.cd-hero-slider div.slide:nth-of-type(3) {
  background-color: #586775;
  background-image: url("../../img/uniontax_slider_work_02_1800x680.jpg");
}
.cd-hero-slider div.slide:nth-of-type(4) {
  background-color: #2c343b;
  background-image: url("../../img/uniontax_slider_tax_1800x680.jpg");
}
.cd-hero-slider div.slide:nth-of-type(5) {
  background-color: #2c343b;
  background-image: url("../../img/uniontax_slider_child-benefits_1800x680.jpg");
}
.cd-hero-slider div.slide:nth-of-type(6) {
  background-color: #2c343b;
  background-image: url("../../img/uniontax_slider_happy_family_1800x680.jpg");
}



/* -------------------------------- 

Single slide animation

-------------------------------- */



@media only screen and (min-width: 768px) {

.cd-hero-slider .cd-half-width {
    opacity: 0;
    -webkit-transform: translateX(300px);
    -moz-transform: translateX(300px);
    -ms-transform: translateX(300px);
    -o-transform: translateX(300px);
    transform: translateX(300px);
  }
  .cd-hero-slider .move-left .cd-half-width {
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  .cd-hero-slider .selected .cd-half-width {
    /* this is the visible slide */
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
  .cd-hero-slider .is-moving .cd-half-width {
    /* this is the slide moving outside the viewport 
    wait for the end of the transition on the <li> parent before set opacity to 0 and translate to 40px/-40px */
    -webkit-transition: opacity 0s 0.5s, -webkit-transform 0s 0.5s;
    -moz-transition: opacity 0s 0.5s, -moz-transform 0s 0.5s;
    transition: opacity 0s 0.5s, transform 0s 0.5s;
  }
  .cd-hero-slider div.selected.from-left .cd-half-width:nth-of-type(2),
  .cd-hero-slider div.selected.from-right .cd-half-width:first-of-type {
    /* this is the selected slide - different animation if it's entering from left or right */
    -webkit-transition: opacity 0.4s 0.2s, -webkit-transform 0.5s 0.2s;
    -moz-transition: opacity 0.4s 0.2s, -moz-transform 0.5s 0.2s;
    transition: opacity 0.4s 0.2s, transform 0.5s 0.2s;
  }
  .cd-hero-slider div.selected.from-left .cd-half-width:first-of-type,
  .cd-hero-slider div.selected.from-right .cd-half-width:nth-of-type(2) {
    /* this is the selected slide - different animation if it's entering from left or right */
    -webkit-transition: opacity 0.4s 0.4s, -webkit-transform 0.5s 0.4s;
    -moz-transition: opacity 0.4s 0.4s, -moz-transform 0.5s 0.4s;
    transition: opacity 0.4s 0.4s, transform 0.5s 0.4s;
  }


}
/* -------------------------------- 

Slider navigation

-------------------------------- */
.cd-slider-nav {
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 2;
  text-align: center;
  height: 55px;
  background-color: rgba(0, 1, 1, 0.5);
}
.cd-slider-nav nav, .cd-slider-nav ul, .cd-slider-nav li, .cd-slider-nav a {
  height: 100%;
}
.cd-slider-nav nav {
  display: inline-block;
  position: relative;
}
.cd-slider-nav .cd-marker {
  position: absolute;
  bottom: 2;
  left: 0;
  width: 60px;
  height: 100%;
  color: #3470A0;
  background-color: #ffffff;
  box-shadow: inset 0 2px 0 currentColor;
  -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
  -moz-transition: -moz-transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 5rem;
}
.cd-slider-nav .cd-marker.item-2 {
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
}
.cd-slider-nav .cd-marker.item-3 {
  -webkit-transform: translateX(200%);
  -moz-transform: translateX(200%);
  -ms-transform: translateX(200%);
  -o-transform: translateX(200%);
  transform: translateX(200%);
}
.cd-slider-nav .cd-marker.item-4 {
  -webkit-transform: translateX(300%);
  -moz-transform: translateX(300%);
  -ms-transform: translateX(300%);
  -o-transform: translateX(300%);
  transform: translateX(300%);
}
.cd-slider-nav .cd-marker.item-5 {
  -webkit-transform: translateX(400%);
  -moz-transform: translateX(400%);
  -ms-transform: translateX(400%);
  -o-transform: translateX(400%);
  transform: translateX(400%);
}
.cd-slider-nav .cd-marker.item-6 {
  -webkit-transform: translateX(500%);
  -moz-transform: translateX(500%);
  -ms-transform: translateX(500%);
  -o-transform: translateX(500%);
  transform: translateX(500%);
}
.cd-slider-nav ul::after {clear: both;content: "";display: table;}
.cd-slider-nav li {display: inline-block;width: 60px;float: left;}
.cd-slider-nav li.selected a {color: #2c343b;}
.no-touch .cd-slider-nav li.selected a:hover {background-color: transparent;}

.cd-slider-nav a {
  display: block;
  position: relative;
  padding-top: 35px;
  font-weight: 700;
  color: #a8b4be;
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.cd-slider-nav a::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 8px;
  left: 50%;
  right: auto;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
/*   background: url(../../img/cd-icon-navigation.svg) no-repeat 0 0; */
}

.no-touch .cd-slider-nav a:hover {background-color: rgba(0, 1, 1, 0.5);}
.cd-slider-nav li:first-of-type a::before {background-position: 0 0;}
.cd-slider-nav li.selected:first-of-type a::before {background-position: 0 -24px;}
.cd-slider-nav li:nth-of-type(2) a::before {background-position: -24px 0;}
.cd-slider-nav li.selected:nth-of-type(2) a::before {background-position: -24px -24px;}
.cd-slider-nav li:nth-of-type(3) a::before {background-position: -48px 0;}
.cd-slider-nav li.selected:nth-of-type(3) a::before {background-position: -48px -24px;}
.cd-slider-nav li:nth-of-type(4) a::before {background-position: -72px 0;}
.cd-slider-nav li.selected:nth-of-type(4) a::before {background-position: -72px -24px;}
.cd-slider-nav li:nth-of-type(5) a::before {background-position: -96px 0;}
.cd-slider-nav li.selected:nth-of-type(5) a::before {background-position: -96px -24px;}
.cd-slider-nav li:nth-of-type(6) a::before {background-position: -120px 0;}
.cd-slider-nav li.selected:nth-of-type(6) a::before {background-position: -120px -24px;}

@media only screen and (min-width: 768px) {
.cd-slider-nav {height: 80px;}
.cd-slider-nav a {padding-top:5rem;text-transform: uppercase;}
.cd-slider-nav a::before {top: 1.7rem;}
}
