/* Animated Border box styling */
body {
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

@-webkit-keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}
.service-bx.rainbow {
  position: relative;
  z-index: 0;
  width: 280px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  padding: 2rem;
}
.service-bx.rainbow::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-color: #3B0000;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(#3B0000, #3B0000),
    linear-gradient(#3B0000, #3B0000), linear-gradient(red, red),
    linear-gradient(red, red);
  -webkit-animation: rotate 4s linear infinite;
  animation: rotate 4s linear infinite;
}
.service-bx.rainbow::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  background: white;
  border-radius: 5px;
}
/* ------------------------------ */

/* Service section styling */

.content-section {
  padding: 80px 0;
}
.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
  line-height: 1;
  color: #3B0000;
  text-align: center;
  font-family: "Merriweather", serif;
  text-transform: uppercase;
}
.service-bx {
  text-align: center;
  padding: 20px 20px;
  box-shadow: 1px 1px 4px 1px gray;
  transition: all 0.6s;
}
.service-bx:hover {
  transform: scale(0.96);
  box-shadow: 1px 5px 4px 1px #3B0000;
}
.service-bx > .fa {
  color: #000;
  font-size: 68px;
  margin: 30px auto;
}
.service-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #3B0000;
  text-align: center;
  font-family: "Merriweather", serif;
  text-transform: uppercase;
}
/* /Service section stying */

#header {
  padding: 15px 0;
  background-color: #3B0000; /* paste color code here ------------------ */
  color: #fff;
  min-height: 90px;
  font-family: Fantasy;
  display: flex;
  align-items: center;
}

#header a {
  text-decoration: none;
  color: #fff;
}
.head-title,
.head-subtitle {
  margin: 0;
  padding: 0;
  font-weight: 400;
  line-height: 1;
}

.head-title:hover,
.head-subtitle:hover {
  color: #fff;
}

.head-title {
  font-size: 26px;
}

.head-subtitle {
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1.2;
}
.flex-head {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  justify-content: flex-end;
}

.banner {
  background-image: url(img/banner.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 480px;
  width: 100%;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 85%,
    50% 100%,
    0% 85%,
    0% 100%,
    0% 0%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.banner-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #000;
  opacity: 0.3;
  top: 0;
  left: 0;
  z-index: 1;
}
.banner-title {
  z-index: 99999;
}

.site-title > h2 {
  color: #fff; /* paste color code here for site heading ........................... */
  font-family: Fantasy;
  font-size: 42px;
  font-weight: 500;
  opacity: 1;
  text-align: center;
}
.gallery-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.add-div {
  display: flex;
  flex-direction: column;
}
.add-div > div {
  background-color: #3B0000; /* paste color code here ........................... */
  padding: 50px 50px 70px 50px;
  margin: 0 auto -30px auto;
  text-align: center;
  z-index: 1;
}

.open-para {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.contact-btn,
.contact-foot-btn {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 20px 30px;
  font-family: "Merriweather", serif;
  text-transform: uppercase;
  color: #ffffff;
  border: 2px solid #fff;
  background-color: #3B0000;
}
.contact-btn:hover {
  text-decoration: none;
  background-color: #ffffff !important;
  border-color: #3B0000 !important;
  color: #3B0000 !important;
  transition: all 0.4s;
}
.contact-foot-btn:hover {
  text-decoration: none;
  background-color: #ffffff;
  border-color: #3B0000;
  color: #3B0000;
  transition: all 0.4s;
}
.map-section {
  background-color: #3B0000;
  padding: 40px 0;
}
.map-col {
  display: flex;
  align-items: center;
}
.map-img {
  width: 100%;
  margin: 10px 0;
}
footer {
  padding: 30px 0;
  border-top: 1px solid #25019330; /* paste color code here ----------------- */
}
.footer-heading {
  color: #393e46;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}
.foot-text {
  color: #334443;
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  list-style: none;
}

.foot-text > li > span {
  min-width: 45px;
  float: left;
}

@media only screen and (max-width: 991px) {
  .add-div {
    height: auto;
    width: 100%;
    padding-bottom: 100px;
  }
  .site-title h2 {
    font-size: 32px;
  }
  .service-bx.rainbow {
    width: 200px;
  }
}
@media only screen and (max-width: 767px) and (min-width: 320px) {
  .site-title > h2 {
    font-size: 36px;
  }
  .add-div > div {
    padding: 30px 15px 60px 15px;
    margin: 0px auto 0 auto !important;
  }
  .head-title,
  .head-subtitle {
    text-align: center;
  }
  .flex-head {
    margin-top: 10px;
  }
  .fh1 {
    justify-content: center;
  }
  .gallery-img {
    margin: 0 0 20px 0;
    height: 280px;
    width: 100%;
  }

  .footer-heading {
    margin-bottom: -10px;
  }
  footer .row .col-md-4:first-child,
  footer .row .col-md-4:nth-child(2) {
    width: 50%;
  }
  footer .row .col-md-4:last-child {
    margin-top: 30px;
    text-align: center;
  }
  .foot-text > li > span {
    float: none;
    margin-right: 10px;
  }
  .service-bx.rainbow {
    width: 280px;
  }
  .contact-foot-btn {
    padding: 10px 7px;
  }
}

@media only screen and (max-width: 320px) {
  .banner-title .head-title {
    font-size: 26px;
    font-weight: 800;
  }
  .banner-btn {
    padding: 15px 10px;
    font-size: 14px;
  }
  .contact-foot-btn {
    padding: 10px 5px;
  }
}
