/* Header Starts Here */

.header {
  background: rgb(140, 56, 181);
  background: linear-gradient(90deg, rgb(177 66 231) 0%, rgb(22 90 148) 100%);
}

.hamburgerIcon {
  width: 30px;
  height: 30px;
  border: none;
  outline: none;
  display: none;
  background-color: transparent;
}

.hamburgerIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  width: 190px;
  height: 56px;
}

.logo img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.headWrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navLinks a {
  color: white;
  font-weight: 900;
  font-size: 1.4rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all linear 0.2s;
}
.navLinks a:hover {
  color: #2d8ad9;
  border-radius: 5px;
  background-color: white;
}

/* .headSearch {
  display: flex;
  align-items: center;
}

.searchHeader {
  width: 250px;
  border: none;
  outline: none;
  padding: 15px;
  border-radius: 5px;
  background-color: white;
}

.shButton {
  width: 25px;
  height: 25px;
  border: none;
  margin-left: -45px;
  background-color: white;
}

.shButton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-overlay {
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
  background-color: rgba(0, 0, 0, 0.8);
}

.search-overlay.show {
  opacity: 1;
  display: flex;
}

.search-popup {
  width: 85%;
  top: -110px;
  padding: 20px;
  display: flex;
  margin: 0 30px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  background: white;
  flex-direction: column;
}

.search-popup .secHeading {
  margin-top: 0;
}

.search-popup input {
  width: 100%;
  font-size: 16px;
  padding: 8px 15px;
}

.search-popup button {
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 0 5px 5px 0;
  background: rgb(140, 56, 181);
  background: linear-gradient(
    90deg,
    rgba(140, 56, 181, 1) 0%,
    rgba(45, 138, 217, 1) 100%
  );
}

.search-popup .closebtn {
  top: 5px;
  right: 20px;
  font-size: 35px;
  cursor: pointer;
  position: absolute;
} */

/* Header Ends Here */

/* For screens less than or equal to 991px */
@media (max-width: 1024px) {
  .hamburgerIcon,
  .searchIcon {
    display: block;
  }
  .navLinks {
    display: none;
  }

  .headSearch {
    display: none;
  }
}

/* For screens less than or equal to 880px */
@media (max-width: 880px) {
  /* Styles for 880px */
}

/* For screens less than or equal to 720px */
@media (max-width: 720px) {
  /* Styles for 720px */
}

/* For screens less than or equal to 640px */
@media (max-width: 640px) {
  /* Styles for 640px */
}

/* For screens less than or equal to 560px */
@media (max-width: 560px) {
  .search-popup .secHeading {
    font-size: 2.3rem;
  }
  .search-popup .closebtn {
    font-size: 30px;
  }
}

/* For screens less than or equal to 480px */
@media (max-width: 480px) {
  .search-popup .closebtn {
    right: 10px;
  }
  .search-popup .secHeading {
    font-size: 2rem;
  }
}

/* For screens less than or equal to 320px */
@media (max-width: 320px) {
  /* Styles for 320px */
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0;
  padding: 0px;
}

#search-bar {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

#search-results {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 100%;
  background-color: white;
  border-top: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.search-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.search-result img {
  width: 100%;
  height: auto;
  max-width: 150px; /* Adjust as needed */
  margin-bottom: 10px;
  cursor: pointer;
}

.search-title {
  font-size: 16px;
  font-weight: 600;
  color: black;
  text-align: center;
}

.search-result:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .search-container {
      padding: 5px;
  }

  #search-bar {
      padding: 8px;
  }

  .search-result img {
      max-width: 100px;
  }

  .search-title {
      font-size: 14px;
  }

  .close-icon {
      font-size: 23px;
  }
}

@media screen and (max-width: 768px) {
    .logo img {
        width: 140px; /* bigger on desktop */
    }
}