/*
** Header
*/

.page_header {
  //same as .page_header_side
  transition: $headerTransition;

  position: relative;
  top: 0;

  left: 0;
  right: 0;
  width: 100%;

  z-index: 1000;
  margin: 0;
  padding: 0;

  //display_table fix on affix
  height: auto;

  a.fab{
    color: $fontColor;
    &:hover{
      color: $darkgreyColor;
      border-color: $darkgreyColor;
    }
  }

  .boxed &,
  &.affix {
    position: fixed !important;
    z-index: 1001;
    box-shadow: 0 2px 15px 0 rgba(100, 100, 100, 0.05);
    opacity: 0.98;
    //remove bottom border for affixed header with s-borderbottom class
    &:after {
      background-color: transparent;
    }
  }
  //hidding top border on affixed header
  &.affix.s-bordertop::before {
    display: none;
  }

  @media (max-width: 991px) {
    &.mobile-active {
      z-index: 1003;
      opacity: 1;
    }
  }

  //fix bug when refresh page at the bottom and header goes down
  &.affix-bottom {
    //!important is necessary
    top: 0 !important;
    position: fixed;
  }

  //min height for mobile toggler be always on header
  //for prevent header mobile menu toggler overlap bordered header
  // 62 - broken design on 60px color toggler - back to 60
  .row {
    min-height: 80px;
  }


  //fix header buttons dropdown
  .dropdown {
    //white-space: nowrap;
  }

  a {
    display: inline-block;
  }

  .btn {
    margin-bottom: 0;

  }
}

.page_topline{
  &.church{
    color: #ababaa;
    a:not(.btn){
      color: #ababaa;
      &:hover{
        color: $lightColor;
      }
    }
  }
}

//when refreshing page - header height is smaller because it is affixed
//fixing
//absolute header when using header on slider or on title (for parallax or image background)
.header_absolute {
  position: absolute;
  left: 0;
  right: 0;

  .page_header{
    border-bottom: 1px solid rgba($lightColor, .2);
    &.church{
      border: none;
    }
  }


  .page_header,
  .page_topline,
  .page_header_wrapper {
    z-index: 1002;
    position: absolute;
    right: 0;
    left: 0;
  }


    .page_topline,
    .page_toplogo,
    .page_header_wrapper,
    .page_title {
      background-color: transparent;
    }

    .page_topline,
    .page_toplogo{
      &.ds{
        &.church{
          background-color: rgba($darkgreyColor, .6);
          border: none;
        }
      }
      &.ls{
        &.church{
          background-color: rgba($lightColor, .6);
          border: none;
        }
      }
    }

    //fix for boxed layout
    #canvas:not(.boxed) & .page_header.affix-top {
      &.ds{
        &.church{
          background-color: rgba($darkgreyColor, .4);
          border: none;
        }
      }
      &.ls{
        &.church{
          background-color: rgba($lightColor, .4);
          border: none;
        }
      }
      background-color: transparent;
    }

}

.flex-menu{
  @media (min-width: 1200px) {
    display: flex;
    align-items: center;
    .nav{
      display: flex;
      justify-content: space-evenly;
      width: 100%;
    }
  }
}

.page_header,
.page_topline{
  .header-icons{
    a{
      font-size: 14px;
      line-height: 1;
      padding: 0;
      &:not(:last-child){
        margin-right: 20px;
      }
    }
  }
  .social-icons{
    a.fab, a.fas, a.far{
      &:not(:last-child){
        margin-right: 15px;
      }
    }
  }
}

//other header sections
.page_topline {
  font-size: 12px;
  color: $lightColor;

  .fas{
    font-size: 14px;
  }

  div > span{
    display: inline-block;
  }

  &.small-text i {
    font-size: 14px;
  }

  .icon-inline {
    justify-content: center;
    & > .icon-styled:first-child{
      margin-right: 7px;
    }
    & + .icon-inline {
      margin-left: 23px;
      @media (max-width: 430px) {
        margin-left: 0;
      }
    }
  }
  .social-icons {
    display: inline-block;
    font-weight: 400;
  }
  .header_info_text{
    color: #ffffff;
    font-weight: 500;
    position: relative;
    &::after{
      content: "\f0d7";
      font-family: FontAwesome;
      position: absolute;
      bottom: -16px;
      right: 50%;
      transition: top 0.2s ease 0s;
    }
  }

  @media (max-width: 767px) {
    [class*="col-"]{
      margin: 0;
    }
  }
  //topline menu
  .widget_nav_menu {
    display: inline-block;
  }
  ul {
    margin: 0;
    padding: 0;
    li {
      display: inline-block;
    }
  }

  .dropdown-menu {
    margin: 23px 0 0 -25px;
    min-width: auto;
  }
  .dropdown-language {
    //flags
    a > img {
      max-width: 16px;
      position: relative;
      bottom: 1px;
      margin-right: 6px;
    }
  }

  //news owl-carousel
  .owl-news-slider-dates {
    font-weight: 300;
  }
  .topline-news-item {
    font-weight: 300;
    height: 2em;
    line-height: 2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0 90px;
    .cat-links {
      display: inline;
    }
  }
  .topline-news-nav-arrow {
    border: 3px solid #3b6291;
    font-size: 10px;
    position: relative;
    bottom: 20px;
    line-height: 34px;
    width: 40px;
    transition: opacity 0.2s ease-in-out;
    &:hover {
      opacity: 0.8;
    }
  }
  .owl-nav > div {
    opacity: 1;
  }

}

.page_toplogo {
  @media (min-width: 992px) {
    .media + .media {
      margin-left: 60px;
    }
  }

  .widget_search form, .widget_product_search form,
  .widget_search input, .widget_product_search input {
    max-width: none;
  }

  @media (max-width: 991px) {
    .media {
      margin: 10px;
    }
  }
}

.page_topline,
.page_toplogo,
.page_header {
  .container-fluid {
    @media(min-width: 1500px) {
      padding-left: 60px;
      padding-right: 60px;
    }
  }
}

@import 'header/header_includes';
@import 'header/logo';
@import 'header/search_modal';