/* 
** Template Specific Styles
*/

#box_wrapper > section,
#box_wrapper > div > section {
  overflow: hidden;
}

#box_wrapper > section.page_topline,
#box_wrapper > section.page_toplogo,
#box_wrapper > section.overflow-visible,
#box_wrapper > div > section.overflow-visible {
  overflow: visible;
}


//featured person on three different background sections
img.absolute_image {
  position: absolute;
  z-index: 1;
  top: 50px;
}

.image-rounded-cross-borders {
  position: relative;
  margin: 50px 0 60px;
  &:before,
  &:after {
    content: '';
    position: absolute;
    width: 1px;
    height: 30px;
    background-color: $borderColor;
    top: -30px;
    left: 50%;
  }
  &:after {
    top: auto;
    bottom: -30px;
  }
  .box-shadow {
    padding: 9px;
    border-radius: 50%;
    &:before,
    &:after {
      content: '';
      position: absolute;
      height: 1px;
      width: 30px;
      background-color: $borderColor;
      top: 50%;
      left: -30px;
      @media(max-width: 1199px) {
        display: none;
      }
    }
    &:after {
      left: auto;
      right: -30px;
    }
  }
  img {
    border-radius: 50%;
  }
}

.btn-action {
  i {
    width: 1em;
    height: 1em;
    text-align: center;
    &.fa-chevron-right {
      position: relative;
      left: 2px;
    }
  }
}

.partners-carousel {
  a  {
    opacity: 0.4;
    &:hover {
      opacity: 1;
    }
  }
  .center a {
    opacity: 1;
  }
}

//topline and toplogo
.dropdown-shopping-cart {
  position: relative;
  font-weight: 700;
  &:after {
    display: none;
  }
  .page_toplogo & {
    margin-left: 24px;
  }
  i {
    font-size: 16px;
    .page_toplogo & {
      position: relative;
      top: 0.18em;
    }
  }
  .badge {
    border-radius: 50%;
    font-size: 11px;
    font-weight: 500;
    left: 5px;
    padding: 0.22em 0.47em;
    position: absolute;
    top: -2px;
    .page_toplogo & {
      top: -0.3em;
    }
  }
  &:hover {
    color: inherit;
  }

  & + .dropdown-menu {
    @media (min-width: 576px) {
      min-width: 510px;
    }
    margin-top: 4px;
    margin-left: 65px;
  }
}



