.advanced-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  cursor: pointer;
}

.search-bar {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
    margin-left: -5px;
    background: #000;
    padding: 0px 0px 0px 0px;
    margin-right: 10px;
    margin-top: -0.5px;
    height: 40px;
    border-radius: 0px 10px 10px 0px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  width: 300px;
  font-family: 'CircularXX';
	font-weight:500;
	color:#C7C7C7;
}

/* Active state when open */
.search-bar.active {
  max-width: 350px;
  opacity: 1;
}


/* .search-results {
  position: absolute;
  top: 60px;
  left: 0;
  background: #000;
  color: white;
  border-radius: 16px;
  padding: 15px;
  display: none;
  width: 400px;
  z-index: 999;
	
} */

/* .search-results {
    background: #000;
    color: #fff;
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    padding: 10px;
    border-radius: 5px;
} */

/* .search-results {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
} */

.search-results.show {
  opacity: 1;
  pointer-events: auto;
}

input#searchInput:focus {
    background: #000;
    border: unset;
	color:#fff;
}
.search-results .category-title {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}
.search-results .result-item {
  border-top: 1px solid #333;
  padding: 8px 0;
}
.search-results .result-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-family: 'CircularXX';
    border-bottom: 1px solid #606060;
    font-weight: 500;
}

.custom-search-icon {
  width: 40px;
  height: 40px;
/*   margin-right:10px; */
}


.search-results {
    background: #000;
    color: #fff;
    position: absolute;
    z-index: 9999;
    width: 100%;
/*     max-height: 200px; */
    overflow-y: auto;
    display: none;
    padding: 18px;
    border-radius: 0px 0px 12px 12px;
	transition: opacity 0.3s ease;
	top: 31px;
  left: 0;
	max-width: 333.9px;
}

.search-results.show {
  display: block;
}

.search-results .result-section{
	max-height:400px;
}

.category-title {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}

.result-item a {
  display: block;
  padding: 5px 0;
  color: #333;
  text-decoration: none;
}

.result-item a:hover {
  text-decoration: underline;
}

.result-item .excerpt {
    font-size: 14px;
    color: #F0F0F0;
    margin-top: 4px;
    font-family: 'CircularXX';
    font-weight: 400;
    letter-spacing: 0.1px;
}
.result-item strong {
  background: yellow;
  color: #000;
}

/* @media (max-width: 767px) {
  .search-bar input {
    width: 100px;
	padding: 5px;
  }
} */

@media (max-width: 568px) {
.search-bar input {
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.search-bar.active input {
  opacity: 1;
  pointer-events: auto;
}
	.custom-search-icon {
  width: 32px;
  height: 32px;
}

}

/* @media (max-width: 768px) {
.advanced-search {
  position: relative;
  z-index: 2000;
}

.search-icon {
  cursor: pointer;
  position: relative;
  z-index: 2001;
}

.custom-search-icon {
  width: 32px;
  height: 32px;
}

.search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000;
  display: flex;
  align-items: center;
  padding: 15px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  height: 60px;
  box-sizing: border-box;
  z-index: 2000;
  border-radius: 0 0 20px 20px;
}

.search-bar.active {
  transform: translateY(0);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding-left: 10px;
}

.close-icon {
  font-size: 24px;
  color: #fff;
  margin-left: 10px;
  cursor: pointer;
}

.search-results {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100vw;
  background: #000;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 1999;
  display: none;
  border-radius: 0 0 12px 12px;
}

.search-results.show {
  display: block;
}

.category-title {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

.result-item a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 0;
}

.excerpt {
  font-size: 12px;
  color: #ccc;
  margin-top: 5px;
}

.result-item strong {
  background: yellow;
  color: #000;
}

} */

@media (max-width: 767px) {
	
	
/* 	.search-bar.active {
    max-width: 92%;
    opacity: 1;
    border-radius: 12px;
	 pointer-events: auto;
} */

	
  .search-bar {
    position: fixed;
top: 88px;
        left: 20px;
    right: 0;
    width: 100vw;
    height: 50px;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-radius: 0;
  }

  .search-bar.active {
    transform: translateY(0);
	      max-width: 94%;
    opacity: 1;
    border-radius: 12px;
	 pointer-events: auto;
  }

  .search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 0;
    margin: 0;
  }

  .close-icon {
    color: #fff;
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
  }

  .search-results {
    position: fixed;
        top: 90px;
        left: 35px;
    right: 0;
    width: 100vw;
    background: #000;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9998;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
  }

  .search-results.show {
           display: block;
        max-width: 94%;
        left: 15px;
        border-radius: 0 0 12px 12px;
        top: 129px;
  }
	.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0);
backdrop-filter: blur(15.4px);
-webkit-backdrop-filter: blur(15.4px);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.search-overlay.show {
    display: block;
    opacity: 1;
}

}

/* @media (max-width: 420px) {
  .search-bar input {
    width: 50px;
	padding: 5px;
  }
}
@media (max-width: 375px) {
  .search-bar input {
    width: 35px;
	padding: 5px;
  }
} */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #009759; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #fff; 
}