@media (min-width: 320px) and (max-width: 767.9px) {
  .p-5 {
    padding: 2rem 1rem !important;
  }

  .page-header {
    padding: 0 !important;
  }

  .pad {
    padding: 40px 10px;
  }

  .bxx.borderlr {
    border: none;
  }

  .subtitle h1 {
    font-size: 20px;
  }

  .inner-page img {
    margin-bottom: 20px;
  }

  .tel {
    margin-right: 10px;
  }

  h5,
  .h5 {
    font-size: 1.15rem;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .navbar-collapse {
    position: absolute;
    top: 56px;
    z-index: 1050;
    background: #fff;
    padding: 20px;
    right: -10px;
    min-width: 330px;
    /* left: 0; */
  }

  .hero {
    height: 300px;
  }

  .services {
    padding: 50px 0;
  }

  .recent-posts {
    padding: 50px 0;
  }

  .trust {
    padding: 50px 0;
  }

  .footer-widgets {
    padding: 50px 0;
  }

  .title h1 {
    font-size: 23px;
  }

  .recent-posts .btn {
    margin-top: 20px;
  }

  .trust .gal-img::after {
    border-radius: 10px;
  }

  #lightgallery img {
    border-radius: 10px;
  }

  div#lightgallery {
    margin-top: 20px;
  }

  .recent-posts .row .col-lg-12.col-xl-6:nth-of-type(odd) .post-thumb {
    margin-left: 0;
  }

  .recent-posts .row .col-lg-12.col-xl-6:nth-of-type(even) .post-thumb {
    margin-right: 0;
  }
}


/*-----------------------------------
    Small devices (landscape phones, 576px and up)
------------------------------------*/
@media (min-width: 576px) {

  .top-header {
    padding: 0px 0 10px;
    display: flex;
  }

  .hero .slide-content {
    min-height: 700px;
  }

  .hero .slide-content h1 {
    margin-top: 100px;
  }


}

@media (min-width: 768px) and (max-width: 1023px) {
  .inner-page img {
    margin-bottom: 20px;
  }

  .page-header {
    padding: 0 !important;
  }

  .pad {
    padding: 40px 0;
  }

  .bxx.borderlr {
    border: none;
  }

  .subtitle h1 {
    font-size: 20px;
  }

  .inner-page img {
    margin-bottom: 20px;
  }

  .trust .gal-img::after {
    border-radius: 10px;
  }

  #lightgallery img {
    border-radius: 10px;
  }

  div#lightgallery {
    margin-top: 20px;
  }

  .top-header {
    display: none;
  }

  .nav.buttons a {
    border-radius: 10px;
  }

  .d-md-none {
    display: none !important;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding: 8px 5px;
  }

  .contact i {
    margin-right: 5px;
  }

  .tel {
    margin-right: 3px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .trust .gal-img::after {
    border-radius: 10px;
  }

  #lightgallery img {
    border-radius: 10px;
  }

  div#lightgallery {
    margin-top: 20px;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding: 8px;
    font-size: 13px;
  }

  .nav.buttons a {
    border-radius: 10px;
    font-size: 10px;
    padding: 8px 8px;
  }

  .d-md-none {
    display: none !important;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding: 8px 5px !important;
  }

  .contact i {
    margin-right: 5px;
  }

  .tel {
    margin-right: 3px;
  }
}

/*-----------------------------------
    Medium devices (tablets, 768px and up)
------------------------------------*/
@media (min-width: 768px) {

  .navbar-brand img {
    width: 100px;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    /* padding: 8px 10px; */
  }

  .navbar-expand-md .navbar-nav .nav-item {
    margin-right: 12px;
  }

  .navbar-collapse .nav-link {
    font-size: 0.875rem;
    position: relative;
  }

  .navbar-collapse .nav-link::before {
    /* content: "\f0d8"; */
    font-family: FontAwesome;
    color: #f37325;
    position: absolute;
    bottom: 7px;
    line-height: 0;
    right: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.35s ease;
  }

  .navbar-collapse .nav-link::after {
    /* content: ""; */
    width: 0;
    /* height: 4px; */
    /* background-color: #f37325; */
    position: absolute;
    /* right: 0; */
    /* bottom: 0; */
    transition: all 0.35s ease;
  }

  .navbar-collapse .nav-link:hover::after {
    /* width: 100%; */
    right: 0;
  }

  .navbar-collapse .nav-link:hover::before {
    opacity: 1;
    right: 0;
  }

  .navbar-collapse .search-form {
    padding: 10px;
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    opacity: 0;
    transition: all 0.35s ease-in-out;
  }

  .navbar-collapse .search-form.show {
    display: block;
    opacity: 1;
  }

  .navbar-collapse .search-form input[type="text"] {
    border: 1px solid #ced4da;
    color: #343a40;
    padding: 1.5313rem 0.625rem;
  }

  .navbar-collapse .search-form .btn {
    margin-top: 0;
  }

  .navbar-collapse .search-form input[type="submit"] {
    border: 1px solid #ced4da;
    margin-left: -1px;
    border-radius: 0;
  }

  .group {
    order: 2;
  }

  .cart,
  .search-icon {
    font-size: 0.875rem;
  }

  .cart:hover,
  .search-icon:hover {
    color: #f37325;
  }

  .search-icon {
    margin: 0 13px;
    order: 1;
  }

  .hero .slide-content h1 {
    font-size: 3.5rem;
  }

  .hero .slide-content br {
    display: block;
  }

  .hero .arr-left,
  .hero .arr-right {
    top: 50%;
  }

  .featured-img {
    height: 100%;
    margin-top: -66px;
  }

  .cta-content {
    border-top-right-radius: 100px;
    border-bottom-left-radius: 100px;
  }

  .cta-content::after {
    border-top-right-radius: 100px;
    border-bottom-left-radius: 100px;
  }

  .cta-content .subscribe-btn {
    /* align-self: flex-end; */
    margin: 0 10px 0 20px;
  }
}

/*-----------------------------------
    Large devices (desktops, 992px and up)
------------------------------------*/
@media (min-width: 992px) {
  .navbar-expand-md .navbar-nav .nav-link {
    /* padding: 8px 10px; */
    /* font-size: 13px; */
  }

  .navbar-expand-md .navbar-nav .nav-item {
    margin-right: 5px;
  }

  .hero .slide-content {
    min-height: 100vh;
  }

  .hero .slide-content h1 {
    font-size: 4.5rem;
  }

  .hero .slide-content br {
    display: block;
  }

  .hero .arr-left,
  .hero .arr-right {
    top: 50%;
  }

  .title h1 {
    font-size: 30px;
  }
}

/*-----------------------------------
    Extra large devices (large desktops, 1200px and up)
------------------------------------*/
@media (min-width: 1200px) {
  .navbar-brand img {
    /* width: auto; */
  }

  .title h1 {
    font-size: 35px;
  }

  .trust .title {
    /* padding-top: 70px; */
  }

  .trust ul {
    padding-bottom: 30px;
  }

  .trust .gallery {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 75px 0;
  }
}