/* Richmond Hill Curling Club: site-specific styles (added 2026-12-05) */

/* Our Sponsors logo slider: same rounded box as the front page article cards */
.mod-lgx-logoslider {
	background: #fff;
	border: 1px solid #d5dde6;
	border-radius: 6px;
	padding: 24px 16px 16px;
	margin: 0 0 32px;
	overflow: hidden;
}

/* Follow Us: Font Awesome social icons (module markup uses class "ccm-social") */
.ccm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.ccm-social a,
#sp-bottom .ccm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #035a27;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.ccm-social a:hover,
.ccm-social a:focus,
#sp-bottom .ccm-social a:hover,
#sp-bottom .ccm-social a:focus {
	background: #047a35;
	color: #fff;
}

/* Bottom modules on phones: each module in its own rounded box, like the cards */
@media (max-width: 767.98px) {
	/* "body" is needed to beat the template's own inline padding rule */
	body #sp-bottom {
		padding: 32px 0 12px;
	}

	/* Member Login first */
	#sp-bottom #sp-bottom4 {
		order: -1;
	}

	#sp-bottom .sp-module {
		background: #fff;
		border: 1px solid #d5dde6;
		border-radius: 6px;
		padding: 20px;
		margin: 0 0 20px;
		text-align: center;
	}

	/* Centred heading and its underline */
	#sp-bottom .sp-module .sp-module-title {
		font-size: 20px;
		margin: 0 auto 14px;
		padding-left: 15px;
		padding-right: 15px;
	}

	#sp-bottom .sp-module .sp-module-title:after {
		margin-left: auto;
		margin-right: auto;
	}

	#sp-bottom .custom p:last-child {
		margin-bottom: 0;
	}

	#sp-bottom .custom img {
		max-width: 160px;
		height: auto;
	}

	#sp-bottom .ccm-social {
		justify-content: center;
	}

	/* Member Login: full-width fields and button */
	#sp-bottom .input-prepend {
		display: flex;
	}

	#sp-bottom .input-prepend .add-on {
		flex: 0 0 40px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#sp-bottom .input-prepend input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		max-width: none;
	}

	#sp-bottom .login-button {
		width: 100%;
	}

	#sp-bottom #form-login-links {
		margin-bottom: 0;
	}
}

/* ==========================================================================
   Design refresh (2026-12-05): menu bar, brand colours, type, sponsors, footer
   ========================================================================== */

/* Menu bar: white with a green rule (was flat grey); logo yellow marks the current page */
body #sp-header {
	background: #fff;
	border-top: 1px solid #e3e8e5;
	border-bottom: 3px solid #035a27;
	box-shadow: none;
}

#sp-header .sp-megamenu-parent > li > a {
	transition: color .15s ease, box-shadow .15s ease;
}

#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li > a:focus {
	color: #035a27;
	box-shadow: inset 0 -4px 0 #e3e8e5;
}

#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current-item > a {
	color: #035a27;
	box-shadow: inset 0 -4px 0 #f8d000;
}

/* Body text: larger and regular weight for easier reading */
html body {
	font-size: 16px;
	font-weight: 400;
}

.ccm-cards .ccm-card .ccm-card__teaser {
	font-size: 15px;
	line-height: 1.55;
}

/* Front page cards: show the whole flyer instead of cropping it */
.ccm-cards .ccm-card .ccm-card__media {
	background: #f3f5f4;
}

.ccm-cards .ccm-card .ccm-card__media img {
	object-fit: contain;
	object-position: center;
}

.ccm-cards .ccm-card {
	transition: box-shadow .15s ease, border-color .15s ease;
}

.ccm-cards .ccm-card:hover {
	border-color: #b9c9bf;
	box-shadow: 0 6px 18px rgba(3, 90, 39, .10);
}

/* Our Sponsors: brand green heading with a yellow rule, even logo heights, green arrows */
.mod-lgx-logoslider .lgx-logo-header-title {
	color: #035a27 !important;
}

.mod-lgx-logoslider .lgx-logo-header-title:after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 2px;
	background: #f8d000;
}

.mod-lgx-logoslider img.lgx-logo {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: 90px !important;
	margin: 0 auto;
	object-fit: contain;
}

.mod-lgx-logoslider .owl-nav .owl-prev,
.mod-lgx-logoslider .owl-nav .owl-next {
	margin: 0 4px;
	background: #035a27 !important;
	border-radius: 50% !important;
}

.mod-lgx-logoslider .owl-nav .owl-prev:hover,
.mod-lgx-logoslider .owl-nav .owl-next:hover {
	background: #047a35 !important;
}

/* Footer: same font as the rest of the site, less empty space */
body #sp-bottom {
	padding: 56px 0 32px;
}

body #sp-bottom h3.sp-module-title {
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 600;
}
