.hostel_banner {
  width: 100%;
  position: relative;
  margin-top: 80px;
}

.hostel_banner .image_wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.hostel_banner_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hostel_banner .image_wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent
    linear-gradient(180deg, #000b2173 0%, #1b2538c7 100%, #545c6a 100%) 0% 0%
    no-repeat padding-box;
  z-index: 1;
}
.hostel_banner .banner_text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hostel_banner .banner_text .text {
  font-size: 40px;
  font-weight: bold;
  margin: 5px 0;
  font-family: Calibri;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hostel_banner .banner_text .text2 {
  font-size: 40px;
  font-weight: bold;
  margin: 5px 0;
  font-family: Calibri;
  margin: -25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hostel_banner .banner_text span {
  font-size: 65px;
  font-style: italic;
  font-weight: 700;
  color: #ffffff;
  font-family: Cambria;
}
@media (min-width: 0px) and (max-width: 574px) {
  .hostel_banner .image_wrapper {
    height: 150px;
  }

  .hostel_banner {
    width: 100%;
    position: relative;
    margin-top: 65px;
  }

  .hostel_banner .banner_text .text {
    font-size: 20px;
  }
  .hostel_banner .banner_text .text2 {
    font-size: 20px;
    margin-top: -16px;
  }
  .hostel_banner .banner_text span {
    font-size: 28px;
  }
}

@media (min-width: 575px) and (max-width: 767.98px) {
  .hostel_banner .image_wrapper {
    height: 200px;
  }
  .hostel_banner .banner_text .text {
    font-size: 26px;
  }
  .hostel_banner .banner_text .text2 {
    font-size: 26px;
  }
  .hostel_banner .banner_text span {
    font-size: 35px;
  }
  .hostel_banner {
    margin-top: 60px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hostel_banner .image_wrapper {
    height: auto;
    width: 100%;
  }
  .hostel_banner .banner_text .text {
    font-size: 28px;
  }
  .hostel_banner .banner_text .text2 {
    font-size: 28px;
  }
  .hostel_banner .banner_text span {
    font-size: 38px;
  }
  .hostel_banner {
    margin-top: 60px;
  }
}
