.section {
	display: grid;
	gap: 1rem;

	@include respond(desktop-sm) {
		gap: 1.25rem;
	}
}

.heroCard {
	display: grid;
	gap: 1rem;
	padding: 1.15rem;
	border-radius: var(--radius-3xl);
	background: linear-gradient(135deg, var(--surface-panel), var(--surface-panel-strong));
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-soft);

	@include respond(wide) {
		grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.95fr);
		align-items: center;
		padding: 1.35rem;
	}
}

.heroCopy {
	display: grid;
	gap: 0.55rem;

	h1 {
		font-size: clamp(1.8rem, 1.45rem + 1.1vw, 2.8rem);
		line-height: 1;
		letter-spacing: -0.04em;
	}

	p:last-child {
		color: var(--text-muted);
		font-size: 0.96rem;
		max-width: 52ch;
	}
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	color: var(--text-muted);
}

.statGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;

	@media (min-width: 520px) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	@include respond(wide) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.statCard {
	display: grid;
	gap: 0.2rem;
	padding: 0.95rem;
	border-radius: var(--radius-lg);
	background: var(--surface-soft);
	border: 1px solid var(--border-soft);

	strong {
		font-size: 1.25rem;
		line-height: 1;
	}

	span {
		font-size: 0.84rem;
		color: var(--text-muted);
	}
}

.groupList {
	display: grid;
	gap: 1rem;
}

.infoCard {
	padding: 1rem 1.1rem;
	border-radius: 1.1rem;
	background: var(--surface-panel);
	border: 1px solid var(--border-soft);
	color: var(--text-muted);
	box-shadow: var(--shadow-soft);
}

.group {
	display: grid;
	gap: 0.85rem;
}

.groupHeader {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;

	h2 {
		font-size: 1.2rem;
		line-height: 1.1;
		letter-spacing: -0.03em;
	}

	p {
		margin-top: 0.2rem;
		font-size: 0.92rem;
		color: var(--text-muted);
	}
}

.groupCount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.7rem;
	border-radius: var(--radius-full);
	background: var(--surface-info-emphasis);
	color: var(--text-info-strong);
	font-weight: 600;
	font-size: 0.88rem;
}

.cardGrid {
	display: grid;
	gap: 0.85rem;

	@media (min-width: 820px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.assignmentCard {
	display: grid;
	gap: 0.9rem;
	padding: 1rem;
	border-radius: var(--radius-2xl);
	background: var(--surface-panel);
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-soft);
}

.cardTop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.statusChip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem 0.68rem;
	border-radius: var(--radius-full);
	font-size: 0.76rem;
	font-weight: 600;
	white-space: nowrap;
}

.blue {
	background: var(--surface-info-emphasis);
	color: var(--text-info-strong);
}

.yellow {
	background: var(--surface-warning-emphasis);
	color: var(--text-warning-strong);
}

.teal {
	background: var(--surface-success-emphasis);
	color: var(--text-success-strong);
}

.progressText {
	font-size: 0.82rem;
	color: var(--text-muted);
	white-space: nowrap;
}

.cardBody {
	display: grid;
	gap: 0.28rem;

	h3 {
		font-size: 1rem;
		font-weight: 500;
	}

	p {
		font-size: 0.92rem;
		color: var(--text-muted);
	}

	small {
		font-size: 0.82rem;
		color: var(--text-muted);
	}
}

.cardActions {
	display: grid;
	gap: 0.65rem;

	@media (min-width: 520px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.primaryAction,
.secondaryAction {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1rem;
	border-radius: var(--radius-full);
	font-weight: 500;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;

	&:hover {
		text-decoration: none;
		transform: translateY(-1px);
	}
}

.primaryAction {
	background: linear-gradient(135deg, var(--action-primary-start), var(--action-primary-end));
	color: var(--action-primary-text);
	box-shadow: var(--action-primary-shadow);
}

.secondaryAction {
	background: var(--surface-soft);
	color: var(--text);
	border: 1px solid var(--border-soft);
}
