/* ===========================
   Certificate HL.2 Detail Page
   Same style as search page
   =========================== */

/* Scope wrapper - same as search */
.cert-hl2-detail {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 15px 40px;
	font-family: 'Sarabun', sans-serif;
	color: #334155;
}

/* Page Header - same as search */
.cert-hl2-detail .page-header {
	border-bottom: none !important;
	margin: 40px 0 30px !important;
	text-align: center;
	padding: 0 !important;
}

.cert-hl2-detail .page-header h2 {
	color: #166534 !important;
	font-weight: 600 !important;
	margin-top: 0 !important;
	font-size: 28px !important;
	border: none !important;
}

.cert-hl2-detail .page-header h2 i {
	color: #22c55e;
	margin-right: 10px;
}

/* Certificate Card */
.cert-hl2-detail .cert-card {
	background: #fff;
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

/* Card Header */
.cert-hl2-detail .cert-card-header {
	background: #f0fdf4;
	text-align: center;
	padding: 30px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.cert-hl2-detail .cert-card-header i.fa-certificate {
	font-size: 32px;
	color: #16a34a;
	margin-bottom: 10px;
	display: block;
}

.cert-hl2-detail .cert-card-header .cert-org-name {
	font-size: 18px;
	font-weight: 700;
	color: #166534;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.cert-hl2-detail .cert-card-header .cert-type-name {
	font-size: 15px;
	color: #64748b;
	margin-top: 5px;
	letter-spacing: 0.5px;
}

/* Card Body */
.cert-hl2-detail .cert-card-body {
	padding: 25px 30px;
}

.cert-hl2-detail .cert-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px dotted #e2e8f0;
}

.cert-hl2-detail .cert-row:last-child {
	border-bottom: none;
}

.cert-hl2-detail .cert-label {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cert-hl2-detail .cert-value {
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
	text-align: right;
}

.cert-hl2-detail .cert-value-highlight {
	font-family: 'Consolas', monospace;
	font-size: 22px;
	color: #16a34a;
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Sections */
.cert-hl2-detail .cert-section {
	border-top: 1px solid #e2e8f0;
	padding: 20px 30px;
}

.cert-hl2-detail .cert-section-title {
	font-size: 14px;
	font-weight: 700;
	color: #16a34a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.cert-hl2-detail .cert-section-title i {
	margin-right: 6px;
}

.cert-hl2-detail .cert-section-sub {
	font-size: 15px;
	color: #64748b;
	font-weight: 500;
}

.cert-hl2-detail .cert-section-value {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin-top: 5px;
}

/* Detail Rows (sub-info within section) */
.cert-hl2-detail .cert-detail-rows {
	margin-top: 15px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 12px;
}

.cert-hl2-detail .cert-detail-row {
	display: flex;
	padding: 8px 0;
	font-size: 15px;
}

.cert-hl2-detail .cert-detail-label {
	min-width: 160px;
	font-weight: 600;
	color: #64748b;
}

.cert-hl2-detail .cert-detail-value {
	flex: 1;
	color: #334155;
	font-weight: 500;
}

/* Back Button - same style as search btn-view */
.cert-hl2-detail .btn-back {
	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-detail .btn-back:hover {
	background: #16a34a;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
	.cert-hl2-detail .cert-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.cert-hl2-detail .cert-value {
		text-align: left;
	}

	.cert-hl2-detail .cert-card-body,
	.cert-hl2-detail .cert-section {
		padding-left: 15px;
		padding-right: 15px;
	}

	.cert-hl2-detail .cert-detail-row {
		flex-direction: column;
		gap: 2px;
	}

	.cert-hl2-detail .cert-detail-label {
		min-width: auto;
	}
}
