/* Have fun adding your style here :) - PS: At all times this file should contain a comment or a rule, otherwise opera might act buggy :( */

/* General Custom CSS */
#header_meta, #header_main, .header_color .header_bg {
  background: transparent !important;
}

#header {
  background: #161d30 url(//enfold.blackfin.biz/wp-content/uploads/2015/10/subpage_header_768-copy.jpg) center center repeat-x scroll;
  font-family: Georgia, Times,'Times New Roman',serif !important;
}

#header_main_alternate.container_wrap {
  background: #fff;
  /* border-bottom: 2px solid #161d30; */
}

.header_color .sub_menu li ul a, .header_color #payment, .header_color .sub_menu ul li, .header_color .sub_menu ul, #top .header_color .sub_menu li li a:hover {
  background-color: #161d30;
}

#top .sub_menu li ul {
  width: 135px;
  left: -3%;
}

#top .sub_menu li li a {
  border: none;
  font-size: 14px;
}
/*
ul#avia-menu.menu.av-main-nav li.menu-item-top-level-1:before {
  content: "<li class='menu-item'>News:</li> ";
}
*/

#news-precursor {
  float: left;
  color: #161d30;
  font-size: 16px;
  font-weight: bold;
  width: 53px;
  margin-top: -2px;
}

.html_header_top.html_bottom_nav_header .main_menu>div, .html_header_top.html_bottom_nav_header .main_menu ul:first-child{
  width: 90%;
}

.sub_menu>ul>li:hover>a{
text-decoration: none;
}

#header ::selection {
  text-decoration: none !important;
  background-color: transparent;
  color: #fff;
}

#top .header_color .sub_menu ul li a:hover, .header_color .sub_menu ul:first-child > li.current-menu-item > a, .header_color .sub_menu ul:first-child > li.current_page_item > a, .header_color .sub_menu ul:first-child > li.active-parent-item > a {
  color: #fff;
}
  
.header_color, .header_color div, .header_color header, .header_color main, .header_color aside, .header_color footer, .header_color article, .header_color nav, .header_color section, .header_color span, .header_color applet, .header_color object, .header_color iframe, .header_color h1, .header_color h2, .header_color h3, .header_color h4, .header_color h5, .header_color h6, .header_color p, .header_color blockquote, .header_color pre, .header_color a, .header_color abbr, .header_color acronym, .header_color address, .header_color big, .header_color cite, .header_color code, .header_color del, .header_color dfn, .header_color em, .header_color img, .header_color ins, .header_color kbd, .header_color q, .header_color s, .header_color samp, .header_color small, .header_color strike, .header_color strong, .header_color sub, .header_color sup, .header_color tt, .header_color var, .header_color b, .header_color u, .header_color i, .header_color center, .header_color dl, .header_color dt, .header_color dd, .header_color ol, .header_color ul, .header_color li, .header_color fieldset, .header_color form, .header_color label, .header_color legend, .header_color table, .header_color caption, .header_color tbody, .header_color tfoot, .header_color thead, .header_color tr, .header_color th, .header_color td, .header_color article, .header_color aside, .header_color canvas, .header_color details, .header_color embed, .header_color figure, .header_color fieldset, .header_color figcaption, .header_color footer, .header_color header, .header_color hgroup, .header_color menu, .header_color nav, .header_color output, .header_color ruby, .header_color section, .header_color summary, .header_color time, .header_color mark, .header_color audio, .header_color video, #top .header_color .pullquote_boxed, .responsive #top .header_color .avia-testimonial, .responsive #top.avia-blank #main .header_color.container_wrap:first-child, #top .header_color.fullsize .template-blog .post_delimiter, .header_color .related_posts.av-related-style-full a {
  border: none;
}

#headergraphics {
    padding: 14px 0 0 0;
    position: absolute;
    right: 20px;
    top: -16px;
    width: 540px;
    max-height: 140px;
   /* z-index: 510; */
}

#headergraphics img {
    max-height: 120px;
    float: left;
}

div.tagline {
    color: #d8d9dc;
    float: left;
    font-family: Georgia;
    font-size: 14px;
    font-style: italic;
    vertical-align: top;
    line-height: 1.7;
}


/*
.avia-menu-fx {
    display: none !important;
    opacity: 0;
}*/

/*
.header_color .av-subnav-menu a:hover, .header_color .main_menu ul:first-child > li a:hover, .header_color .main_menu ul:first-child > li.current-menu-item > a, .header_color .main_menu ul:first-child > li.current_page_item > a, .header_color .main_menu ul:first-child > li.active-parent-item > a {
  color: #fff;
}
*/

.header_color .sub_menu > ul > li > a, .header_color .sub_menu > div > ul > li > a, #top .header_color .sub_menu li ul a {
  color: #fff;
}

.header_color .main_menu ul:first-child > li > a, #top .header_color .main_menu .menu ul .current_page_item > a, #top .header_color .main_menu .menu ul .current-menu-item > a {
  color: #1f2946;
}

