/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/*  =========================================================================
    Magnific Popup
    ========================================================================= */

    /* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  filter: alpha(opacity=80); }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none; }

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  filter: alpha(opacity=65);
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace; }
  .mfp-close:hover,
  .mfp-close:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  filter: alpha(opacity=65);
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent; }
  .mfp-arrow:active {
    margin-top: -54px; }
  .mfp-arrow:hover,
  .mfp-arrow:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-arrow:before,
  .mfp-arrow:after,
  .mfp-arrow .mfp-b,
  .mfp-arrow .mfp-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .mfp-arrow:after,
  .mfp-arrow .mfp-a {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px; }
  .mfp-arrow:before,
  .mfp-arrow .mfp-b {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 0.7; }

.mfp-arrow-left {
  left: 0; }
  .mfp-arrow-left:after,
  .mfp-arrow-left .mfp-a {
    border-right: 17px solid #FFF;
    margin-left: 31px; }
  .mfp-arrow-left:before,
  .mfp-arrow-left .mfp-b {
    margin-left: 25px;
    border-right: 27px solid #3F3F3F; }

.mfp-arrow-right {
  right: 0; }
  .mfp-arrow-right:after,
  .mfp-arrow-right .mfp-a {
    border-left: 17px solid #FFF;
    margin-left: 39px; }
  .mfp-arrow-right:before,
  .mfp-arrow-right .mfp-b {
    border-left: 27px solid #3F3F3F; }

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px; }

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; } }

.mfp-ie7 .mfp-img {
  padding: 0; }

.mfp-ie7 .mfp-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px; }

.mfp-ie7 .mfp-container {
  padding: 0; }

.mfp-ie7 .mfp-content {
  padding-top: 44px; }

.mfp-ie7 .mfp-close {
  top: 0;
  right: 0;
  padding-top: 0; }


/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Core CSS
   ========================================================================== */
    #wpadminbar {
      z-index: 9999999;
    }
    body {
        background: #fff;
        color: #3a3c3f;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 400;
        -webkit-font-smoothing: antialiased;
        /*background: url(../img/bg.jpg) repeat-x top center;*/
    }

    #site_wrap {
      overflow: hidden;
    }

    a {
        text-decoration: none !important;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    p {
        margin-bottom: 1em;
        line-height: 1.6923em; 
    }

    p:last-child {
        margin-bottom: 0;
    }

    table {
        width: 100%;
    }

    ul,ol {
      padding-left: 1em;
    }

    .clearfix {
        display: block;
        clear: both;
    }

    .clearfix:before,.clearfix:after {
        display: block;
        clear: both;
        content: '';
    }

    .row_pad {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .row_pad_md {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .row_pad_lg {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .f1 {
      font-family: 'Raleway', sans-serif;
    }

    .f2 {
      font-family: 'Raleway', sans-serif;
    }

    .c1 {
        color: #000 !important;
    }

    .c2 {
        color: #fff !important;
    }

    .c3 {
        color: #d12229 !important;
    }

    .c4 {
        color: #545962 !important;
    }


    .bg1 {
        background: #fff;
        border-color: #cfd0d0;
        color: #7d7d7d;
    }

    .bg2 {
        background: #f2f4f4;
        border-color: #dbdbdb;
        color: #3a3c3f;
    }

    .bg3 {
        background: #740307;
        border-color: #740307;
        color: #fff;
    }

    .bg4 {
        background: #49505c;
        border-color: #222;
        color: #fff;
    }

    .bg1 a {
        color: #000;
    }

    .bg2 a {
        color: #000;
    }

    .bg3 a {
        color: #fff;
    }


    .bg4 a {
        color: #fff;
    }

    .bg1 a:hover {
        color: #000;
    }
    .bg2 a:hover {
        color: #f2f4f4;
    }
    .bg3 a:hover {
        color: #000;
    }
    .bg4 a:hover {
        color: #000;
    }

    .bg1 h1, .bg1 .h1_sub,.bg1 h2, .bg1 .h2_sub,.bg1 h3, .bg3 .h3_sub,.bg1 h4, .bg1 .h4_sub,.bg1 h5, .bg1 .h5_sub,.bg1 h6, .bg1 .h6_sub {
        color: #740307;
    }

    .bg2 h1, .bg2 .h1_sub,.bg2 h2, .bg2 .h2_sub,.bg2 h3, .bg3 .h3_sub,.bg2 h4, .bg2 .h4_sub,.bg2 h5, .bg2 .h5_sub,.bg2 h6, .bg2 .h6_sub {
        color: #740307;
    }

    .bg3 h1, .bg3 .h1_sub,.bg3 h2, .bg3 .h2_sub,.bg3 h3, .bg3 .h3_sub,.bg3 h4, .bg3 .h4_sub,.bg3 h5, .bg3 .h5_sub,.bg3 h6, .bg3 .h6_sub {
        color: #fff;
    }

    .bg4 h1, .bg4 .h1_sub,.bg4 h2, .bg4 .h2_sub,.bg4 h3, .bg4 .h3_sub,.bg4 h4, .bg4 .h4_sub,.bg4 h5, .bg4 .h5_sub,.bg4 h6, .bg4 .h6_sub {
        color: #fff;
    }

    .pannel {
        border-width: 1px;
        border-style: solid;
    }

    .btn {
        -webkit-border-radius: 0;
        border-radius: 0;
        margin:  0;
        text-shadow: transparent  0 0 0 !important;
        font-weight: 700;
        text-transform: uppercase;
    }

    .btn-lg {
      font-size: 15px;
      padding: 10px 25px;
    }

    .btn i {
        opacity: 0.5;
        

    }

    .bg2 .btn {
        background: #d12229;
        border-color: #d12229;
        color: #fff;
    }

    .bg3 .btn {
        background: #ffbc00;
        border-color: #ffbc00;
        color: #fff;
    }

    .bg3 .btn:hover {
        background: #000;
        border-color: #000;
        color: #fff;
    }

    .read_more {
      display: block;
      text-align: center;
      vertical-align: middle;
      text-transform: uppercase;
      color: #fff !important;
      font-size: 14px;
      line-height:20px;
      position: relative;
    }

    .c2 .read_more {
      color: #fff !important;
    }

/*    .read_more:before,.read_more:after {
      display: inline-block;
      position: relative;
      width: 75px;
      content: '';
      border-bottom: 1px solid #e9e6e7;
      line-height: 10px;
      height: 50%;
      margin:0 5px;
      top: -5px;
    }*/
    

    .i {
        font-style: italic;
    }

    blockquote {
      color: inherit;
    }

    nav ul {
        display: block;
        padding: 0;
        margin: 0;
    }

    nav ul>li {
        display: block;
        padding: 0;
        margin: 0;
    }

    nav ul>li>a {
        display: block;
    }

    nav.inline ul>li {
        display: inline-block;
    }

    #header {
        font-size: 13px;
        line-height: 15px;
        font-family: Lato, sans-serif;
        
    }

    #branding h1 {
        margin: 0;
    }

/*    #branding img {
      margin: 15px 0;
    }*/

    #mob-nav {
        display: none;
    }

    .mobile #mob-nav {
        display: block;
    }

    .mobile #main-menu {
        display: none;
    }

    /* Heading Styles */

    h1,.h1_sub,h2,.h2_sub,h3,.h3_sub,h4,.h4_sub,h5,.h5_sub,h6,.h6_sub {
        margin: 15px 0 15px 0;
        display: block;
        padding: 0;
        font-family: 'Lato', sans-serif;
        text-transform: uppercase;
        font-weight: 700;
    }

    h1:first-child,.h1_sub:first-child,h2:first-child,.h2_sub:first-child,h3:first-child,.h3_sub:first-child,h4:first-child,.h4_sub:first-child,h5:first-child,.h5_sub:first-child,h6:first-child,.h6_sub:first-child {
        margin-top: 0;
    }

    h1,.h1_sub {
        font-size: 36px;        
        font-weight: 700;
    }

    h2, .h2_sub {
        font-size: 20px;
        font-weight: 700;
    }

    h3, .h3_sub {
        font-size: 18px;
        font-weight: 700;
    }
