/* ===========================
   Certificate HL.2 Search Page
   Copy from mockup - minimal override
   =========================== */

/* Scope wrapper */
.cert-hl2-search {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 15px 40px;
	font-family: 'Sarabun', sans-serif;
	color: #334155;
}

/* Page Header */
.cert-hl2-search .page-header {
	border-bottom: none !important;
	margin: 40px 0 30px !important;
	text-align: center;
	padding: 0 !important;
}

.cert-hl2-search .page-header h2 {
	color: #166534 !important;
	font-weight: 600 !important;
	margin-top: 0 !important;
	font-size: 28px !important;
	border: none !important;
}

.cert-hl2-search .page-header h2 i {
	color: #22c55e;
	margin-right: 10px;
}

.cert-hl2-search .page-header p {
	color: #64748b;
	font-size: 16px;
	margin-top: 8px;
}

/* Modern Search Box */
.cert-hl2-search .search-wrapper {
	background: #fff;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	margin-bottom: 25px;
}

.cert-hl2-search .search-box .input-group {
	width: 100%;
}

.cert-hl2-search .search-box .form-control {
	height: 54px !important;
	font-size: 16px !important;
	border: 2px solid #e2e8f0 !important;
	border-right: none !important;
	border-radius: 8px 0 0 8px !important;
	box-shadow: none !important;
	padding-left: 20px;
}

.cert-hl2-search .search-box .form-control:focus {
	border-color: #22c55e !important;
	box-shadow: inset 0 0 0 1px #22c55e !important;
}

.cert-hl2-search .search-box .btn-search {
	height: 54px !important;
	padding: 0 30px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	background-color: #16a34a !important;
	border: 2px solid #16a34a !important;
	color: #fff !important;
	border-radius: 0 8px 8px 0 !important;
}

.cert-hl2-search .search-box .btn-search:hover {
	background-color: #15803d !important;
	border-color: #15803d !important;
}

.cert-hl2-search .search-hint {
	display: block;
	margin-top: 12px;
	color: #94a3b8;
	font-size: 13.5px;
}

/* Results Info */
.cert-hl2-search .results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 0 5px;
}

.cert-hl2-search .results-count {
	font-size: 16px;
	color: #475569;
}

.cert-hl2-search .results-count strong {
	color: #16a34a;
	font-size: 18px;
	font-weight: 600;
	margin: 0 4px;
}

.cert-hl2-search a.btn-clear {
	color: #64748b;
	background: transparent;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 15px;
	font-size: 13.5px;
	text-decoration: none;
}

.cert-hl2-search a.btn-clear:hover {
	background: #f1f5f9;
	color: #ef4444;
	border-color: #f1f5f9;
	text-decoration: none;
}

/* Modern Certificate Card */
.cert-hl2-search .cert-card {
	background: #fff;
	border: none;
	border-radius: 12px;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.25s ease;
	display: flex;
	padding: 20px;
	align-items: center;
	gap: 20px;
}

.cert-hl2-search .cert-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.cert-hl2-search .cert-number-badge {
	background: #f0fdf4;
	color: #16a34a;
	font-weight: 700;
	font-size: 16px;
	width: 44px;
	height: 44px;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	flex-shrink: 0;
}

.cert-hl2-search .cert-info {
	flex: 1;
	min-width: 0;
}

.cert-hl2-search .cert-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.cert-hl2-search h3.cert-title {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	font-family: 'Consolas', monospace !important;
	margin: 0 !important;
	padding: 0 !important;
	letter-spacing: 0.5px;
	border: none !important;
	background: none !important;
	line-height: 1.3 !important;
}

.cert-hl2-search .cert-company {
	font-size: 16px;
	font-weight: 500;
	color: #334155;
	margin-bottom: 8px;
	display: block;
}

.cert-hl2-search .cert-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #64748b;
	font-size: 14px;
	flex-wrap: wrap;
}

.cert-hl2-search .cert-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cert-hl2-search .cert-meta i {
	color: #94a3b8;
}

.cert-hl2-search .cert-action {
	flex-shrink: 0;
}

.cert-hl2-search a.btn-view {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #f0fdf4;
	color: #16a34a;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.cert-hl2-search a.btn-view:hover {
	background: #16a34a;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

/* Empty / Initial State */
.cert-hl2-search .cert-empty-state {
	text-align: center;
	padding: 50px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cert-hl2-search .cert-empty-state i.fa {
	font-size: 48px;
	opacity: 0.3;
	display: block;
	margin-bottom: 15px;
}

.cert-hl2-search .cert-empty-state h4 {
	color: #475569;
	font-weight: 600;
}

.cert-hl2-search .cert-empty-state p {
	color: #999;
	margin-top: 8px;
}

.cert-hl2-search .cert-initial-state {
	text-align: center;
	padding: 50px 20px;
	color: #999;
}

.cert-hl2-search .cert-initial-state i.fa {
	font-size: 64px;
	opacity: 0.2;
	display: block;
	margin-bottom: 20px;
}

.cert-hl2-search .cert-initial-state h4 {
	color: #666;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
	.cert-hl2-search .cert-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 20px 15px;
	}

	.cert-hl2-search .cert-action {
		width: 100%;
	}

	.cert-hl2-search a.btn-view {
		width: 100%;
		justify-content: center;
	}

	.cert-hl2-search .cert-meta {
		gap: 10px;
		flex-direction: column;
		align-items: flex-start;
	}
}
