body.navbar-is-fixed-top.navbar-administration.navbar-horizontal.navbar-tray-open {
  padding-top: 79px !important;
}

body.navbar-is-fixed-top {
  padding-top: 0;
}

body.navbar-is-fixed-top.navbar-administration {
  padding-top: 39px !important;
}

body.navbar-is-fixed-top.navbar-administration.navbar-horizontal.navbar-tray-open .navigation_col .action-menu {
  margin-top: 4.3em;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/*Added so the logo doesn't slide in front of adminimal menu*/
#navbar-administration, #navbar-administration *:not(select) {
  z-index: 1040;
}

.navbar {
  margin-bottom: 0;
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
  background-color: #e5e5e7;
}

#autocollapse.collapsed .navbar-header {
  float: none;
}

#autocollapse.collapsed .navbar-toggle {
  display: block;
  margin-top: 0.65em;
  margin-bottom: 0.65em;
}

#autocollapse.collapsed .navbar-collapse {
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#autocollapse.collapsed .navbar-collapse.collapse {
  display: none !important;
}

#autocollapse.collapsed .navbar-collapse.collapse.in {
  display: block !important;
}

#autocollapse.collapsed .navbar-nav {
  float: none !important;
}

#autocollapse.collapsed .navbar-nav>li {
  float: none;
  text-align: center;
}

.half-col-padding {
  padding: 0 7.5px;
}

#autocollapse.collapsed .navbar-nav>li>a {
  padding-top: 10px;
  padding-bottom: 10px;
}

#autocollapse.collapsed .overlay-btn {
  display: none;
}

.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

/*base padding for container fluid calss*/
.row {
  margin: 0 auto;
}

.fullscreen {
  padding: 0 !important;
  margin: 0 !important;
}

.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.row-flex-col {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
}

