/* Auto-generated test listing (state-test.php) - DMV / CDL / Motorcycle card grid. */

.dmv-test-listing {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.dmv-test-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dmv-cdl-supergroup {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: 12px;
}

.dmv-cdl-supergroup-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e3e7ed;
}

.dmv-test-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.dmv-test-section-head h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

.dmv-test-section-head h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.dmv-endorsement-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 4px;
	border-radius: 6px;
	background: #eef2f9;
	color: #2a4d8f;
	font-size: 12px;
	font-weight: 800;
	vertical-align: middle;
}

.dmv-test-section-count {
	font-size: 13px;
	font-weight: 600;
	color: #5b6472;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.dmv-test-section-intro {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
	max-width: 68ch;
}

.dmv-test-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}

@media (max-width: 900px) {
	.dmv-test-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.dmv-test-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.dmv-test-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e8ee;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dmv-test-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(20, 30, 50, 0.1);
}

.dmv-test-card.is-completed {
	border-color: #2fa563;
}

.dmv-test-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #eef1f5;
}

.dmv-test-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dmv-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 9px;
	border-radius: 100px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dmv-badge.is-free {
	background: #e5f6ec;
	color: #1a7a44;
}

.dmv-badge.is-pro {
	background: #2580ff;
	color: #fff;
}

.dmv-badge.is-pro::before {
	content: '\1F451';
	margin-right: 3px;
	font-size: 9px;
}

.dmv-test-card.is-completed .dmv-completed-check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #2fa563;
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.dmv-test-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px 14px;
}

.dmv-test-card-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.dmv-test-card-meta {
	font-size: 12.5px;
	color: #6b7280;
}

.dmv-test-card-social {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #6b7280;
}

.dmv-social-rate { color: #b8860b; font-weight: 600; }

.dmv-drill-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	background: #f4f6f9;
	border: 1px solid #e3e7ed;
	border-radius: 100px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #2a3444;
	cursor: pointer;
}

.dmv-drill-toggle svg {
	transition: transform 0.15s ease;
}

.dmv-drill-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.dmv-drill-count {
	color: #8a94a3;
	font-weight: 500;
}

.dmv-drill-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
}

.dmv-drill-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 100px;
	border: 1px solid #e3e7ed;
	background: #fff;
	font-size: 12.5px;
	color: #2a3444;
	text-decoration: none;
}

.dmv-drill-chip:hover {
	border-color: #2a4d8f;
	color: #2a4d8f;
}

.dmv-drill-chip .dmv-completed-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #2fa563;
	color: #fff;
	font-size: 10px;
}

.dmv-test-section-other {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px dashed #d7dce3;
}

/* design (mobile hub frames): cards without borders, compact. At the end of the file -
   the base .dmv-test-card is declared below the grid media block, cascade matters. */
@media (max-width: 480px) {
	.dmv-test-card { border: 0; border-radius: 0; background: none; overflow: visible; }
	.dmv-test-card:hover { transform: none; box-shadow: none; }
	.dmv-test-card-thumb { border-radius: 10px; overflow: hidden; }
	.dmv-test-card-body { padding: 8px 2px 10px; }
	.dmv-test-card-title { font-size: 13.5px; }
}
