.wrapper {
  max-width: 1440px;
  width: 1440px;
  margin: 0 auto;
  padding: 10px;
}

#header_section {
  width: 100%;
  min-height: 80vh;
  background: url("../img/fit-duo-banner.png") top right no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0;
}

.contact-page #header_section {
  background: url("../img/fit-duo-banner-two.png") center center no-repeat;
  background-size: cover;
}

.sportplan-page #header_section {
  background: url("../img/fit-duo-banner-three.png") center center no-repeat;
  background-size: cover;
}

.booking-page #header_section {
  background: url("../img/fit-duo-banner-four.png") center center no-repeat;
  background-size: cover;
}

#header {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 1;
  padding: 15px;
  border-right: none;
}

.black_container {
  width: 100%;
  height: 200px;
  background: rgb(0 16 37 / 70%);
}

.home-content {
  text-align: left;
  max-width: 100%;
  color: white;
  margin: 0;
  width: 100%;
}

#header_section h1 {
  margin: 0;
  font-size: 54px;
  font-weight: 700;
  line-height: 66px;
  color: #ffffff;
}

#header_section h1 span {
  display: block;
  font-size: 70px;
  font-weight: bold;
}

#header_section p {
  color: #fff;
  margin: 15px 0 0 10px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#header_section_span {
  color: var(--main-color--);
}

.sub_header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.sub_header .title {
  font-size: 20px !important;
  font-weight: bold;
  color: var(--main-color--) !important;
  margin: 0 0 0 30px;
  padding: 0;
}

.sub_header .info {
  font-size: 12px !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 30px 0 0;
  padding: 0;
}

.sub_header .info i {
  font-size: 16px;
  color: #ffffff;
  vertical-align: middle;
}
.sub_header .info .email-icon {
  margin-right: 8px;
}

.info span {
  margin-left: 5px;
}

.mobile-icons {
  display: none;
}

.popup {
  position: absolute;
  right: -350px;
  top: 90%;
  transform: translateY(-50%);
  transition: right 1.5s ease-out, opacity 1s ease-in;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  width: 300px;
}

.animate-popup {
  right: 215px;
  opacity: 1;
}

@media (min-width: 601px) and (max-width: 991px) {
  .wrapper {
    max-width: 700px;
    width: 700px;
    margin: 0 auto;
  }

  .sub_header .title {
    margin: 0 0 0 0 !important;
  }

  .sub_header .info {
    margin: 0 0 0 0 !important;
  }

  #header {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 3;
    border-right: none;
  }

  #header_section {
    width: 100%;
    min-height: 65vh;
    background: url("../img/fit-duo-banner.png") top right no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .black_container {
    width: 100%;
    height: 150px;
    background: rgb(0 16 37 / 70%);
  }

  .home-content {
    text-align: left;
    max-width: 100%;
    color: white;
    margin: 0;
    width: 100%;
  }

  .popup {
    width: 180px;
    right: -300px;
  }

  .animate-popup {
    right: 10px;
  }

  #header_section h1 {
    font-size: 40px;
    line-height: 45px;
  }

  #header_section p {
    font-size: 20px;
  }
}

@media (min-width: 320px) and (max-width: 600px) {
  .wrapper {
    max-width: 350px;
    width: 350px;
  }

  #header {
    position: absolute;
    top: 35px;
    margin-top: 10px;
    width: 100%;
    z-index: 3;
    padding: 0;
    border-right: none;
  }

  .sub_header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .sub_header .title {
    font-size: 20px !important;
    font-weight: bold !important;
    color: var(--main-color--) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sub_header .info {
    display: none;
  }

  .mobile-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .mobile-icons i {
    display: inline-block;
    font-size: 28px;
    color: white;
  }

  #header_section {
    width: 100%;
    min-height: 49.5vh;
    background: url("../img/fit-duo-banner.png") top right no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  #header_section h1 {
    font-size: 22px;
    line-height: 28px;
    margin: 0;
  }

  #header_section h1 span {
    font-size: 26px;
    line-height: 30px;
  }

  #header_section p {
    font-size: 16px;
    margin: 5px 0 0 0;
  }

  .black_container {
    width: 100%;
    height: 110px;

    background: rgb(0 16 37 / 70%);
  }

  .home-content {
    width: 100%;
    max-width: 100%;
    color: white;
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .popup {
    width: 140px;
    top: 90%;
  }

  .animate-popup {
    right: 10px;
  }
}
