/*------------------------------------------------------------------
[Main of contents]

1. Reset HTML/CSS, Unitest, Body
2. Page Title
3. Primary
3. Footer
-------------------------------------------------------------------*/

/* ==========================================================================
   [Start] 1. Reset HTML/CSS, Unitest, Body, @Extend
========================================================================== */
body {
  overflow-x: hidden;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
img.aligncenter {
  margin: 5px auto;
}
.alignleft {
  float: left;
}
img.alignleft {
  margin: 5px 30px 15px 0;
}
.alignright {
  float: right;
}
img.alignright {
  margin-left: 15px;
  margin-bottom: 20px;
}
.wp-caption { 
  opacity: 1;
  &.alignnone {
    width: 100% !important;
  }
}
.media-left img {
  max-width: inherit;
}
.wp-caption-text {opacity: 1;}
.gallery-caption {opacity: 1;}
.left {
  float: left;
}
.right {
  float: right;
}
.text-upper {
  text-transform: uppercase;
}
.entry-page-image {
  margin-bottom: 14px;
}
#main #page-default {
  position: relative;
  z-index: 1;
}
.block {
  display: block;
}
.b-ra img {
  @include border-radius(2px 2px 0 0);
}
.sl-italic {
  font-style: italic;
  letter-spacing: 0 !important;
}
a, a:hover, a:focus, a:before, a:after {
  outline: none;
  text-decoration: none;
  @include transition(all 300ms linear 0ms);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px;
  line-height: 1.1;
  font-weight: 700;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
p {
  margin: 0 0 15px;
}
img {
  height: auto;
  max-width: 100%;
}
.hide-image img {
  display: none;
}
.w50 {
  float: left;
  width: 50%;
}
.size_big {
  font-size: 64px;
}
.size_small {
  font-size: 26px;
}
body .wpb_content_element,
body .wpb_button {
  margin-bottom: 0
}
.entry-content > .vc_row-fluid {
  position: relative;
}
.entry-content > .wpb_row .wpb_row {
    margin-left: -15px;
    margin-right: -15px;
}
.entry-content > .wpb_row .padding-30 .wpb_row {
    margin-left: 0;
    margin-right: 0;
}
.cs-boxed .entry-content > .vc_row-fluid {
  background-color: #fff;
  position: relative;
  &.bg-primary-color {
    background-color: $primary_color;
  }
}
.bg-primary-color, .box-primary .cms-counter-inner {
  background-color: $primary_color;
}
.vc_row-fluid .container .container,
.vc_row-fluid .vc_row-fluid .container {
  width: 100%;
}
.media-body {
  width: inherit;
}
.margin-top40 {
  margin-top: 40px;
}
.thin {
  font-weight: 300;
}
.well {
  border: medium none;
  border-radius: 0;
  box-shadow: none;
}
.dark {
  color: $color_dark;
}
.dark2 {
  color: $color_dark2;
}
.color-primary {
  color: $primary_color;
}
.media .color-primary {
  color: $primary_color !important;
}
.cmsline {
  width: 19px;
  height: 3px;
  background-color: $color_dark2;
  display: block;
}
.line-gray {
  height: 1px;
  display: block;
  width: 100%;
  background-color: #353535;
}
.icon-box-style {
  display: block;
  height: 60px;
  line-height: 72px;
  text-align: center;
  width: 60px;
  @include border-radius(2px);
  background-color: $primary_color;
  position: relative;
  &:before {
    content: "";
    height: 2px;
    width: 19px;
    background-color: $primary_color;
    position: absolute;
    bottom: -10px;
    left: 0;
  }
  i {
    font-size: 28px;
    color: #fff;
  }
}
.cms-title {
  font-size: 16px;
  margin: 0 0 30px;
  position: relative;
  line-height: 30px;
  border-bottom: $border_2x;
  padding-bottom: 11px;
  &:before {
    background-color: $primary_color;
    bottom: -2px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 30px;
  }
}
.br-2px {
  @include border-radius(2px);
}
.br-3px {
  @include border-radius(3px);
}
.br-4px {
  @include border-radius(4px);
}
.br-5px {
  @include border-radius(5px);
}
.z-index-1 {
  z-index: 1;
}
/*
================> Unit Test
*/

table {
    border-bottom: 1px solid #ededed;
    border-collapse: collapse;
    border-spacing: 0;
    line-height: 2;
    margin: 0 0 20px;
    width: 100%;
    @include border-radius(0);
    th {
      color: $color_dark;
    }
}
caption, td {
    font-weight: normal;
    text-align: left;
}
.table > tbody > tr > td, 
.table > tbody > tr > th, 
.table > tfoot > tr > td, 
.table > tfoot > tr > th, 
.table > thead > tr > td, 
.table > thead > tr > th {
  padding: 13px 8px;
}
th {
  font-weight: 700;
}
td {
    border-top: 1px solid #ededed;
    padding: 6px 10px 6px 0;
}
/*--- Definition Lists ---*/
dl {
    margin: 0 0 0 25px;
}
dl dt {
    font-weight: normal;
    line-height: 26px;
    text-transform: uppercase;
    font-weight: 700;
    color: $color_dark;
}
dl dd {
    line-height: normal;
    margin-bottom: 20px;
    a {
      color: $primary_color;
      &:hover {
        color: $color_main;
      }
    }
}
code, kbd {
    background-color: transparent;
    border-radius: 4px;
    color: inherit;
    font-size: 100%;
    padding: 2px 4px;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
         -o-box-shadow: none;
            box-shadow: none;
}
ins {
    color: #fff;
    border: none;
    padding: 2px;
    text-decoration: none;
    background-color: $primary_color;
}
pre {
    background: #f5f5f5;
    color: #666;
    font-family: monospace;
    font-size: 14px;
    margin: 20px 0;
    overflow: auto;
    padding: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.woocommerce ins {
  background-color: transparent;
}
.entry-content-inner {
  ul {
    padding: 0 0 0 35px;
    list-style-type: square;
    &.list-style-check {
      list-style: none;
      padding: 0;
    }
  }
}
dl + h2 + ul {
  list-style: none;
  padding: 0 0 0 35px;
  li {
    position: relative;
    padding-left: 15px;
    &:before {
      content: "\f111";
      font-family: FontAwesome;
      font-size: 7px;
        left: 0;
        position: absolute;
        color: $primary_color;
    }
    ul {
      padding-left: 35px;
    }
  }
}
/* ==========================================================================
   [End] 1. Reset HTML/CSS, Unitest, Body
========================================================================== */

/* ==========================================================================
   [Start] 2. Page Title
========================================================================== */
#page-title {
  position: relative;
  padding-top: 267px;
  padding-bottom: 120px;
  margin-bottom: 85px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  > .container {
    position: relative;
    z-index: 1;
  }
  &:before {
    background-color: rgba(34, 34, 34, 0.5);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  &:after {
    @include background-vertical(rgba(25, 23, 23, 0.8), rgba(25, 23, 23, 0.0));
    content: "";
    height: 240px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  #page-title-text { 
    h1 {
      color: #fff;
      font-family: "ralewaybold";
      font-size: 45px;
      line-height: 50px;
      text-transform: uppercase;
      margin: 0;
      position: relative;
      &:before {
        content: "";
        position: absolute;
        width: 70px;
        height: calc(100% + 44px);
        -moz-height: calc(100% + 44px);
        -webkit-height: calc(100% + 44px);
        background-color: $primary_color;
        left: 0;
        right: 0;
        margin: auto;
        top: -24px;
        z-index: -1;
      }
    }
    .sub-title {
      color: #e5e4e4;
      font-family: Lora;
      font-size: 17px;
      font-style: italic;
      line-height: 45px;
      display: block;
      margin-bottom: 35px;
    }
  }
  #breadcrumb-text {
    &.line-white {
      position: relative;
    }
    ul.breadcrumbs {
      color: #fff;
      font-size: 12px;
      font-weight: normal;
      line-height: normal;
      list-style: outside none none;
      padding: 50px 0 0 0;
      text-transform: uppercase;
      li{
        display: inline-block;
        margin: 0;
        +li {
          &:before {
            padding: 0 10px;
            font-family: FontAwesome;
            content: '/';
          }
        }
        a {
          color: #fff;
          &:hover{
            color: $primary_color;
            text-decoration: none;
          }
        }
        &:first-child{
          a{
            &:before{
              content: "Home";
            }
          }
        }
      }
    }
  }
  &.br-style2 {
    #page-title-text {
      h1:before {
        height: 112px;
        background-color: #2f2f2f;
        top: -17px;
      }
    }
    #breadcrumb-text .breadcrumbs {
      padding-top: 7px;
    }
  }
  &.br-style3 {
    #page-title-text {
      h1:before {
        display: none;
      }
    }
    #breadcrumb-text .breadcrumbs {
      padding-top: 7px;
    }
  }
  &.br-style4 {
    padding-top: 252px;
    padding-bottom: 160px;
    #page-title-text {
      h1:before {
        display: none;
      }
    }
    #breadcrumb-text {
      text-align: right;
      .breadcrumbs {
        padding: 20px 0;
      }
    }
  }
}
.home #breadcrumb-text {
  display: none;
}
/* ==========================================================================
   [End] 2. Page Title
========================================================================== */

