/*
 * Resource page grids (WPBakery-free).
 * Enqueued by inc/resource-page.php on the Resource Page template only.
 */

.jrp-section {
	padding: 1.5rem 0 2.5rem;
}

.jrp-heading {
	color: #00305b;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

/* Replaces the old vc_separator (maroon, 3px, half width, left aligned). */
.jrp-separator {
	display: block;
	width: 50%;
	max-width: 480px;
	height: 3px;
	background: #700000;
	margin-bottom: 1.75rem;
}

/* Grids — 10px gap matches the old vc grids. */
.jrp-grid {
	display: grid;
	gap: 10px;
}

.jrp-grid--posts {
	grid-template-columns: repeat(4, 1fr);
}

.jrp-grid--trainings {
	grid-template-columns: repeat(6, 1fr);
}

.jrp-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1.5rem 0;
	color: #555;
}

/* Cards */
.jrp-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e3e6ea;
	background: #fff;
	transition: box-shadow 0.25s ease-in-out;
}

.jrp-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.jrp-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jrp-card__caption {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 12px 14px 14px;
}

.jrp-card__title {
	font-size: 16px;
	margin-bottom: 12px;
}

.jrp-card__title a {
	color: #00305b;
	text-decoration: none;
}

.jrp-card__title a:hover {
	color: #700000;
}

.jrp-card__more {
	margin-top: auto;
	color: #700000;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: color 0.3s ease-in-out;
}

.jrp-card__more:hover {
	color: #002c59;
	text-decoration: none;
}

/* Trainings get smaller tiles, so tighten the caption a touch. */
.jrp-grid--trainings .jrp-card__title {
	font-size: 14px;
	margin-bottom: 10px;
}

.jrp-grid--trainings .jrp-card__more {
	font-size: 12px;
}

/* Load more (blog grid) */
.jrp-load-more-wrap {
	text-align: center;
	margin-top: 1.5rem;
}

.jrp-load-more {
	background-color: #00305b;
	border: 0;
	color: #fff;
	padding: 10px 32px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.25s ease-in-out;
}

.jrp-load-more:hover,
.jrp-load-more:focus {
	background-color: #004a8c;
	color: #fff;
}

.jrp-load-more:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Responsive */
@media (max-width: 991.98px) {
	.jrp-grid--posts {
		grid-template-columns: repeat(2, 1fr);
	}

	.jrp-grid--trainings {
		grid-template-columns: repeat(3, 1fr);
	}

	.jrp-separator {
		width: 75%;
	}
}

@media (max-width: 575.98px) {
	.jrp-grid--posts {
		grid-template-columns: 1fr;
	}

	.jrp-grid--trainings {
		grid-template-columns: repeat(2, 1fr);
	}
}
