/*=============================================
	=          Search Functionality           =
=============================================*/

/* Search popup styling */
.search-popup-wrap {
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.search-wrap {
	background: #fff;
	border-radius: 15px;
	padding: 40px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	max-width: 600px;
	margin: 0 auto;
}

.search-form {
	position: relative;
	margin-bottom: 0;
}

.search-form input[type="text"] {
	width: 100%;
	padding: 15px 50px 15px 20px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.search-form input[type="text"]:focus {
	outline: none;
	border-color: #31476e;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(49, 71, 110, 0.1);
}

.search-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: #31476e;
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-btn:hover {
	background: #2a3d5c;
	transform: translateY(-50%) scale(1.05);
}

/* Search results styling */
.search-results {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	margin-top: 20px;
	max-height: 400px;
	overflow-y: auto;
}

.search-results-list {
	padding: 0;
}

.search-result-item {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.search-result-item:hover {
	background: #f8f9fa;
	transform: translateX(5px);
}

.search-result-item:last-child {
	border-bottom: none;
}

.result-icon {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	color: white;
	font-size: 18px;
	flex-shrink: 0;
}

.result-content {
	flex: 1;
}

.result-content h4 {
	margin: 0 0 5px 0;
	color: #333;
	font-size: 16px;
	font-weight: 600;
}

.result-content p {
	margin: 0 0 5px 0;
	color: #666;
	font-size: 14px;
	line-height: 1.4;
}

.result-content span {
	color: #31476e;
	font-weight: bold;
	font-size: 14px;
}

.no-results {
	text-align: center;
	padding: 30px 20px;
	color: #666;
}

.no-results i {
	font-size: 32px;
	margin-bottom: 15px;
	display: block;
	color: #ccc;
}

.no-results p {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.no-results p:last-child {
	font-size: 14px;
	color: #999;
}

/* Search close button */
.search-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f3f4f6;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.search-close:hover {
	background: #e5e7eb;
	transform: scale(1.1);
}

.search-close i {
	color: #666;
	font-size: 16px;
}

/* Responsive search */
@media (max-width: 768px) {
	.search-wrap {
		padding: 20px;
		margin: 20px;
	}
	
	.search-form input[type="text"] {
		padding: 12px 45px 12px 15px;
		font-size: 14px;
	}
	
	.search-btn {
		width: 35px;
		height: 35px;
	}
	
	.search-result-item {
		padding: 12px 15px;
	}
	
	.result-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	
	.result-content h4 {
		font-size: 15px;
	}
	
	.result-content p {
		font-size: 13px;
	}
}







