/*
 * "Sertifikasiya" page (page-sertifikasiya.php) — the .page-title-banner /
 * .content-anchor-section / .content-page-text / .content-section-heading /
 * .checkmark-list / .numbered-steps / .level-cards-* base rules all come
 * from the shared content-page.css (also enqueued on this template, and
 * on page-derece-detail.php — see inc/enqueue.php). This file covers only
 * what's specific to the Sertifikasiya page itself: the Resertifikasiya /
 * Yenidən sertifikasiya price tables, and the certificate database search
 * table.
 */

/* ---------------------------------------------------------------------
 * Price table (Resertifikasiya / Yenidən sertifikasiya) — a plain
 * 2-column Dərəcə/Məbləğ table, minimal styling matching the reference.
 * ------------------------------------------------------------------- */

.price-table-wrap {
	margin-top: 2em;
	border: 1px solid var(--ast-global-color-6);
	border-radius: var(--azpma-radius);
	overflow: hidden;
}

.price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.price-table th,
.price-table td {
	text-align: left;
	padding: 0.75em 1.25em;
}

.price-table thead th {
	background: var(--azpma-bg-light);
	font-weight: 600;
	color: var(--azpma-text);
}

.price-table tbody tr {
	border-top: 1px solid var(--ast-global-color-6);
}

.price-table td.price-amount {
	font-weight: 700;
	color: var(--azpma-primary);
}

/* ---------------------------------------------------------------------
 * Certificate database — search + table.
 * ------------------------------------------------------------------- */

.cert-database {
	padding: 0 1.5em 5em;
}

.cert-database-inner {
	max-width: var(--ast-normal-container-width, 1200px);
	margin: 0 auto;
}

.cert-database-heading {
	margin: 0 0 0.4em;
	font-size: clamp(1.4rem, 2.4vw, 1.8rem);
	font-weight: 700;
	color: var(--azpma-text);
}

.cert-database-intro {
	margin: 0 0 1.75em;
	font-size: 1rem;
	color: var(--azpma-text);
	opacity: 0.75;
}

.cert-search-bar {
	margin-bottom: 0.75em;
}

.cert-search-input {
	display: block;
	width: 100%;
	max-width: 460px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--azpma-text);
	background: var(--azpma-white);
	border: 1px solid rgba(26, 26, 26, 0.15);
	border-radius: var(--azpma-radius);
	padding: 0.75em 1em;
	transition: border-color 0.15s ease;
}

.cert-search-input:focus {
	outline: none;
	border-color: var(--azpma-primary);
}

.cert-result-count {
	margin: 0 0 1em;
	font-size: 0.9rem;
	color: var(--azpma-text);
	opacity: 0.6;
}

.cert-table-wrap {
	border: 1px solid var(--ast-global-color-6);
	border-radius: var(--azpma-radius);
	overflow: auto;
	max-height: 640px;
}

.cert-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.cert-table th,
.cert-table td {
	text-align: left;
	padding: 0.75em 1em;
	white-space: nowrap;
}

.cert-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--azpma-bg-light);
	font-weight: 600;
	color: var(--azpma-text);
	border-bottom: 1px solid var(--ast-global-color-6);
}

.cert-table tbody tr {
	border-bottom: 1px solid var(--ast-global-color-6);
}

.cert-table tbody tr:last-child {
	border-bottom: none;
}

.cert-table tbody tr:hover {
	background: var(--azpma-bg-light);
}

.cert-table td {
	color: var(--azpma-text);
}

.cert-table td.cert-col-level {
	font-weight: 600;
	color: var(--azpma-primary);
}

.cert-empty {
	margin: 0;
	padding: 2.5em 1em;
	text-align: center;
	font-size: 0.95rem;
	color: var(--azpma-text);
	opacity: 0.55;
}

.cert-load-more-wrap {
	margin-top: 1.5em;
	text-align: center;
}

.cert-load-more {
	font-family: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--azpma-primary);
	background: var(--azpma-white);
	border: 1px solid var(--azpma-primary);
	border-radius: var(--azpma-radius);
	padding: 0.7em 2em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cert-load-more:hover,
.cert-load-more:focus {
	background: var(--azpma-primary);
	color: var(--azpma-white);
}

@media (max-width: 600px) {
	.cert-table th,
	.cert-table td {
		padding: 0.6em 0.75em;
		font-size: 0.85rem;
	}
}
