/* Guide hub page template. Shares .card, .section-head and .button with main.css. */

.guide-hub__breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.guide-hub__breadcrumb a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.guide-hub__head {
	justify-content: center;
	text-align: center;
}

.guide-hub__head .section-head__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.guide-hub__head .section-head__subtitle {
	font-size: var(--wp--preset--font-size--medium);
}

.guide-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-hub__card {
	padding: var(--wp--preset--spacing--20);
}

.guide-hub__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	object-fit: cover;
}

.guide-hub__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	text-align: center;
}

.guide-hub__title {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-large);
}

.guide-hub__text {
	max-width: 34ch;
	margin: 0;
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

.guide-hub__button {
	margin-top: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--35);
}

.guide-hub__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40);
}

.guide-hub__cta-text {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 600px) {
	.guide-hub__cta {
		flex-direction: column;
		text-align: center;
	}
}