/* ==========================================================================
   [Start] 3. Primary
========================================================================== */
.body-border {
  position: fixed;
  background-color: #eeeeee;
  z-index: 10001;
  display: block;
  &.body-border-left {
    top: 0;
    bottom: 0;
    left: 0;
  }
  &.body-border-right {
    top: 0;
    bottom: 0;
    right: 0;
  }
}
#page-wrapper.cs-boxed {
  background-color: #fff;
  .vc_row[data-vc-full-width].column-no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
    > .vc_column_wrapper {
      margin: 0;
    }
  }
}
#main {
  .sidebar-left-active #primary.sidebar-active {
    float: right;
  }
}
.vc_row-o-full-height {
  opacity: 0;
  filter: alpha(opacity=0);
}

/* Column Overlay */
.column-bg-overlay {
  color: #fff;
  .overlay-color-column {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  .wpb_wrapper {
    position: relative;
    z-index: 1;
  }
  ul li {
    border-color: rgba(255, 255, 255, 0.2) !important; 
  }
}
/* End Column Overlay */

#content footer.entry-meta {
  padding: 0;
  text-align: center;
}
.sider-page {
  .wpb_row .container {
    padding: 0;
    width: 100%;
  }
  &.sd-left {
    #primary {
      float: right;
    }
  }
  &.sd-right {
    #primary {
      float: left;
    }
  }
}
#page-blog-standard #primary.page-full-width, .single-post-wrap #primary.full-width {
  float: none;
  margin: auto;
  max-width: 870px;
}
/* Sidebar */
#sidebar, .wpb_widgetised_column, .sg-services-sidebar, .sidebar-post-type {
  margin-bottom: 50px;
  .widget-title, .wg-title {
    @extend .cms-title;
  }
  aside, .slidingbar-widget-col {
    margin-bottom: 51px;
  }
  ul.children, ul.sub-menu {
    padding-left: 15px;
  }
}

