/* Khung bao bọc bên ngoài (Đã thu hẹp chiều rộng để cân đối hơn) */
.custom-search-wrapper {
	width: 300px;
	margin: 0 auto;
	box-sizing: border-box;
}

.custom-search-form {
	width: 100%;
}

/* Khung viền dạng viên thuốc - Đã làm mỏng đi rất nhiều */
.search-input-group {
	display: flex;
	align-items: center;
	background-color: #f4f7f9;
	border: 1px solid #dce2e6;
	border-radius: 50px;
	padding: 3px 4px 3px 14px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hiệu ứng khi nhấp chuột vào ô tìm kiếm */
.search-input-group:focus-within {
	border-color: var(--color-teal);
	background: var(--color-white);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Icon kính lúp nhỏ gọn, mảnh */
.search-icon-holder {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	color: #8a99ad;
	font-size: 13px; /* Thu nhỏ cỡ icon */
	flex-shrink: 0;
}

.search-input-group:focus-within .search-icon-holder {
	color: var(--color-teal);
}

/* Ô nhập liệu chữ nhỏ gọn thanh lịch */
.search-input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 6px 0 !important;
	font-size: 13.5px;
	color: #334155;
	min-width: 0;
}

.search-input::placeholder {
	color: #94a3b8;
}

/* Nút Tìm Kiếm nhỏ gọn ôm vừa vặn chiều cao của khung */
.search-btn {
	font-family: 'Inter 24';
	background: var(--color-teal);
	color: var(--color-white);
	border: none;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
	margin-left: 6px;
	margin-right: 0;
}

.search-btn:hover {
	background: #0056b3;
}

.search-btn:active {
	transform: scale(0.97);
}

/* --- TƯƠNG THÍCH MÀN HÌNH DI ĐỘNG (RESPONSIVE) --- */
@media (max-width: 480px) {
	.search-input-group {
		padding: 2px 3px 2px 10px;
	}

	.search-icon-holder {
		margin-right: 6px;
		font-size: 12px;
	}

	.search-input {
		font-size: 12.5px;
		padding: 5px 0 !important;
	}

	.search-btn {
		padding: 5px 14px;
		font-size: 12px;
	}
}

/* Container chính chứa các nút */
.hotline-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	width: 100%;
}

/* Định dạng chung cho từng nút */
.hotline-box {
	display: flex;
	align-items: center;
	background: var(--color-white);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 10px 10px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex: 1;
	min-width: 250px;
	max-width: 320px;
	box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Hiệu ứng khi rê chuột vào nút */
.hotline-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Khung chứa Icon */
.hotline-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

/* Cài đặt kích thước cho Icon dạng Font Awesome */
.hotline-icon i {
	font-size: 16px; 
}

/* Hiệu ứng zoom nhẹ icon khi hover nút */
.hotline-box:hover .hotline-icon {
	transform: scale(1.05);
}

/* Màu sắc phiên bản Xanh (Tuyển sinh) */
.hotline-blue .hotline-icon {
	background-color: #eff6ff;
	color: var(--color-teal);
}
.hotline-blue:hover {
	background-color: #f8fafc;
	border-color: #bfdbfe;
}

/* Màu sắc phiên bản Tím (Doanh nghiệp) */
.hotline-purple .hotline-icon {
	background-color: #f5f3ff;
	color: var(--color-indigo);
}
.hotline-purple:hover {
	background-color: #f8fafc;
	border-color: #ddd6fe;
}

/* Phần thông tin chữ */
.hotline-info {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.hotline-title {
	font-family: 'Inter 24';
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 2px;
}

.hotline-num {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-black);
	letter-spacing: 0.2px;
}

/* Hỗ trợ hiển thị trên thiết bị di động */
@media (max-width: 576px) {
	.hotline-container {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
	.hotline-box {
		width: 100%;
		max-width: 100%;
		padding: 14px 20px;
	}
}

/* CSS Giao diện thanh tìm kiếm và Dropdown kết quả */
.custom-search-wrapper {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.custom-search-form {
	width: 100%;
}

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

/* Dropdown chứa kết quả tìm kiếm */
.search-results-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-white);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 320px;
	overflow-y: auto;
	z-index: 9999;
	margin-top: 8px;
	border: 1px solid #f0f0f0;
	display: none;
}

/* Từng dòng kết quả */
.search-result-item {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	border-bottom: 1px solid #f7f7f7;
	text-decoration: none;
	color: #333333;
	transition: background 0.2s ease;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background-color: #f9f9f9;
}

/* Hình ảnh thu nhỏ của khóa học / bài viết */
.search-result-img {
	width: 70px;
	height: 50px;
	object-fit: cover;
	border-radius: 8px;
	margin-right: 12px;
	flex-shrink: 0;
	background-color: #f0f0f0;
}

/* Phần thông tin chi tiết */
.search-result-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Tiêu đề */
.search-result-title {
	color: var(--color-black);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nhãn phân loại (Khóa học hoặc Bài viết) */
.result-badge {
	font-family: 'Inter 24';
	align-self: flex-start;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
}

.badge-course {
	background: var(--color-teal);
	color: var(--color-white);
	border: 1px solid var(--color-teal);
}

.badge-post {
	background: var(--color-indigo);
	color: var(--color-white);
	border: 1px solid var(--color-indigo);
}

/* Thông báo không tìm thấy */
.search-no-result {
	padding: 15px;
	text-align: center;
	color: #8c8c8c;
	font-size: 13px;
}

/* Tùy chỉnh thanh cuộn của dropdown */
.search-results-dropdown::-webkit-scrollbar {
	width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 12px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
	background: var(--color-silver-blue);
	border-radius: 12px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
	background: var(--color-indigo);
}