.row-flex-center, .row-eq-center .region{
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.row-flex-col>[class*='col-'] {
  display: flex;
  flex-direction: column;
}

.row-flex-col-align-bottom {
  align-items: flex-end;
}

.row-flex-col::before {
  display: none;
}

.row-deep {
  padding-bottom: 3em;
  padding-top: 2.5em;
}

.row-deeper {
  padding-bottom: 6em;
  padding-top: 5em;
}

.flexslider {
  margin: -4.5em 0 0 0;
  border: none;
  z-index: 0;
}

.slides {
  overflow: hidden;
}

.flex-header {
  padding-left: 1em;
  color: #dd1e25;
}

.flex-caption {
  padding-left: 1em;
  color: #ffffff;
}

.flex_gradient {
  overflow: hidden;
  height: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background: #004a8c;
  background-image: -moz-linear-gradient(-45deg, #002a5b 0%, #004a8c 41%, #002a5b 100%);
  background-image: -webkit-linear-gradient(-45deg, #002a5b 0%, #004a8c 41%, #002a5b 100%);
  background-image: linear-gradient(135deg, #002a5b 0%, #004a8c 41%, #002a5b 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#002a5b', endColorstr='#004a8c', GradientType=1);
  background-attachment: fixed;
}

.wavelogo {
  height: 10em;
  background: #ffffff;
  position: absolute;
  border-bottom-right-radius: 4%;
  z-index: 1032;
  width: 11.7em;
  opacity: 1;
}

.textlogo {
  background: #ffffff;
  position: fixed;
  width: 9.75em !important;
  height: auto;
  border-bottom: none;
  z-index: 1031;
}

.uppercurve {
  height: 7.35em;
  left: 11em;
  z-index: 1032;
  position: relative;
  top: 2.95em;
}

.curve-down {
  width: 8em;
  height: 6.185em;
  right: 6.5em;
  position: relative;
  bottom: -0.18em;
  margin-top: -6.2em;
  z-index: 10;
  pointer-events: none;
}

.footer-curve {
  width: 100%;
  right: -1.6em;
  position: relative;
  bottom: 0;
  margin-top: -7.2em;
}

.footer-curve-block {
  width: 100%;
  height: 6.185em;
  background: #B5B6B9;
  position: absolute;
  bottom: 0.55em;
  background-attachment: fixed;
}

.navbar-nav {
  float: none;
  margin-bottom: 0;
  margin-top: 0;
  background: #ffffff;
  border-bottom: none;
  position: relative;
  z-index: 1036;
}

.navbar-header {
  background-color: #ffffff;
  z-index: 1030;
  position: relative;
}

/*alters the background for the navbar*/
.fit-menu {
  float: right;
  display: block;
  height: inherit;
}

.action-menu {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  height: 3em;
  width: 100%;
}

.section-shadow-menu {
  background-image: url(images/section-shadow.png);
  height: 1em;
  list-style-type: none;
  background-repeat: no-repeat;
  background-position: top center;
  position: absolute;
  width: 100%;
  pointer-events: none;
}

.nav li a {
  display: block;
  color: #535454;
  padding: 0.95em 1.1em;
  text-decoration: none;
}

.nav li a:hover {
  color: #dd1e25;
  margin-bottom: 0;
  border-bottom: 1px dashed #dd1e25;
  text-decoration: none;
  background-color: #e5e5e7;
}

.nav li a.active {
  color: #1c2f55;
  background-color: #e5e5e7;
}

.side-menu .nav li a.active {
  color: #1c2f55;
  background-color: #e5e5e7;
}

.navbar-nav>li>a {
  border-top: 4px solid transparent;
  border-bottom: none;
}

.navbar-nav>li>a:hover {
  border-top: 4px solid #dd1e25;
  border-bottom: none;
}

.region-sidebar-first .block {
  margin-bottom: 1em;
}

.region-sidebar-second .block {
  margin-bottom: 1em;
}

/*social icons section lower wave*/
.socialmedia {
  width: 100%;
  height: 6.1em;
  background: #ffffff;
  position: absolute;
  bottom: 0;
  z-index: 10;
}

.socialmedia ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  flex-wrap: wrap;
  position: absolute;
  width: 100%;
  right: 1em;
}

.socialmedia li a {
  border-bottom: none;
}

.footer-social-icons {
  font-size: 2.5em;
  position: relative;
  z-index: 10;
  align-items: center;
  margin-bottom: 1.5em;
}

.remove-padding {
  padding: 0 !important;
}

.block-pading {
  margin: 0 5em 0 5em;
}

.breadcrumb-wrap {
  margin-bottom: 1em;
  background: #e5e5e7;
  padding: 0.3em;
  padding-left: 1.5em;
}

.breadcrumb {
  display: inline;
  background: transparent
}

.flexbox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flexbox .col {
  flex: 1;
}

.flex-grow-auto {
  flex: 1 0 auto
}

.align-self-center {
  align-self: center;
}

.footer {
  padding-top: 0px;
  padding-bottom: 0px;
  width: 100%;
  border-top: none;
}

.footer-background {
  background: #cbd1d5;
  background: -moz-linear-gradient(-45deg, #cbd1d5 0%, #abb2b6 42%, #f5fbfe 100%);
  background: -webkit-linear-gradient(-45deg, #cbd1d5 0%, #abb2b6 42%, #f5fbfe 100%);
  background: linear-gradient(135deg, #cbd1d5 0%, #abb2b6 42%, #f5fbfe 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cbd1d5', endColorstr='#f5fbfe', GradientType=1);
}

.footer_lower {
  padding-top: 0px;
  padding-bottom: 0px;
  width: 100%
}

/* lower section of the footer code for its sizing*/
.footer-lower {
  padding: 10px 15px;
}

.footer-lower a {
  border-bottom: none;
  color: #ffffff;
}

.footer-lower a:hover {
  border-bottom: 1px dashed #ffffff;
}

.footer-logos a:hover {
  border-bottom: none;
}

.footer-logos{
  position: relative;
  z-index: 10;
}

@media screen and (max-width: 767px) {
  .row-eq-height {
    display: block;
  }

  .curve-down {
    display: none;
  }

  .socialmedia {
    background-color: transparent;
    position: initial;
    right: 0;
    width: 100%;
    bottom: inherit;
  }

  .socialmedia ul li {
    width: 18%;
    text-align: center;
    transform: translate(25%);
  }

  .socialmedia ul {
    margin-top: 0.5em
  }

  .bottom-gap {
    height: 1em;
  }

  .textlogo {
    top: 0.3em;
    width: 9.75em !important;
  }

  .fit-menu {
    width: 100%;
  }

  .front__flex-margin {
    margin: 2em 0 0 0;
  }

  .row.bannerimage {
    overflow: hidden;
  }

  .mobile-search {
    display: none;
  }

  .action-menu {
    height: 4em;
  }

  .footer-social-icons{
    padding-bottom: 1em
  }
}

@media screen and (min-width:501px) and (max-width: 767px) {
  .front__flex-margin {
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
    transform-origin: none;
    margin-bottom: 0;
  }

  .lang-switch {
    position: relative;
    left: 12%;
  }

  .search-block {
    position: relative;
    right: 8%;
  }
}

@media screen and (max-width: 370px) {
  .mobile-search {
    display: block;
  }

  .search-block {
    padding: 0;
  }
}

@media screen and (max-width:500px) {
  .front__flex-margin {
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
    transform-origin: none;
    margin-bottom: 0;
  }

  .lang-switch {
    left: 0;
  }

  .search-block {
    right: 0;
  }
}

@media screen and (min-width: 768px) {
  .row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  .mobile-search {
    display: none;
  }

  .nav li a {
    padding: 0.95em 0.95em;
  }

  .socialmedia ul {
    top: 15%;
    height: 100%;
  }

  .bottom-gap {
    display: none;
  }

  .collapsed .navbar-nav {
    padding-left: 0;
  }

  .navbar-nav {
    padding-left: 11em;
  }

  .textlogo {
    top: 0.1em;
    width: 10.75em !important;
  }

  .fit-menu {
    width: 100%;
  }

  .front__flex-margin {
    margin: 2em 0 0 0;
  }
  .footer-curve {
    margin-top: -6.4em;
    right: -1.9em;
  }
  .footer-social-icons {
    font-size: 2.5em;
    position: relative;
    z-index: 10;
    align-items: center;
    margin-bottom: 1em;
  }
}

@media screen and (max-width:991px) and (min-width: 768px) {
  .tablet-fix #main-content.col-sm-4 {
    width: 66%;
  }
}

@media screen and (min-width: 992px) {
  .mobile-search {
    display: none;
  }

  .nav li a {
    padding: 0.95em 1.1em;
  }

  .navbar-default {
    background: none;
    border: none;
  }

  /*To stop a while backround appearing behind the action-menu in mobile*/
  .navbar-nav {
    list-style-type: none;
    overflow: hidden;
    background-color: #ffffff;
    padding-left: 12em;
  }

  .socialmedia ul {
    transform: translateY(-40%);
    top: 50%;
    height: 75%;
  }

  .uppercurve {
    top: 3.3em;
  }

  .wavelogo {
    top: 0.36em;
  }

  .textlogo {
    top: 0em;
    left: 1em;
  }

  .fit-menu {
    width: 90%;
  }

  .front__flex-margin {
    margin: -4.3em 0 0 0;
  }

  .footer-curve {
    margin-top: -6.2em;
    right: -1.7em;
  }
  .footer-social-icons {
    font-size: 2.5em;
    position: relative;
    z-index: 10;
    align-items: center;
    margin-bottom: 1em;
  }
}

@media screen and (max-width:1199px) and (min-width:992px) {
  .tablet-fix #main-content.col-md-6 {
    width: 50%;
  }
}

@media screen and (min-width: 1200px) {
  .mobile-search {
    display: none;
  }

  .navbar-nav {
    width: 100%;
    padding-left: 16em;
  }

  .uppercurve {
    top: 3.1em;
  }

  .wavelogo {
    top: 0.24em;
  }

  .textlogo {
    top: -0.1em;
    left: 1em;
  }
  .footer-curve {
    margin-top: -6.6em;
  }
  .footer-social-icons {
    font-size: 2.5em;
    position: relative;
    z-index: 10;
    align-items: center;
    margin-bottom: 1.5em;
  }
}

@media screen and (min-width:1500px) {
  
  .footer-curve {
    margin-top: -7.7em;
  }

  .footer-social-icons {
    font-size: 2.5em;
    position: relative;
    z-index: 10;
    align-items: auto;
    margin-bottom: 0;
  }
  .col-xl-12 {
    width: 100%;
  }

  .col-xl-11 {
    width: 91.66666667%;
  }

  .col-xl-10 {
    width: 83.33333333%;
  }

  .col-xl-9 {
    width: 75%;
  }

  .col-xl-8 {
    width: 66.66666667%;
  }

  .col-xl-7 {
    width: 58.33333333%;
  }

  .col-xl-6 {
    width: 50%;
  }

  .col-xl-5 {
    width: 41.66666667%;
  }

  .col-xl-4 {
    width: 33.33333333%;
  }

  .col-xl-3 {
    width: 25%;
  }

  .col-xl-2 {
    width: 16.66666667%;
  }

  .col-xl-1 {
    width: 8.33333333%;
  }

  .col-xl-pull-12 {
    right: 100%;
  }

  .col-xl-pull-11 {
    right: 91.66666667%;
  }

  .col-xl-pull-10 {
    right: 83.33333333%;
  }

  .col-xl-pull-9 {
    right: 75%;
  }

  .col-xl-pull-8 {
    right: 66.66666667%;
  }

  .col-xl-pull-7 {
    right: 58.33333333%;
  }

  .col-xl-pull-6 {
    right: 50%;
  }

  .col-xl-pull-5 {
    right: 41.66666667%;
  }

  .col-xl-pull-4 {
    right: 33.33333333%;
  }

  .col-xl-pull-3 {
    right: 25%;
  }

  .col-xl-pull-2 {
    right: 16.66666667%;
  }

  .col-xl-pull-1 {
    right: 8.33333333%;
  }

  .col-xl-pull-0 {
    right: auto;
  }

  .col-xl-push-12 {
    left: 100%;
  }

  .col-xl-push-11 {
    left: 91.66666667%;
  }

  .col-xl-push-10 {
    left: 83.33333333%;
  }

  .col-xl-push-9 {
    left: 75%;
  }

  .col-xl-push-8 {
    left: 66.66666667%;
  }

  .col-xl-push-7 {
    left: 58.33333333%;
  }

  .col-xl-push-6 {
    left: 50%;
  }

  .col-xl-push-5 {
    left: 41.66666667%;
  }

  .col-xl-push-4 {
    left: 33.33333333%;
  }

  .col-xl-push-3 {
    left: 25%;
  }

  .col-xl-push-2 {
    left: 16.66666667%;
  }

  .col-xl-push-1 {
    left: 8.33333333%;
  }

  .col-xl-push-0 {
    left: auto;
  }

  .col-xl-offset-12 {
    margin-left: 100%;
  }

  .col-xl-offset-11 {
    margin-left: 91.66666667%;
  }

  .col-xl-offset-10 {
    margin-left: 83.33333333%;
  }

  .col-xl-offset-9 {
    margin-left: 75%;
  }

  .col-xl-offset-8 {
    margin-left: 66.66666667%;
  }

  .col-xl-offset-7 {
    margin-left: 58.33333333%;
  }

  .col-xl-offset-6 {
    margin-left: 50%;
  }

  .col-xl-offset-5 {
    margin-left: 41.66666667%;
  }

  .col-xl-offset-4 {
    margin-left: 33.33333333%;
  }

  .col-xl-offset-3 {
    margin-left: 25%;
  }

  .col-xl-offset-2 {
    margin-left: 16.66666667%;
  }

  .col-xl-offset-1 {
    margin-left: 8.33333333%;
  }

  .col-xl-offset-0 {
    margin-left: 0%;
  }
}

@media (max-width: 992px) {
  .navbar-fixed-top {
    background: transparent;
    border: none;
  }

  /*To stop a while backround appearing behind the action-menu*/
  .wavelogo img {
    display: none;
  }

  .wavelogo {
    display: none;
  }

  .uppercurve {
    display: none;
  }

  .flex-header {
    display: none;
  }

  .flex-caption {
    display: none;
  }
}

@media screen and (max-width: 767px) and (-ms-high-contrast: active) and (-ms-high-contrast: none) {
  img[src$="/sites/all/themes/aesbs337/images/logos/textonlylogo.svg"] {
    top: 0.5em;
  }
}

@media screen and (min-width: 768px) and (-ms-high-contrast: active) and (-ms-high-contrast: none) {
  img[src$="/sites/all/themes/aesbs337/images/logos/textonlylogo.svg"] {
    top: 0em;
  }
}

@media screen and (min-width: 992px) and (-ms-high-contrast: active) and (-ms-high-contrast: none) {
  img[src$="/sites/all/themes/aesbs337/images/logos/textonlylogo.svg"] {
    top: 0em;
  }
}

@media screen and (min-width: 1200px) and (-ms-high-contrast: active) and (-ms-high-contrast: none) {
  img[src$="/sites/all/themes/aesbs337/images/logos/textonlylogo.svg"] {
    top: -0.1em;
  }
}