#sidebar {
  margin-bottom: 100px;
  #secondary {
    border: 1px solid #ececec;
    padding: 50px;
    aside:last-child {
      margin-bottom: 0;
    }
  }
}
/* Background Image Fixed vs Background Overlay Color */
.row-overlay {
  position: relative;
  .row-overlay-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    background-color: inherit;
    content: "";
    z-index: 1;
  }
  > .wpb_column  {
    position: relative;
    z-index: 2;
  }
}

/* Page 404 */
.cms-error404 {
  text-align: center;
  margin-bottom: 200px;
  .entry-header {
    h1 {
      display: inline-block;
      font-size: 200px;
      line-height: 1;
      margin-bottom: 10px;
      margin-top: 80px;
      position: relative;
      span {
        color: $primary_color;
      }
      &:before {
        color: #f4f4f4;
        content: "404";
        font-size: 250px;
        left: -90px;
        position: absolute;
        top: -58px;
        z-index: -1;
      }
    }
  }
  .entry-content {
    margin: auto;
    max-width: 600px;
    p {
      font-size: 14px;
      font-style: italic;
    }
    a {
      margin-top: 30px;
    }
  }
}
/* Page Loading */
#cms-loadding {
  background: #fff;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 10000;
  top: 0;
}

/* Page Contact - Gettouch */
.page-get-contact {
  ul {
    margin-bottom: 20px;
    li {
      padding-left: 23px;
      position: relative;
      margin-bottom: 7px;
      margin-top: 4px;
      i {
        font-size: 16px;
        color: $color_dark2;
        padding-right: 14px;
        left: 0;
        position: absolute;
        top: 3px;
      }
      a {
        display: block;
      }
    }
  }
}

