/* ================== */
/*  Root CSS Styling  */
/* ================== */
html, body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-flow: column nowrap;
  color: #828383;
}
img {
  vertical-align: middle;
  width: 100%;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  color: #00aead;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 300ms ease, background-color 300ms ease;
}
strong {
  color: #00aead;
}
ul, ol {
  list-style-type: none;
}
li {
  position: relative;
}

/* ====================== */
/*  Reusable CSS Classes  */
/* ====================== */
.container {
  max-width: 930px;
  margin: 0 auto;
  padding: 15px 30px;
}
.content {
  width: 100%;
}
.wrapper-grid {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(12, 1fr);
}
.wrapper-flex {
  display: flex;
}
.flex-fill {
  flex: 1 1 auto;
}
.flex-wrap {
  flex-wrap: wrap;
}
.bg-brown-gradient {
  background-color: #887F6F;
  background-image: -webkit-linear-gradient(#443F37, #887F6F 25%);
  background-image: -o-linear-gradient(#443F37, #887F6F 25%);
  background-image: -moz-linear-gradient(#443F37, #887F6F 25%);
  background-image: linear-gradient(#443F37, #887F6F 25%);
}
.bg-pattern {
  background-image: url('../images/republic_bg_pattern01.jpg');
  background-repeat-x: repeat;
  background-repeat-y: no-repeat;
  background-color: #676767;
}
.bg-white {
  background-color: #ffffff;
}
.color-white {
  color: #ffffff;
}
.color-teal {
  color: #00aead;
}
.round-corner-top:before {
  content: " ";
  height: 135px;
  width: 100%;
  background: url(../images/bg_header.gif) no-repeat bottom;
}
.round-corner-bottom:after {
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
}
.sidebar main .container {
  padding: 2em 30px;
}
.sidebar aside {
  max-width: 300px;
  width: 100%;
  margin-right: 2em;
}
.sidebar aside img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right;
}
.content li:before {
  content: "\25AA";
  color: #00aead;
  position: absolute;
  left: -1em;
}
.content .column {
  flex: 1 1 465px;
}
.sidebar .content .column {
  flex: 1 1 299px;
}

/* =============================== */
/*  Header, Navigation and Footer  */
/* =============================== */
header {
  margin-top: 15px;
}
header .logo img {
  max-width: 275px;
  height: auto;
}
header nav {
  align-self: flex-end;
}
header nav > ul {
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}
header nav > ul li {
  padding: 5px 15px;
  margin-right: 5px;
  position: relative;
}
header nav li a {
  color: #00aead;
  font-weight: bold;
  text-transform: capitalize;
  display: block;
  width: 100%;
  position: relative;
}
header nav li {
  transition: background-color 300ms ease;
}
header nav li.active {
  background-color: #00aead;
}
header nav li:before {
    content: "";
    width: 100%;
    height: 0;
    background-color: #00aead;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 150ms ease;
}
header nav li.active a {
  color: #ffffff;
}
header nav li .sub-menu {
  position: absolute;
  visibility: hidden;
  list-style: none;
  top: 34px;
  left: 0;
  opacity: 0;
  padding: 0;
  z-index: 1;
  transition: opacity 300ms ease;
}
header nav li:hover .sub-menu {
  visibility: visible;
  min-width: 200px;
  opacity: 1;
}
header nav li .sub-menu > li {
  background-color: #00aead;
  margin: 0;
  padding-left: 25px;
  font-size: small;
  transition: background-color 300ms ease;
}
header nav li .sub-menu > li.active {
  background-color: #828383;
}
header nav li .sub-menu > li:before {
  content: "-";
  position: absolute;
  top: 5px;
  left: 15px;
  color: #fff;
  background-color: transparent;
}
header nav li .sub-menu > li a {
  color: #ffffff;
}
header .menu-button,
header .sub-menu-button {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 34px;
  width: 34px;
  text-align: center;
  cursor: pointer;
}
header .menu-button {
  border: 1px solid #00aead;
  border-radius: 5px;
}
header .menu-button:before {
  position: absolute;
  top: 10px;
  right: 7px;
  display: block;
  height: 2px;
  width: 20px;
  background: #00aead;
  content: '';
}
header .menu-button:after {
  position: absolute;
  top: 16px;
  right: 7px;
  display: block;
  height: 4px;
  width: 20px;
  border-top: 2px solid #00aead;
  border-bottom: 2px solid #00aead;
  content: '';
}
header .sub-menu-button {
  background-color: #828383;
}
header .sub-menu-button:before {
  content: "+";
  color: #ffffff;
  position: absolute;
  left: 13px;
  top: 5px;
}
header .sub-menu-button.active:before {
  content: "-";
}
footer {
  text-align: right;
}
footer .amba a {
  text-decoration: underline;
}

/* ============= */
/*  Home Slider  */
/* ============= */
.slider .slide-item {
  background-color: #eee;
}
.slider .slick-arrow {
  position: absolute;
  z-index: 1;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  color: #00aead;
  font-size: 2em;
  padding: 15px 10px 15px 5px;
  border-radius: 3px;
  cursor: pointer;
}
.slider .slick-prev {
  left: 0;
  background: url(../images/republic_banner_navBG_left.png) no-repeat center center;
  background-size: contain;
}
.slider .slick-next {
  right: 0;
  background: url(../images/republic_banner_navBG_right.png) no-repeat center center;
  background-size: contain;
}
.slider .slick-list:before {
  content: "";
  background-image: url(../images/republic_banner_shadow_top.png);
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  width: 100%;
  height: 16px;
  display: block;
}
.slider .slick-list:after {
  content: "";
  background-image: url(../images/republic_banner_shadow_bottom.png);
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
  height: 16px;
  display: block;
}
.slick-dots {
  text-align: center;
  margin: 0.5em 0;
  padding: 0;
}
.slick-dots li {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #bbbbbb;
  margin-right: 10px;
  border-radius: 3px;
  cursor: pointer;
}
.slick-dots li.slick-active {
  background-color: #00aead;
}
.slick-dots li:before {
  content: "";
}
.slick-dots li button {
  display: none;
}
.home .slider-1 {
  background: url('../images/republic_banner01.jpg') no-repeat center center;
}
.home .slider-2 {
  background: url('../images/republic_banner02.jpg') no-repeat center center;
}
.home .slider-3 {
  background: url('../images/republic_banner03.jpg') no-repeat center center;
}
.home .slider-4 {
  background: url('../images/republic_banner04.jpg') no-repeat center center;
}
.home .slide-item {
  padding: 4em 4em 4em 2em;
  background-size: cover;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}
.home .slick-track {
  display: flex;
}
.home .content .col {
  width: 40%;
  margin-left: auto;
  text-align: right;
}
.home .content .col blockquote {
  font-size: 1.15em;
  line-height: 1.25;
  margin: 0;
}
.home .content .col strong {
  font-size: 1.25em;
}

/* ===================== */
/*  Custom Page Styling  */
/* ===================== */
.home .intro {
  max-width: 720px;
  margin: 0 auto;
  /* color: #887f6f; */
}
.contact aside img {
  object-position: center;
}

@media (max-width: 991px) {
  header .menu-button,
  header .sub-menu-button {
    display: block;
  }
  header .logo {
    position: relative;
  }
  header nav {
    margin-top: 1em;
    display: none;
    border: 1px solid #eee;
  }
  header nav li .sub-menu {
    position: initial;
    visibility: visible;
    opacity: 1;
    display: none;
    margin-top: 5px;
    margin-bottom: 10px;
  }
  .flex-none-mobile {
    display: block;
    width: 100%;
  }
  .home .content .col br {
    display: none;
  }
  .work .content ul {
    padding-left: 1em;
  }
}

@media (max-width: 767px) {
  header .logo img {
    max-width: 175px;
  }
  .flex-column-mobile {
    flex-direction: column;
  }
  .sidebar aside {
    max-width: 100%;
  }
  .sidebar aside img {
    height: 150px;
  }
  .home .slider-wrapper {
    overflow: hidden;
  }
  .home .slide-item {
    padding: 2em;
    background-position-x: left !important;
  }
  .home .slider-1 {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('../images/republic_banner01.jpg') no-repeat center center;
    background-size: cover;
  }
  .home .slider-2 {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('../images/republic_banner02.jpg') no-repeat center center;
    background-size: cover;
  }
  .home .slider-3 {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('../images/republic_banner03.jpg') no-repeat center center;
    background-size: cover;
  }
  .home .slider-4 {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('../images/republic_banner04.jpg') no-repeat center center;
    background-size: cover;
  }
  .slider .slick-prev {
    left: -1em;
  }
  .slider .slick-next {
    right: -1em;
  }
  .home .content .col {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  .home .content .col blockquote {
    font-size: 1em;
  }
}

/* Added Styles for browsers that supports hover state */

.repub_hovermq header nav li:hover:before {
  height: 100%;
}
.repub_hovermq header nav li:hover a {
  color: #ffffff;
}
.repub_hovermq header nav li .sub-menu > li:hover {
  background-color: #828383;
}
