.widetext {
  letter-spacing: 1.6px;
}

.widetext1 {
  letter-spacing: 0.7px;
}

/* video modal starts  */

.video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.video-wrapper {
  width: 300px;
  flex: none;
  height: 150px;
  max-height: 150px;
  border-radius: 10px;
  margin: 20px 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-wrapper p.video-text {
  border-bottom-right-radius: 0px;
  height: 50px;
  background: #98d5cc;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: "Harmonia Sans W05 Regular";
  text-align: center;
  padding: 5px 10px;
}

.video {
  max-width: 300px;
  flex: none;
  border-radius: 10px;
  margin: 20px 50px;
}

.videos {
  height: 149px;
  border-radius: 10px;
}

.need-advice1 {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.need-advice1 .sub-text {
  font-size: 22px;
}

.wrapper {
  display: flex;
  align-items: center;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: start;
}

.categories .category {
  width: 230px;
  margin: 0 6px;
  margin-bottom: 20px;
  border-radius: 15px;
  background-color: #96d2ca;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.footer-text p {
  text-align: center;
}

.open-popup {
  border: none;
  outline: 0;
  background-color: transparent;
  color: #000;
  cursor: pointer;
  width: 100%;
}

.open-popup img {
  border-radius: 10px;
  box-shadow: 0 0 10px #cececf;
}

.open-popup img,
.close img {
  width: 100%;
}

#video-popup {
  display: none;
}

.video-popup video {
  width: 100%;
}

#video-popup.active {
  display: block;
  width: 80%;
  height: 80%;
  background-color: #000;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  margin: 0 150px;
}

#video-popup .content {
  position: relative;
}

.close {
  color: #aaa;
  margin-right: 0;
  position: absolute;
  font-size: 40px;
  width: 40px;
  font-weight: bold;
  cursor: pointer;
  float: right;
  z-index: 999;
  right: 0;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 998;
}

.logo {
  width: 350px;
  padding: 0 20px;
  margin: auto;
}

.logo img {
  width: 100%;
}

/* popup container starts */

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  letter-spacing: 0.6px;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 10px;
  cursor: pointer;
}

#popupContainer.active {
  display: block;
}

/* popup container ends */
@media screen and (max-width: 767px) {
  .wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .video-container {
    padding: 10px;
    margin-top: 20px;
  }

  .video-container2 {
    padding: 0;
    margin: 0;
  }

  #video-popup.active {
    display: block;
    width: 100%;
    height: 0;
    background-color: #000;
    position: fixed;
    left: 0px;
    top: 177px;
    z-index: 9999;
    margin: 0;
  }

  .categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .close {
    margin-right: 0;
    position: absolute;
    width: 25px;
    cursor: pointer;
    z-index: 999;
    right: 0;
  }

  .video {
    margin: 15px 0;
  }

  .video-3 {
    margin: 15px 0 0;
  }

  .container {
    margin: auto;
    max-width: 1150px;
    padding: 30px 0 20px 0;
  }

  .category.category_5 {
    margin-top: 30px;
  }

  .categories .category {
    width: 80%;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .categories .category {
    width: 240px;
    margin: auto;
    border-radius: 15px;
    background-color: #96d2ca;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 10px;
  }

  .video {
    margin: 10px 20px;
  }

  .video-3 {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .container {
    margin: auto;
    max-width: 1150px;
    padding: 30px 0 3% 0;
  }

  #video-popup.active {
    display: block;
    width: 80%;
    height: 0%;
    background-color: #000;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    margin: 80px 100px;
  }
}