/* Main Nav */
    #header>#navigation #main-menu li>div>ul>li:hover>a {
        background: #222 !important;
        color: #fff !important;
    }

/* Universal mobile nav */

    #mobile_controls {
        display: none;
        width: 25px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 25px;
    }

    .mobile #mobile_controls {
        display: block;
    }

    #mob-nav>div {
        display: none;
        position: absolute;
        width:100%;
        top: 100%;
        left: 0;
        max-width: 980px;
        padding: 10px 0 10px 0;
    }

    #mob-nav>div>ul>li {
        border-bottom: 1px solid #eceff4;
    }

    #mob-nav>div>ul>li>a {
        display: block;
        padding: 10px 15px;
        line-height: 20px;
        font-size: 18px;
    }

    #mob-nav>div>ul>li.menu-item-has-children {
        position: relative;
    }

    #mob-nav>div>ul>li.menu-item-has-children>a {
        margin-right: 40px;
    }

    #mob-nav>div>ul>li.menu-item-has-children:after {
        display: block;
        background: #222;
        width: 40px;
        height: 42px;
        border: 1px solid #eceff4;
        content: '\f078';
        line-height: 40px;
        text-align: center;
        font-family: FontAwesome;
        position: absolute;
        top: -1px;
        right: -1px;
        color: #dbdbdb;
    }

    #mob-nav>div>ul>li.menu-item-has-children.open:after {
        content: '\f077';
    }

    #mob-nav>div>ul>li.menu-item-has-children.open>a {
        border-bottom: 1px solid #eceff4;
    }

    #mob-nav>div>ul li:hover>a {
        background: #dbdbdb !important;
