body {
    font-family: 'Montserrat', sans-serif !important;
}

.navbar {
    transition: top 0.3s;
    z-index: 1;
}

.navbar-collapse {
    flex-grow: 0!important;
}

.navbar-nav a {
    color: #000;
    cursor: pointer;
}

.navbar-nav a:hover {
    color: #fff;
}

.text-over-image {
    position: relative;
    text-align: center;
    color: white;
  }
  
  .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 2rem;
    padding: 30px;
    background-color: rgba(255,255,255, 0.5);
  }

  .hover-img figure {
      cursor: pointer;
      position: relative;
  }

  .hover-img figure::after {
      content: "";
      transition: background-color 0.3s;
  }

  .hover-img figure:hover::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, 0.5);
  }

  @media only screen and (max-width: 575px) {
      .centered {
          font-size: 1rem;
          padding: 0;
      }  
  }

.services h5,
.services p {
    color: #fff;
    line-height: 1.2;
}

.services p {
    font-size: 0.8rem;
}

.services h5 {
    font-size: 1rem;
}

.services-border {
    border-left: 1px solid #fff;
}

.corner {
    position: relative;
}

.corner::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    top: -30px;
    right: 15px;
}

.corner::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-left: 3px solid #000;
    border-bottom: 3px solid #000;
    bottom: -30px;
    left: 15px;
}

.about-border {
    border: 1px solid #fff;
}

.about-us h4 {
    color: #fff;
}

.about-us p {
    color: #fff;
}

.contact {
    background-color: #fff;
}

.copyright {
    background-color: #393E46;
}

.about-border:hover {
    background-color: #A6A9B6;
}

#header li:hover a {
    color: #fff;
}

#header li:hover {
    background-color: #343a40;
  }


.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
}

@media only screen and (max-width: 991px){
    .blog-font p {
        font-size: 13px;
    }

    .blog-font h4 {
        font-size: 15px;
    }
}

@media only screen and (max-width: 767px){
    #blog img {
        padding-bottom: 45px;
    }

    #blog .row:nth-child(even) {
        flex-direction: column-reverse;
    }

    .corner::before {
        right: 0;
    }

    .corner::after {
        left: 0;
    }

    .services-border {
        border: none;
        text-align: center;
    }

    .align-items-center {
        justify-content: center;
    }
}

@media only screen and (max-width: 575px) {
    .corner::before {
        border: none;
    }

    .corner::after {
        border: none;
    }
}

@media only screen and (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff;
    }

    .about-border h4 {
        font-size: medium;
    }
    .about-border p {
        font-size: small;
    }
}