.page_title,
.comingsoon {
  &.cover-background,
  &.s-parallax {
    background-image: url("../images/slide01.jpg");
  }
  h1,
  h2 {
    margin-bottom: 15px;
    line-height: 1;
    text-align: center;
    @media(min-width: 992px) {
      text-align: left;
      margin-top: 3px;
      font-size: 40px;
      margin-bottom: 35px;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  .small-title {
    margin-bottom: 0;
    & + .breadcrumb {
      font-size: 16px;
      letter-spacing: 0;
      text-transform: none;
      font-weight: 300;
    }
  }
  @media (min-width: 992px) {
    .title-inline {
      margin: 0;
      & + .breadcrumb {
        padding-left: 30px;
        margin-left: 30px;
        border-left: 1px solid $universalBorderColor;
      }
    }
  }
  .breadcrumb {
    line-height: 1.6;
    @media (max-width: 991px) {
      justify-content: center;
    }
  }
  [class*="container"] > .breadcrumb {
    position: absolute;
    right: 15px;
    bottom: 0;
    padding: 0 15px;
    background-color: $borderColorRGBA;
  }
}

//styling google info window
.gm-style .gm-style-iw {
  overflow: visible !important;
  text-align: center;
  line-height: 1.6em;

  & > *:first-child {
    position: relative;
  }

  &:before {
    content: '';
    display: block;
    position: absolute;
    border-top: 2px solid $colorMain;
    top: -25px;
    left: -16px;
    right: -16px;
    bottom: -25px;
    background: $lightColor;
    box-shadow: $boxShadow;
  }

  .icon-inline {
    display: inline-block;
    margin: 0.3em 0;
    .icon-styled {
      margin-right: 5px;

    }
  }
}

/*footer social buttons that hidden on half of their height*/
.page_footer {
  position: relative;
  a.blog-info-logo {
    margin-top: -17px;
    @media (min-width: 768px) {
      justify-content: flex-start;
    }
  }

  .widget_nav_menu {
    padding: 0;
    li a {
      color: $lightColor;
      font-weight: 300;
      padding: 8px 0;
      opacity: 1 !important;
      @media (max-width: 767px) {
        justify-content: center;
      }
      i {
        font-size: 14px;
        color: $colorMain;
      }
    }
  }

  .widget_bloginfo {
    .icon-inline {
      align-items: flex-start;
      @media (min-width: 768px) {
        justify-content: flex-start;
      }
      i {
        font-size: 14px;
      }
      p, a {
        color: $lightColor;
      }
      a:hover {
        color: $colorMain;
        opacity: 1;
      }
    }
    ul {
      margin-top: 32px;
      @media (max-width: 991px) {
        margin-top: 15px;
      }
      li {
        margin-bottom: 9px;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
  .widget_text.widget.widget_custom_html {
    li {
      @media (max-width: 767px) {
        justify-content: center;
      }
    }
    .widget-title {
      margin-bottom: 24px;
    }
  }
  ul {
    padding-left: 0;
  }
}

.page_copyright {
  position: relative;
  overflow: hidden;
  .bordered-icons {
    margin-bottom: 20px;
    a:hover {
      background-color: $colorMain;
      border-color: $colorMain;
      color: $lightColor !important;
      opacity: 1;
    }
    .social-icons span {
      position: relative;
      text-align: center;
      &:first-child:before,
      &:last-child:after {
        height: 2px;
        transform: translateY(-100%);
        width: 1250px;
        top: 50%;
        position: absolute;
        display: inline-block;
        content: "";
        background-color: rgba($lightColor, 0.2);
      }
      &:first-child:before {
        right: calc(100% + 15px);
      }
      &:last-child:after {
        left: calc(100% + 13px);
      }
    }
  }
}

//team hover info for .media-item
.item-hover-content {
  position: relative;
  overflow: hidden;
  .item-media {
    z-index: 2;
  }

  .item-content {
    position: absolute;
    right: 0;
    left: 0;
    box-shadow: $boxShadow;

    h4 {
      line-height: 1;
      letter-spacing: 0.15em;
      margin-bottom: 1.4em;
      span {
        font-weight: 900;
      }
    }
  }
  //overriding default media item content padding on big screens
  &.content-padding .item-content {
    @media (min-width: 1200px) {
      padding: 54px 40px;
    }
  }
  &:hover {
    overflow: visible;
    z-index: 3;
    box-shadow: $boxShadow;
  }
}

.content-show-hover {
  overflow: hidden;
  .item-content {
    top: 0;
    opacity: 0;
    transform: scale(1.2);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    transition: all 0.15s ease-in-out;
    h4 {
      line-height: 1;
      letter-spacing: 0.15em;
      margin-bottom: 1.4em;
      span {
        display: block;
        font-weight: 900;
      }
    }
  }
  &:hover {
    box-shadow: $boxShadow;
    .item-content {
      transform: scale(1);
      opacity: 1;
    }
  }
}

//regular gallery item with absolute content and scaling header
.gallery-item {
  overflow: hidden;
  position: relative;
  background: transparent;

  .item-content {
    h4, h6 {
      z-index: 5;
      transition: all 0.15s ease-in-out;
      opacity: 0;
      transform: scale(0);
    }
  }

  //hover styles
  &:hover {
    .item-content h4, h6 {
      transform: scale(1);
      opacity: 1;
    }
  }
  .share_buttons {
    margin-top: 35px;
    span {
      margin: 0 5px;
    }
  }
  a.fa-paper-plane:hover {
    color: $lightColor !important;
  }
}

.page_toplogo .meta-icon {
  p {
    color: $fontColor;
  }
  h6 {
    margin-bottom: 1px;
    i {
      margin-right: 5px;
    }
  }
}

.gallery-single .share_buttons span,
.with-border span {
  position: relative;
  text-align: center;
  &:first-child:before,
  &:last-child:after {
    height: 2px;
    transform: translateY(-100%);
    width: 250px;
    top: 50%;
    position: absolute;
    display: inline-block;
    content: "";
    background-color: rgba($fontColor, 0.2);
   }
  &:first-child:before {
    right: calc(100% + 15px);
  }
  &:last-child:after {
    left: calc(100% + 15px);
  }
}

.signature.with-border {
  &:before,
  &:after {
    height: 2px;
    transform: translateY(-50%);
    width: 250px;
    top: 50%;
    position: absolute;
    display: inline-block;
    content: "";
    background-color: rgba($fontColor, 0.2);
   }
  &:before {
    right:  63.8%;
  }
  &:after {
    left: 64.9%;
  }
}

.content-hover {
  position: absolute;
  bottom: 150px;
  transition: all 0.2s ease-in-out 0s;
  opacity: 0;
  transform: translateY(100px);
  width: 100%;
  &.team-btn .btn.btn-small {
    &:hover {
      background-color: $colorMain2;
      color: $darkColor
    }
  }
}

.member-additional-content {
  margin-top: 62px;
  @media (max-width: 991px) {
    margin-top: 0;
  }
}

.team-single {
  .big {
    @media (max-width: 991px) {
      margin: 0 0 20px;
    }
  }
  .team-social-icons {
    @media (max-width: 991px) {
      margin-top: 30px;
    }
  }
}

.team-name {
  margin-bottom: -2px;
}

.team-member {
  a.fa.border-icon {
    margin-left: 0;
    margin-right: 0;
  }
}

.vertical-item.content-padding:hover .content-hover {
  transform: translateY(0);
  opacity: 1;
}

.event-post + .event-post {
  margin-top: 40px;
}

.with-particles {
  .particles-js {
    position: absolute;
    width: 100%;
    overflow: hidden;
    display: block;
  }
}

.revolution-slider.with-particles {
  overflow: hidden;
  .particles-js {
    z-index: 10;
  }
}

.particles-js {
  display: none;
}

h3.item-title {
  margin-top: 61px;
  margin-bottom: 34px;
  @media(max-width: 991px) {
    margin-top: 35px;
    margin-bottom: 15px;
  }
}

.single-service {
  ul {
    margin: 31px 0;
    li {
      padding: 5px 0;
    }
  }
}

.icon-box h6.service-title {
  margin-top: 20px;
  margin-bottom: 15px;
}

.service-btn {
  font-weight: 500;
  color: $colorMain;
  &:hover {
    color: $darkColor;
  }
}

@media (max-width: 991px) {
  .service-tab { 
    .media {
      display: block;
      text-align: center;
      img {
        margin-bottom: 10px;
      }
    }
    .media-body {
      margin-left: 0;
    }
  }
}

.side-section {
  .item-content {
    p {
      margin: 18px 0 29px; 
      @media (max-width: 767px) {
        margin: 20px 0 5px; 
      }
    }
  }
  .service-content {
    .special-heading {
      margin-bottom: 18px;
    } 
    .excerpt-service {
      margin: -6px 0 10px;
    }
    h6 {
      margin-top: 38px;
      @media (max-width: 767px) {
        margin-top: 20px;
      }
    }
  }
  ul {
    @media (max-width: 767px) {
      margin-bottom: -10px;
    }
  }
  @media (min-width: 768px) and (max-width: 1199px) { 
    .special-heading {
      font-size: 30px;
    }
  }
}

.content-padding-left {
  padding-left: 35px !important;
  @media (max-width: 767px) {
    padding-left: 15px !important;;
  }
  @media (min-width: 1199px) {
    padding-left: 113px !important;
  }
  .form-wrapper {
    @media (max-width: 767px) {
      padding: 0 15px 0 0 !important;;
      .wrap-forms {
        .mt-20 {
          margin-top: 5px !important;
        }
      }
    }
    @media (max-width: 991px) {
      padding: 0 35px 0 0;
    }
  }
}

.content-padding-right {
  padding-right: 35px !important;
  @media (max-width: 767px) {
    padding-right: 15px !important;;
  }
  @media (min-width: 1199px) {
    padding-right: 75px !important;
  }
}

.content-padding-left,
.content-padding-right {
  ul.list1 {
    margin-top: -7px;
    li {
      padding: 5px 0;
      position: relative;
      &:before {
        padding-right: 14px;
      }
    }
  }
  i {
    font-size: 14px;
  }
}

.contact-section {
  .page_map {
    height: 681px;
    @media (min-width: 768px) and (max-width: 991px) {
      height: 445px;
    }
  }
  .content-left-padding.item-content {
    @media (min-width: 768px) and (max-width: 991px) { 
      padding-left: 40px;
    }
    h3.special-heading {
      margin-bottom: 15px;
      @media (min-width: 768px) and (max-width: 991px) { 
        font-size: 30px;
      }
    }
    h6 {
      margin: 38px 0 21px;
      @media (max-width: 991px) {
        margin: 18px 0 10px;
      }
    }
    a.btn {
      margin-top: 33px;
      margin-bottom: 7px;
      @media (max-width: 991px) {
        margin-bottom: 0;
        margin-top: 15px;
      }
    }
  }
  @media (max-width: 767px) {
    .row {
      justify-content: center;
    }
    .media {
      justify-content: center;
    }
    .media-body {
      flex: none;
    }
  }
}

.call-to-action.s-overlay.ds.bs {
  &:before {
    opacity: 0.7;
  }
  .big {
    line-height: initial;
  }
  .btn +.btn {
    margin-left: 6px;
  }
}

.fw-service-part {
  @media (max-width: 767px) {
    .media {
      display: block;
      text-align: center !important;
      .icon-styled {
        margin-bottom: 10px;
      }
    }
  }
  @media (max-width: 991px) {
    .btn + span {
      margin: 2px;
    }
  }
}

.service-section {
  background-repeat: no-repeat;
  background-position: center;
  @media (max-width: 991px) {
    .media {
      display: block;
      margin-bottom: 46px;
    }
    .media-body {
      margin-left: 0;   
    }
  }
  img { 
    padding: 19px 0 0 8px;
    @media (max-width: 991px) {
      padding: 7px 0 44px 8px;
    }
  }
}

.service-section.service2 {
   img { 
    padding: 0;
    margin-top: 70px;
    @media (max-width: 991px) {
      padding: 0;
      margin: 3px 0 17px;
    }
  }
}

@media (min-width: 576px) {
  .modal-dialog {
    margin-top: 100px;
    max-width: 820px;
  }
}

.modal-password-btn {
  color: $fontColor;
  border-bottom: 1px solid $fontColor;;
  &:hover {
    color: $colorMain;
  }
}

.modal-header,
.modal-footer {
  border: 0;
}

.close {
  font-size: 37px;
  position: absolute;
  right: -43px;
  top: -47px;
  font-weight: 300;
  color: $colorMain;
  opacity: 1;
  text-shadow: none;
  border: 2px solid $colorMain !important;
  width: 40px;
  height: 40px;
  line-height: 39px;
  text-align: center;
  border-radius: 50%;
  z-index: 1000;
  span {
    margin-right: -3px;
  }
}

.mt-40 {
  @media (max-width: 991px) {
    margin-top: 20px;
  }
}

.mb-40 {
  @media (max-width: 991px) {
    margin-bottom: 20px;
  }
}

.post.event-post .item-content {
  padding: 63px 40px 72px;
  @media (max-width: 991px) {
    padding: 30px 20px 28px;
    .item-meta span {
      font-size: 14px;
      padding: 0;
      + span {
        padding-left: 15px;
      }
    }
  }
}

.hover-media:hover .hover-content {
  bottom: 0;
}

.gallery-single .vertical-item.content-padding .item-content {
  padding: 53px 50px 53px;
  @media (max-width: 767px) {
    padding: 23px 20px 23px;
  }
}

.contact-info {
  h5 {
    margin-bottom: 18px;
  }
}

.hero-form {
  padding-top: 18px !important;
}

.meta-icons {
  @media (max-width: 767px) {
    h6 {
      font-size: 16px;
      margin-bottom: 0;
    }
    p {
      font-size: 12px;
    }
  }
}

.map-left { 
  .page_map {
    height: 695px;
  }
  @media (max-width: 767px) {
    .contact-item {
      padding: 55px 30px;
    }
  }
}

.ds .social-icons.with-border a.border-icon:hover {
  background-color: $lightColor;
  opacity: 1;
}

a.color-icon.fa-paper-plane, a[class*="fa-"].fa-paper-plane:hover {
  color: #0088cc;
}

.shortcode-button {
  .btn {
    margin-right: 27px;
    @media (max-width: 767px) {
      margin-right: 0;
    }
  }
}

.call-action span {
  font-size: 20px;
  font-weight: 500;
  color: $darkColor;
}

p + h6 {
  margin-top: 38px;
}

.divider-3 {
  margin-top: 3px;
}

/*
  Steps
*/
.fw-steps-wrap {
  .fw-step-content {
    .fw-step-img {
      img {
        border-radius: 50%;
        max-width: 200px;
          transition: 0.3s all ease-in-out;
          &:hover {
          transform: scaleX(-1);
        }
      }
    }
      .step-title {
        font-weight: 700;
        margin-top: 16px;
        margin-bottom: 12px;
      }
    &:after {
      content: '';
      background-image: url("../img/arrow-top.png");
      background-repeat: no-repeat;
      position: absolute;
      display: block;
      width: 185px;
      height: 50px;
      z-index: 4;
      top: 1px;
      right: -133px;
      @media (max-width:767px) {
        display: none;
      }
    }
    &.step-featured {
      margin-top: 70px;
      @media (max-width: 767px) {
        margin-top: 0;
      }
      &:after {
        display: none;
      }
      &:before {
        content: '';
        background-image: url("../img/arrow-bottom.png");
        background-repeat: no-repeat;
        position: absolute;
        display: block;
        width: 175px;
        height: 80px;
        z-index: 4;
        bottom: -33px;
        right: -131px;
        @media (max-width: 991px) {
          display: none;
        }
      }
      &.last-child:before {
        display: none;
      }
    }
    &:last-child {
      &:before,
      &:after {
        display: none;
      }
    }
  }
}
/*
  End Steps
*/

.icons-box {
  .icon-box {
    padding: 0 20px;
    .icon-styled {
      margin-bottom: 14px;
    }
  }
  @media (max-width: 767px) {
    display: block !important;
  }
}

.ds {
  &.ds2 {
    background-color: $darkColor2;
  }
}

.isotope-wrapper.masonry-layout.c-mb-5 {
  margin-bottom: 5px;
  @media (max-width: 991px) {
    margin-bottom: -5px;
  }
}

.service-icon-section {
  img {
    padding-left: 15px;
    padding-top: 12px;
    @media (max-width: 767px) {
      padding: 0;
    }
  }
}

.post.vertical-item.featured-post.content-padding {
  .item-content {
    padding: 44px 30px 41px !important;
  }
  .comments-link {
    margin-left: 21px;
  }
  .entry-title {
    margin: 0 0 10px !important;
  }
  &.post.format-aside, &.post.format-link {
    padding: 0;
  }
}

#blog-post {
  .owl-stage-outer {
    margin: 0 -13px;
    padding: 0 13px;
  }
}

h6 strong {
  font-weight: 700;
}

.choose-us-section {
  background-position: bottom;
}

.map-section {
  @media (min-width: 767px) and (max-width: 991px) {
    .fw-map-canvas {
      height: 515px !important;
    }
  }
  @media (min-width: 992px) and (max-width: 1199px) {
    .fw-map-canvas {
      height: 535px !important;
    }
  }
}

.about-section {
  @media (min-width: 767px) and (max-width: 991px) {
    .special-heading {
      text-align: center !important;
    }
  }
}

.rev-line,
.rev_slider_wrapper i.fa {
  @media (max-width: 1500px) {
    display: none !important;
  }
}

.rev_slider_wrapper i.fa {
  border-radius: 50%;
  border: 2px solid rgba($lightColor, 0.4);
  transition: all 0.2s ease-in-out 0s !important;
  &:before {
    height: 27px;
    font-size: 16px;
    line-height: 27px;
    width: 27px;
    display: inline-block;
    text-align: center;
  }
  &:hover {
    color: $lightColor;
    border-color: $colorMain;
    background-color: $colorMain;
    cursor: pointer;
  }
}

.rev_slider_wrapper ul.list1 li {
  padding: 5px 0 !important;
  &:before {
    font-weight: 900;
    padding-right: 18px;
  }
}

.theme-meta {
  @media (max-width: 767px) {
    .media-body h6 {
      margin-bottom: 0
    }
    p {
      font-size: 12px;
      a {
        color: $lightColor !important;
        &:hover {
          color: $colorMain;
        }
      }
    }
  }
}

.page_footer,
.page_copyright {
  a:hover {
    opacity: 1!important;
  }
}


.single-fw-services {
  .widget_nav_menu .menu-other-services-container {
    li {
      border: 0;
    }
  }
}

.page_copyright {
  .widget + .widget {
    margin-top: 50px;
  }
}