/*        color: #fff !important;*/
    }

    #mob-nav>div>ul>li>ul {
        display: block;
        overflow: hidden;
        max-height: 0;
        -webkit-transition: max-height 0.5s ease;
        -moz-transition: max-height 0.5s ease;
        -ms-transition: max-height 0.5s ease;
        -o-transition: max-height 0.5s ease;
        transition: max-height 0.5s ease;

    }

    #mob-nav>div>ul>li>ul>li a {
        padding: 5px 20px;
        font-size: 16px;
    }

    #mob-nav>div>ul>li.open>ul {
        max-height: 1000px;
    }

    .nav-open #mob-nav>div {
        display: block;
        z-index: 9999;
    }

    #mob-nav>div>ul li>a.view_all:hover {
        color: #222 !important;
    }

/* Slider Global */

    .owl-controls {
        position: absolute;
        top: 100%;
        width: 100%;
    }

    .owl-nav {
        position: absolute;
        bottom: 0px;
        width: 100%;
    }

    .owl-nav>* {
        position: absolute;
        width: 60px;
        height: 60px;
        background: #740307;
        bottom: 0;
        text-align: center;
        line-height: 60px;
        font-size: 30px;
        color: #fff;
    }

    .owl-nav>.owl-next {
        right: 0px;
    }

    .owl-dots {
      text-align: center;
    }

    .owl-dot {
      width: 10px;
      height: 10px;
      border:2px solid #740307;
      display: inline-block;
      margin: 0 5px;
      -webkit-border-radius: 30px;
      border-radius: 30px;
    }

    .owl-dot:hover {
      background-color:#740307;

    }

    .owl-dot.active {
      background: #740307;
      border-color:#740307;
    }

    #header>#navigation #main-menu li a:hover {
      background-color:#d12229;
      color: #fff;
    }