/* Custom - Row background image */
.custom-row-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
    width: 50%;
    &:before {
      background-color: rgba(34, 34, 34, 0.15);
      content: "";
      height: 100%;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
    }
}

.row-image-holder {
  border: 2px solid #f9f9f9;
  bottom: 90px;
  left: 15px;
  position: absolute;
  right: 165px;
  text-align: center;
  top: 90px;
  img {
    left: 50%;
    position: absolute;
    top: 50%;
    @include transform(translate(-50%, -50%));
  }
}
.custom-row-image-right {
  .custom-row-image {
    left: initial;
    right: 0;
    &:before {
      background-color: transparent;
    }
  }
}
.bg-border-custom .custom-row-image:after {
  border: 2px solid rgba(255, 255, 255, 0.5);
  bottom: 100px;
  content: "";
  left: 100px;
  position: absolute;
  right: 100px;
  top: 100px;
}
/* Custom Slider */
.rev_slider a {
  @include transition(all 300ms linear 0ms !important);
  &.btn-default-white {
    &:hover, &:focus {
      background-color: $primary_color;
      border-color: $primary_color;
    }
  }
}
.rev_slider_wrapper {
  .slide-icon {
    height: 70px;
    width: 70px;
    background-color: #211f20;
    @include border-radius(2px);
    line-height: 70px;
  }
  .tp-bullets.custom {
    .tp-bullet {
      width: 6px;
      height: 6px;
      background-color: rgba(255,255,255,0.7);
      &:before {
        border: 2px solid transparent;
        content: "";
        height: 14px;
        left: -4px;
        position: absolute;
        top: -4px;
        width: 14px;
      }
      &.selected, &:hover {
        background-color: $primary_color;
        &:before {
          border-color: $primary_color;
        }
      }
    }
  }
  .tp-leftarrow.custom, .tp-rightarrow.custom {
    height: 70px;
    width: 27px;
    background-color: #2f2f2f;
    text-align: center;
    @include transition(all 300ms linear 0ms);
    &:before {
      font-family: FontAwesome;
      font-size: 20px;
      color: #fff;
      content: "\f104";
      line-height: 70px;
      @include transition(all 300ms linear 0ms);
    }
    &:hover {
      width: 70px;
      background-color: $primary_color;
      &:before {
        color: #fff;
      }
    }
  }
  .tp-leftarrow.custom {
    z-index: 100;
  }
  .tp-rightarrow.custom {
    z-index: 99;
    &:before {
      content: "\f105";
    }
  }
}
/* End Custom Slider */
.row-vs {
  overflow: visible !important;
}

.iScrollIndicator {
  background-color: $primary_color !important;
}
.fp-tableCell {
  position: relative;
  z-index: 2;
}
#cms-theme {
  #fp-nav{
    &.right, &.left {
      background: #fff;
      border: 2px solid #eaeaea;
      @include border-radius(5px);
      right: 30px;
      z-index: 1000;  
    } 
    ul{
      margin: 10px 0;
      li{
        margin: 18px 10px;
        a{
          span{
            width: 6px;
            height: 6px;
            border: none;
            background-color: #808080;
            @include border-radius(0);
            position: relative;
            @include transition(all 300ms linear 0ms);
            &:before {
              height: 14px;
              width: 14px;
              border: 2px solid transparent;
              content: "";
              position: absolute;
              top: -4px;
              left: -4px;
              @include transition(all 300ms linear 0ms);
            }
          }
          &.active, &:hover {
            span {
              background-color: #2f2f2f;
              &:before {
                border-color: #2f2f2f;
              }
            }
          }
        }
      }
    }
  }
}
.fp-scrollable {
  .iScrollVerticalScrollbar {
    display: none !important;
  }
}
/* ==========================================================================
   [End] 3. Primary
========================================================================== */
