/*
 * Server-rendered course list (home page and /ohs-training-courses/).
 * Filters are a plain GET form and "Load More" is a normal link, so nothing
 * here depends on JavaScript.
 */

.af-server-mode .course-filters-toggle,
.af-server-mode .selected-filters-summary {
	display: none !important;
}

/* The base stylesheet hides .course-filters on small screens until JS opens it. */
.af-server-mode .course-filters,
.af-server-mode .course-filters.is-active {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	max-height: none !important;
	transform: none !important;
	position: relative !important;
}

.af-server-mode .course-filters-form {
	margin: 0 auto;
}

.af-server-mode .course-filters__row {
	flex-wrap: wrap;
}

/*
 * Apply Filters is a <button> and Clear Filters is a link, but both carry
 * .course-filters__clear so the base stylesheet gives them the same look.
 * Here we only line up the box and undo the theme's own <button> styling.
 */
.af-server-mode .course-filters__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.af-server-mode button.course-filters__clear,
.af-server-mode button.course-filters__clear:hover,
.af-server-mode button.course-filters__clear:focus,
.af-server-mode button.course-filters__clear:active {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	font-size: 16px;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	outline-offset: 2px;
	color: var(--course-search-white, #fff);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--course-search-radius-sm, 4px);
}

.af-server-mode button.course-filters__clear:hover,
.af-server-mode button.course-filters__clear:focus {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

/*
 * Load More is a link here, but looks exactly like the button on the live
 * course pages (e.g. /ohs-health-and-safety-training-courses-canberra/...):
 * values copied from that button's computed style.
 */
.af-server-mode a.course-filter-load-more,
.af-server-mode a.course-filter-load-more:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 1rem auto 0;
	padding: 20px 30px;
	color: #fff;
	background-color: #1b6b8e;
	background-image: linear-gradient(135deg, #1b6b8e, #051e36);
	border: 1px solid #cc3366;
	border-radius: 4px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	font-family: "Lexend Mega", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: normal;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.af-server-mode a.course-filter-load-more:hover,
.af-server-mode a.course-filter-load-more:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.1);
}

/* Same circle icon as the JavaScript version, but static (nothing is loading). */
.af-server-mode a.course-filter-load-more .load-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 0.5rem;
}

.af-server-mode .course-search-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

@media (max-width: 1024px) {
	.af-server-mode .filter-group {
		flex: 1 1 100%;
		width: 100%;
	}
}