/* ==========================================================================
   CMS Services
   ========================================================================== */

    #services_slider .service {
        display: block;
        font-size: 13px;
        padding-bottom: 15px;
    }

    #services_slider .service .text {
        padding: 15px 15px 0 15px;
    }

    #services_slider .service .roundal {
        height: 15px;
        margin-top: 15px;
    }

    #services_slider .service .roundal i.fa {
        display: inline-block;
        height: 30px;
        width: 30px;
        text-align: center;
        line-height: 30px;
        font-size: 15px;
        -webkit-border-radius: 30px;
        border-radius: 30px;
    }


    #services_slider .service .image {
        position: relative;
    }

    #services_slider .service .image:after {
        display: block;
        content: '';
        position: absolute;
        top: 10px;
        bottom: 10px;
        left:10px;
        right: 10px;
        background: rgba(59,01,5,0.3);
        border: #740307 solid 1px;
        opacity: 0;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    #services_slider .service:hover .image:after {
        opacity: 1;
    }




/* ==========================================================================
   Page
   ========================================================================== */
    .page_cta .row_pad {
        padding-bottom: 30px;
    }

    .page_cta .cta {
        display: block;
        padding: 10px;
        font-size: 34px;
        text-transform: uppercase;
        font-weight: 400;
        background-position: center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    .page_cta .cta>div {
        border: 1px solid rgba(255,255,255,0.7);
        padding: 15px;
    }

    #page_head header {
      padding: 0px 30px;
      background-position: center;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
      min-height: 195px;
    }

    #page_head h1 {
      margin: 0;
    }

    #page_head header>* {
      /*background-color: rgba(50, 81, 98, 0.75);*/
    }

    #page_head h1 span {
      font-weight: 400;
      display: block;
    }

    .extra_pad {
      padding: 30px 45px;
    }


/* ==========================================================================
   CMS Content
   ========================================================================== */    
    
    #content h2 {
        font-size: 26px;
        font-weight: 700;
    }

    #content h2 span {
        font-size: 20px;
        display: block;
        font-weight: 500;
    }

    #content h3 {
        font-size: 18px;
        font-weight: 400;
    }

    #content h4 {
      font-size: 18px;
      font-weight: 400;
    }

/*  textarea1*/
    
    .textarea1 section {
      padding: 45px 30px;
      position: relative;
      z-index: 1;
    }

    .textarea1 aside {
      margin-left: -16.66666666%;
    }
/*  textarea2*/
    
    .textarea2 article {
        padding-top: 45px;
        padding-bottom: 45px;
        line-height: 30px;

    }

/*  textarea3 with Gallery */

    #gallery_slider {
        margin-bottom: 15px;
    }

