.hero-section {
  height: 100vh;
  background-image: url("../images/bg/resourcesbg.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-caption {
  margin: 0 auto;
  padding-top: calc(50vh - 130px);
  color: #fff;
  position: relative;
  font-weight: bolder;
  text-align: center;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.hero-caption span {
  font-size: 2em;
  font-weight: 500;
}
.hero-caption h1 {
  color: #fff;
  font-size: 6em;
  font-weight: bolder;
}

.hero-footer-center {
  text-align: center;
  flex-grow: 1;
}

.search-container {
  position: relative;
}

.search-box {
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: -10px;
  top: 12px;
}

.categories {
  display: flex;
  align-items: stretch; /* Default */
  justify-content: space-between;
  width: 100%;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
}

.categories li {
  display: block;
  flex: 0 1 auto; /* Default */
  list-style-type: none;
  text-align: center;
  padding: 5px;
}

.mid-wrap {
  background-image: url("../images/services/mid-banner.jpg");
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
  min-height: 400px;
}

.mid-text {
  max-width: 40%;
}

.resource-wrap {
  background-color: #fff;
}
/* 
.services {
  background-color: #f4f4f4;
} */

.resource-img {
  width: 100%;
  /*clip-path: inset(0, 0, 260px, 0);*/
}

.resource-item {
  position: relative;
  overflow: hidden;
}

.resource-item:hover {

}

.resource-title-desc {
  background-color: rgba(255, 255, 255, 1.0);
  backdrop-filter: blur(4px);
  width:200px;
  position: absolute;
  right: calc(50% - 85px);
  bottom: 0px;
  height: 100px;
  z-index: 9;
  text-align: left;
  padding: 15px;
  font-size: 0.8em;
}

.featured-tag{
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  padding: 2px 20px;
}

.featured .resource-title-desc {
  right: 40px;
  bottom: 20px
}

.resource-title-desc:hover {
  cursor: pointer;
}

.resource-title-desc:hover .resource-title {
  transition: all ease 0.6s;
  transform: translateY(15px);
  color: #391c70;
}

.resource-title-desc:hover .resource-desc {
  transition: transform ease 0.7s;
  transform: translateY(20px);
  opacity: 0;
  font-size: 130%;
  font-weight: bold;
}

.resource-title {
  font-size: 1.3em;
  color: #777;
  font-weight: bold;
  margin-bottom: 5px;
}

.resource-desc {
  color: #9a258f;
}

.resource-footer {
  margin-bottom: 0px;
  padding: 0 15px;
}

.subscribe-box{
  position: absolute;
  left: 40px;
  bottom: 60px;
  height: 150px;
  z-index: 9;
  text-align: left;
  padding: 15px;
  max-width: 280px;
  font-size: 0.9em;
}

.subscribe-box h5{
  font-size: 2.0em;
  margin-bottom: 20px;
}

.subscribe-box input {
  width:210px;
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 20px 0 0 20px;
  border: 0;
  outline: 0;
}

.subscribe-button {
  width: 40px;
  height: 40px;
  text-align: center;
  display: inline-block;
  background-color: #fff;
  outline: 0;
  border: 0;
  margin-left: -5px;
  border-radius: 0 20px 20px 0;
}

.subscribe-button:hover {
  background-color: #9a258f;
  margin-left: -12px;
  width: 47px;
  border-radius: 20px;
}

.subscribe-button:hover i {
  color: #fff !important;
}

.subscribe-button i {
  display: block;
  margin: auto;
}

.sf-pink-bg {
  color: #fff !important;
  background-color: #9a258f;
  background-repeat: no-repeat;
  background-position: calc(100% - 50px) calc(100% - 20px);
  background-blend-mode: luminosity;
  background-image: url("../images/services/services-contact-bg.png");
}

.sf-purple-bg {
  color: #fff !important;
  background-color: #391c70;
  background-repeat: no-repeat;
  background-position: calc(100% - 50px) calc(100% - 20px);
  background-blend-mode: luminosity;
  background-image: url("../images/services/services-hire-bg.png");
}

.sf-pink-bg h3,
.sf-purple-bg h3 {
  color: #fff !important;
  margin-bottom: 30px;
}

.sf-image-1,
.sf-image-2 {
  padding: 0;
}

.sf-image-1 {
  background-position: center;
  background-size: cover;
  background-image: url("../images/services/footer-1.jpg");
}

.sf-image-2 {
  background-position: center;
  background-size: cover;
  background-image: url("../images/services/footer-2.jpg");
}

.sf-image-1,
.sf-image-2 {
  min-height: 370px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .mid-wrap {
    background-image: none;
  }
  .mid-text {
    max-width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .categories {
    display: unset !important;
  }
  .mid-wrap {
    background-image: none;
  }
  .mid-text {
    max-width: 100%;
  }

  .hero-caption h1 {
    color: #fff;
    font-size: 3.5em;
    font-weight: bolder;
  }

  .hero-caption {
    padding-top: 130px;
  }

  .hero-section,
  .hero-section::after {
    height: calc(100vh - 90px);
  }
}