.header_color #header_meta .container .sub_menu ul.menu li.menu-item, .header_color .sub_menu li ul a, .header_color #payment, .header_color .sub_menu ul li, .header_color .sub_menu ul, #top .header_color .sub_menu li li a:hover {
  text-decoration: none !important;
  color: #f69655;
}

#top .header_color .sub_menu ul li a:hover, .header_color .sub_menu ul:first-child > li.current-menu-item > a, .header_color .sub_menu ul:first-child > li.current_page_item > a, .header_color .main_menu div.avia-menu ul#avia-menu:first-child > li a:hover {
  text-decoration: none;
  color: #f69655;
}

.header_color .sub_menu ul:first-child > li.current-menu-item > a, .header_color .main_menu ul:first-child > li.active-parent-item > a, .header_color .main_menu div.avia-menu ul#avia-menu:first-child > li.active-parent-item > a, .header_color .main_menu div.avia-menu ul#avia-menu:first-child > li.current-menu-item > a {
  color: #e06241 !important;
}

.image-overlay {
  visibility: hidden;
}

#top .aviaccordion-preview-title-wrap {
    background: transparent;
}

#top .aviaccordion-preview-title{
  vertical-align: bottom;
}

img.aviaccordion-image {
  width: 500px;
  height: 250px;
}

#top .aviaccordion {
  height: 250px;
}

#top h3.aviaccordion-title {
  font-size: 16px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
}

article.post-entry .entry-content .av-special-heading {
  margin-top: 0px !important;
}

.avia_desktop .av-hover-overlay-active .av-masonry-image-container {
  opacity: 1;
}

.widget {
  padding: 0 0 30px 0;
}

@media only screen and (max-width: 989px) and (min-width: 768px) {
.responsive #sab_images .av_one_half.first + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_half.first + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_half.flex_column_div {
    margin-top: 50px;
}

.responsive #sab_images .av_one_fourth.first.el_before_av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_half.first + .av_one_fourth.el_before_av_one_fourth.flex_column_div, .responsive #sab_images .av_one_half.first + .av_one_fourth.el_before_av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .avia-content-slider-inner .av_one_fourth.flex_column_div {
    margin-left: 4%;
    width: 21%;
}

.responsive #sab_images .av_one_fourth.first.el_before_av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_fourth.flex_column_div, .responsive #sab_images .av_one_half.first + .av_one_fourth.el_before_av_one_fourth.flex_column_div, .responsive #sab_images .av_one_fourth.first + .av_one_fourth + .av_one_half.flex_column_div, .responsive #sab_images .avia-content-slider-inner .av_one_fourth.first.flex_column_div {
    margin-left: 4%;
    clear: none;
}
.av-magazine-content-wrap {
  overflow: visible;
}

}

/*
Desktop Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the desktop view of your site */

@media only screen and (min-width: 960px) {
  /* Add your Desktop Styles here */

.av-main-nav > li > a {
  font-size: 16px;
}

.sub_menu .menu > li > a {
  font-size: 14px;
}

}

@media only screen and (min-width: 768px) {
  /* Add your Desktop Styles here */

  #header_main_alternate {
    border-bottom: 2px solid #161d30;
  }

}



/*
Mobile Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the Mobile and Tablet Portrait view */

@media only screen and (max-width: 800px) {

  #accordion_slider_0 {
    display: none;
  }

}

@media only screen and (max-width: 875px) {

  #headergraphics {
    right: -40px;
  }

}

@media only screen and (max-width: 767px) {
  /* Add your Mobile Styles here */

  #headergraphics div.tagline {
    display: none;
  }

    #headergraphics {
        width: 100px;
        right: 110px;
    }

  #header_main_alternate {
    display: block;
  }

  .main_menu .avia-menu, #header_main_alternate, .fallback_menu {
    display: block;
  }

  #header_meta {
    display: none;
  }

/*
.avia-content-slider, .avia-content-slider-inner, .avia-content-slider-inner .slide-entry-wrap, .avia-content-slider-inner .slide-entry-wrap .slide-entry, .avia-content-slider-inner .slide-entry-wrap .slide-entry a img {
  width: 100% !important;
  max-height: 320px !important;
}

.avia-content-slider-inner .slide-entry {
  width: 100%;
  max-height: 400px;
}
*/
.responsive #top #wrap_all .slide-entry { 
  width: 100%; 
  margin-left: 0!important;
}

#top .avia-content-slider, #top .avia-content-slider-inner, #top .avia-content-slider-inner .slide-entry-wrap { -webkit-perspective: none !important; }

h3 {
  font-weight: bold;
}

    .av-image-caption-overlay-center {
        font-size: 30px !important;
    }


}

@media only screen and (max-width: 400px) {
  /* Add your Mobile Styles here */

    #headergraphics {
        display: none;
    }

    #header_main_alternate {
        height: 110px;
    }

    .content, .sidebar {
        padding-top: 20px;
    }

    .av-image-caption-overlay-center {
        font-size: 20px !important;
    }

}