/*  textarea4 with Background Image */

    .textarea4>div>div.pannel {
        display:block;
        padding: 30px;
    }

    .textarea4>div>div.pannel {
        background: url(images/bg.jpg) no-repeat center center; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        /*max-height: 315px;*/
        max-height: 387px;
    }

    .textarea4>div>div.pannel section {
        padding: 30px;
        min-height: 255px;
    }

    .js_hidden {
        padding-bottom: 15px;
    }

    .tables .description {
      margin-bottom: 30px;
    }

    .nb_table {
      font-size: 17px;
      padding-bottom: 30px;
    }

    .nb_table .th {
        border-bottom: inherit;
        margin-bottom: 30px;
    }

    .nb_table .info {
      font-size: 15px;
    }

    .home_content>div>div {
      padding: 30px;
    }

    .home_content>div>div>div>div {
      background: rgba(73,80,92,0.8) !important;
    }
    .home_content section {
      padding-top: 30px;
      padding-bottom: 30px;
    }

    .home_content .read_more {
      display: inline-block;
      line-height: 15px;
      padding: 15px 45px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .aj_pagination {
      padding-top: 15px;
    }

    .aj_pagination>div {
      display: inline-block;
    }

    .aj_pagination>div>* {
      display: block;
      float: left;
      padding: 10px 0px;
      width: 45px;
      height: 45px;
      line-height: 25px;
      font-size: 18px;
      text-align: center;
      border-width: 1px;
      border-color: inherit;
      border-style: solid;
      vertical-align: middle;
      margin: -1px 0px -1px -1px;
    }

    .aj_pagination>* i {
      vertical-align: middle;
    }

    .aj_pagination a.page-numbers.next,.aj_pagination a.page-numbers.prev {
      background: #f2f4f4;
    }

    .aj_pagination *.page-numbers.current {
      background: #f2f4f4;
    }

    .aj_pagination a:hover {
      background: #222 !important;
      color: #fff !important;
    }


/* ==========================================================================
   CMS Contact Page
   ========================================================================== */
  .contact-details>* {
    display: block;
    padding-left: 30px;
    position: relative;
  }

  .contact-details>*>i.fa {
    display: block;
    position: absolute;
    left: 0;
    width: 15px;
    text-align: center;
  }

  .textarea_contact>div>div.pannel {
    display: block;
    padding: 30px;
  }

  .textarea_contact>div>div.pannel section {
    padding: 30px;
    min-height: 255px;
  }

  #map {
    position: relative;

  }

  #map-canvas {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
  }

  form .btn {
    line-height: 35px;
    padding: 5px 45px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
  }

  form .btn:hover {
    background: #000;
  }
    
  .wpcf7-not-valid.form-control {
    border:3px solid #d66d6d;
  }

  span.wpcf7-not-valid-tip {
    background: #d66d6d;
    color: #fff;
    padding: 0 15px;
    line-height: 30px;
  }

  div.wpcf7-validation-errors {
    background: #ffc425;
    border-color: #ffc425;
    line-height: 30px;
    text-align: center;
    margin: 0 0 15px 0;
  }
/* ==========================================================================
   Pre-Footer
   ========================================================================== */

/* Pre Footer CTA Banner 1 */

    #pre-footer .cta {
        display: block;
        padding: 10px;
        font-size: 32px;
        text-transform: uppercase;
        font-weight: 400;
        background-position: center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    #pre-footer .cta img {
      margin: 0 auto;
    }

    #pre-footer .cta span {
      text-decoration: underline;
      font-weight: 700;
    }

    #pre-footer .cta i {
      display: inline-block;
      width: 40px;
      height: 40px;
      line-height: 40px;
      -webkit-border-radius: 40px;
border-radius: 40px;
font-size: 20px;

    }

    #pre-footer .cta>div {
        /*border: 1px solid rgba(255,255,255,0.7);*/
        background:rgba(116,3,7,0.9);
        padding: 45px 15px;
    }

    #twitter {
        padding:15px 15px 15px 85px;
        min-height: 60px;
        position: relative;
    }

    #twitter:after {
        position: absolute;
        display: block;
        left: 25px;
        font-size: 45px;
        line-height: 45px;
        height: 45px;
        content: '\f099';
        top: 50%;
        margin-top: -23px;
        font-family: FontAwesome;
        opacity: 0.3;
    }

    #twitter p {
        margin: 0;
    }

    #mailchimp {
      border-left: 0;
      border-right: 0;
      line-height: 15px;
    }

    #mailchimp .title {
      padding:0;
      line-height: 15px;
      margin: 0;
      font-size: 14px;
      text-transform: uppercase;
      font-weight: 700;
    }

    #mailchimp .sign_up {
      position: relative;
    }

    #mailchimp .sign_up input[type=email] {
      display: block;
      width: 100%;
      border: 0;
      margin: 0;
      padding: 15px 215px 15px 15px;
      font-style: italic;
      line-height: 15px;
      height: 45px;
    }

    #mailchimp .sign_up input[type=submit] {
      display: block;
      position: absolute;
      top: 0;
      width: 200px;
      right: 0;
      border: 0;
      padding: 15px 0;
      line-height: 15px;
      font-size: 16px;
      font-weight: 600;
      margin: 0;
      height: 45px;
    }

/* ==========================================================================
   Contact Form
   ========================================================================== */
   .form-group {
    margin-bottom: 30px;
   }
   .form-control {
        height: 45px;
        line-height: 25px;
        padding: 10px;
        -webkit-border-radius: 0;
        border-radius: 0;
   }

   .bg3 .form-control {
        background: #fff;
   }
#map {
  overflow: hidden;
}

#map.click .row {
  pointer-events:none;
}

#map .row section {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}

#map.click .row section {
    margin-left: 110%;
    margin-right: -110%;
    opacity: 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */
     
    #accred_slider img {
      max-height: 100px !important;
      width: auto !important;
      margin: 0 auto;
    }

    #accred_slider a {
      display: block;
    }

    #footer {
      font-weight: 500;
    }

    #footer #footer-menu a, #footer #copyright a{
        color:#fff;
/*        border-color: #cdc8bf;*/
    }



    #footer #footer-menu a:hover,#footer #copyright a:hover {
        color: #000;
    }

    #footer .social a:hover {
        background: #000;
    }


    #footer input[type="submit"] {
      background: #d12229;
    }


/* ==========================================================================
   Slider 2 Overwrite
   ========================================================================== */
  

    #slider_2 .slide h2 {
      background:rgba(0,42,137,0.8);
      max-width: 550px;
      padding: 30px;
      margin: 0 auto 30px auto;
    }

    #slider_2 .slide .find_out_more {
      background: #222 !important;
      border-color: #222 !important;
    }


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 1200px) {
    /* Style adjustments for viewports that meet the condition */
}

@media screen and (max-width:986px) {
    #menu-footer {
      margin-bottom: 15px;
    }

    #menu-footer li {
      margin-bottom: 5px;
    }

    #mailchimp .title {
      text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .textarea1 .outer {
        border-width: 1px !important;
        margin-left: 15px;
        margin-right: 15px;
    }

    .textarea1 .outer .inner {
        margin-top: -30px;
        margin-bottom: 15px;
        margin-left: -30px;
        margin-right: -30px;
        padding: 30px;
    }

    .extra_pad {
      padding: 15px 15px;
    }


    .textarea1 .js_padmiddle, .textarea1 .js_sync_heights  {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    .textarea1 aside {
      margin-left: 0 !important;
      text-align: center;
    }

    .textarea1 img {
        max-width: 300px;
        width: 100%;
    }

    #footer input[type=submit] {
        width: 100%;
        text-align: center;
    }

    .page_cta .cta, #pre-footer .cta {
        font-size: 24px;
    }

    .mob_nopad {
        margin:0 -15px;
    }

    .archive-post .image {
      margin-bottom: 30px;
    }

}

@media only screen and (max-width: 480px) {
    .phone a span {
        display: none;
    }

    .phone a:after {
      content: 'Contact Us';
      display: inline-block;
    }

    #header .social li:not(.phone) {
      display: none;
    }

    .col-xxs-12 {
        width: 100%;
        margin-left: 0;
    }

    .hidden-xxs {
        display: none;
    }

    table td, table tr {
        display: block;
        padding-bottom: 5px;
    }

    .textarea_contact>div>div.pannel section {
      margin-top: 400px;
    }

    .textarea4>div>div.pannel {
      padding: 150px 15px 15px 15px;
    }

    #mailchimp .sign_up input[type=text] {
      padding: 15px;
    }

    #mailchimp .sign_up input[type=submit] {
      width: 100%;
      position: relative;
      top: auto;
      left: auto;
      right: auto;
    }

    #mailchimp .sign_up input[type=email] {
      padding-right: 15px;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* Custom CSS */

.textarea_paralax {
  padding: 90px;
  background-position: center;
  background-attachment: fixed;
    -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#header .phone {
}

@media screen and (max-width: 993px) {
  #slider_2 .slide a {
    min-height: 400px;
  }
}

#testimonials>div>div {
  background: url(../img/bg2.jpg) no-repeat center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

    #mailchimp .sign_up input[type=submit] {
      background-color: #d12229 !important;
    }