/**
 * GNALC-New Theme Styles
 * Good Neighbours Active Living Centre - gnalc.ca
 *
 * Ported from the client-supplied prototype (https://gnalc.vercel.app),
 * mirrored at ../repo-docs/themes/client-assets/GNALC-New/prototype/.
 * Values below are extracted from that prototype's custom.css - do not
 * approximate or "improve" colors/sizes without checking the source.
 *
 * Load order (set in header.cfm): bootstrap -> main.css -> nav-style.css ->
 * theme.css -> custom.css. This theme uses the corrected order, so matching
 * platform specificity is enough to override main.css - avoid !important.
 */

/* ========================================
   CSS Custom Properties (Theme Variables)
   ======================================== */
:root {
	/* Brand palette (exact prototype values) */
	--theme-primary: #004e6d;      /* deep petrol blue */
	--theme-secondary: #30b34b;    /* green */
	--theme-accent: #e74c3c;       /* red accent */
	--theme-dark: #2c3e50;         /* headings/body text, footer bg */
	--theme-gray: #6c757d;         /* secondary text */
	--theme-light: #f8f9fa;        /* alternating section bg */
	--theme-white: #ffffff;
	--theme-gradient: linear-gradient(135deg, #004e6d 0%, #3498db 100%);

	/* Typography (prototype loads Lato + Noto Sans; Poppins link was unused) */
	--theme-font-heading: "Lato", sans-serif;
	--theme-font-body: "Noto Sans", sans-serif;
	--theme-font-accent: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

	/* Prototype-named aliases - page content adapted from the prototype and
	   the ported blocks below both use these names. Keep them in sync with
	   the theme-* values above. */
	--primary-color: var(--theme-primary);
	--secondary-color: var(--theme-secondary);
	--accent-color: var(--theme-accent);
	--text-dark: var(--theme-dark);
	--text-light: var(--theme-gray);
	--bg-light: var(--theme-light);
	--gradient: var(--theme-gradient);
	--title-font: var(--theme-font-heading);
	--title-font-secondary: var(--theme-font-accent);
	--text-font: var(--theme-font-body);

	/* Platform channel tokens - core main.css consumes these via var() for
	   channel surfaces and per-channel title bars (see main.css ~line 1439+).
	   Setting them here skins module screens to the brand automatically. */
	--cs-surface: #ffffff;
	--cs-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--cs-radius: 12px;
	--cs-channel-padding: 1.5rem;
	--cs-channel-margin: 2rem auto;
	--cs-channel-width: 90%;
	--event-title-background: #004e6d;
	--event-title-color: #ffffff;
	--donation-form-background: #004e6d;
	--donation-form-title-color: #ffffff;
	--doc-search-background: #004e6d;
	--doc-search-title-color: #ffffff;
	--member-register-background: #004e6d;
	--member-register-title-color: #ffffff;
	--org-member-register-background: #004e6d;
	--org-member-register-title-color: #ffffff;

	/* Transitions */
	--theme-transition: 0.3s ease;
}

/* ========================================
   Base Styles
   ======================================== */
body {
	font-family: var(--theme-font-body);
	line-height: 1.6;
	color: var(--theme-dark);
	background: var(--theme-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--theme-font-heading);
	font-weight: 700;
	line-height: 1.3;
	color: var(--theme-dark);
}

/* Content-area headings - 0,1,1 to win the .main-content h1/h2/h3 defaults
   in core main.css (heading-specificity trap). */
.main-content h1 { font-family: var(--theme-font-heading); font-weight: 700; color: var(--theme-dark); }
.main-content h2 { font-family: var(--theme-font-heading); font-weight: 700; color: var(--theme-primary); }
.main-content h3 { font-family: var(--theme-font-heading); font-weight: 600; color: var(--theme-primary); }

a {
	color: var(--theme-primary);
	transition: color var(--theme-transition);
}

a:hover {
	color: var(--theme-secondary);
}

/* Pull-quote used across prototype pages */
.quotation,
.main-content .quotation {
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.6;
	border-left: 4px solid var(--primary-color);
	margin: 1rem 0;
	color: var(--text-dark);
	background: rgba(0, 78, 109, 0.05);
	padding: 1rem 1.5rem;
}

/* ========================================
   Buttons (prototype pill buttons)
   ======================================== */
.btn-custom {
	padding: 15px 35px;
	border-radius: 50px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	border: none;
	position: relative;
	overflow: hidden;
	margin: 0.5rem;
	text-decoration: none;
	display: inline-block;
}

.btn-primary-custom {
	background: var(--secondary-color);
	color: white;
}

.btn-primary-custom:hover {
	background: var(--primary-color);
	color: white;
}

.btn-secondary-custom {
	background: white;
	color: var(--primary-color);
}

.btn-custom:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: white;
	text-decoration: none;
}

.btn-secondary-custom:hover {
	background: var(--primary-color);
	color: white;
}

/* Standard reusable buttons (THEME_BUILD_GUIDE classes) */
.btn-outline-white {
	display: inline-block;
	padding: 12px 30px;
	border: 2px solid #ffffff;
	border-radius: 50px;
	color: #ffffff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-outline-white:hover {
	background: #ffffff;
	color: var(--theme-primary);
}

.btn-outline-green,
.main-content .btn-outline-green {
	display: inline-block;
	padding: 10px 26px;
	border: 2px solid var(--theme-secondary);
	border-radius: 50px;
	color: var(--theme-secondary);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-outline-green:hover,
.main-content .btn-outline-green:hover {
	background: var(--theme-secondary);
	color: #ffffff;
}

/* ========================================
   Admin Bar (WordPress-style)
   ======================================== */
#admin-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	background-color: #1d2327;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 13px;
	line-height: 32px;
}

.admin-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding: 0 8px;
}

.admin-bar-left,
.admin-bar-right {
	display: flex;
	align-items: center;
	height: 100%;
}

.admin-bar-item {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 8px;
	color: #c3c4c7;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-bar-item:hover {
	background-color: #2c3338;
	color: #72aee6;
}

.admin-bar-item i {
	font-size: 14px;
}

.admin-bar-label {
	margin-left: 6px;
}

.admin-bar-logo {
	background-color: #2271b1;
	padding: 0 10px;
}

.admin-bar-logo:hover {
	background-color: #135e96;
	color: #fff;
}

.admin-bar-logout:hover {
	background-color: #b32d2e;
	color: #fff;
}

/* Push page content down when admin bar is active */
body.admin-bar-active {
	padding-top: 32px;
}

/* Sticky header must clear the admin bar */
body.admin-bar-active .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	#admin-bar {
		height: 46px;
		line-height: 46px;
	}

	.admin-bar-item {
		height: 46px;
		padding: 0 10px;
	}

	.admin-bar-item i {
		font-size: 18px;
	}

	.admin-bar-label {
		display: none;
	}

	body.admin-bar-active {
		padding-top: 46px;
	}

	body.admin-bar-active .site-header {
		top: 46px;
	}
}

@media (max-width: 480px) {
	.admin-bar-item {
		padding: 0 6px;
	}
}

/* ========================================
   Site Header (sticky, white w/ blur)
   ======================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1050;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.4s ease-out, background 0.4s ease-out;
}

.site-header.is-stuck {
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* Vertical breathing room above/below the logo and nav (the prototype gets
   this from its navbar padding). Constant - no shrink on scroll, to avoid
   jitter (the prototype deliberately removed sticky padding changes). */
.site-header .navbar {
	padding: 1rem 0;
}

.site-logo img {
	max-height: 44px;
	width: auto;
	transition: transform 0.3s ease;
}

.site-logo a:hover img {
	transform: scale(1.05);
}

/* Sign Up / Log In pill buttons */
.auth-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.signup-btn,
.signin-btn {
	font-size: 0.95rem;
	padding: 0.6rem 1.25rem;
	border-radius: 2rem;
	min-width: 4rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border: 2px solid var(--theme-primary);
}

.signup-btn {
	background: var(--theme-primary);
	color: #ffffff;
}

.signin-btn {
	background: transparent;
	color: var(--theme-primary);
}

.signup-btn:hover,
.signin-btn:hover {
	background-color: var(--theme-secondary);
	border-color: var(--theme-secondary);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(48, 179, 75, 0.3);
}


/* ========================================
   Section Titles (italic accent style)
   ======================================== */
.section-title,
.main-content .section-title {
	font-size: 3rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 3rem;
	text-align: center;
	font-style: italic;
	font-family: var(--title-font-secondary);
}

.section-divider,
.main-content .section-divider {
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--primary-color), transparent);
	margin: 0 0 50px 0;
	opacity: 1;
}

.section-subtitle,
.main-content .section-subtitle {
	font-size: 1.5rem;
	color: var(--text-dark);
	font-weight: 500;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.section-title,
	.main-content .section-title {
		font-size: 2.5rem;
	}
}

/* ========================================
   Homepage Hero
   ======================================== */
.hero-section {
	background: var(--gradient);
	min-height: 95vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-content {
	position: relative;
	z-index: 2;
	color: white;
	text-align: left;
	margin: 5rem 0;
}

.hero-title,
.main-content .hero-title {
	font-family: var(--title-font);
	font-size: 3.6rem;
	font-weight: 500;
	color: #ffffff;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	animation: fadeInUp 1s ease-out;
}

.hero-subtitle,
.main-content .hero-subtitle {
	font-family: var(--title-font);
	font-size: 1.8rem;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 2.5rem;
	opacity: 0.95;
	max-width: 800px;
	text-align: left;
	animation: fadeInUp 1s ease-out 0.2s both;
}

/* Background photo behind the gradient (client-editable via the
   "Hero Background Image" section; falls back to the theme default) */
.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.hero-bg img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	opacity: 0.45;
	transform: scale(1);
	animation: zoomInBg 8s ease-out forwards;
}

@keyframes zoomInBg {
	0% { transform: scale(1); }
	100% { transform: scale(1.2); }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: 70vh;
	}

	.hero-title,
	.main-content .hero-title {
		font-size: 2.5rem;
	}

	.hero-subtitle,
	.main-content .hero-subtitle {
		font-size: 1.2rem;
	}

	.btn-custom {
		padding: 12px 25px;
		margin: 0.25rem;
	}
}

/* ========================================
   Upcoming Events (homepage carousel)
   ======================================== */
.events-section {
	padding: 100px 0;
	background: var(--bg-light);
}

.events-section .events-carousel {
	position: relative;
	margin-top: 2rem;
}

.events-section .carousel-inner {
	padding: 20px 0;
}

.events-section .event-box {
	background: white;
	padding: 2.5rem 1rem;
	text-align: left;
	transition: all 0.3s ease;
	border: none;
	margin: 0 15px;
	height: 400px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.events-section .event-box:hover {
	transform: translateY(-10px);
}

.event-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(135deg, var(--primary-color) 0%, #006080 100%);
}

.event-footer {
	margin-top: auto;
}

.event-type {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.8rem;
	padding: 0.3rem 0.8rem;
	background: rgba(0, 78, 109, 0.08);
	display: inline-block;
}

.event-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 1.5rem;
	line-height: 1.3;
	font-family: var(--title-font);
}

.events-section .event-location {
	color: var(--text-light);
	font-size: 0.8rem;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	padding: 0.5rem 0.8rem;
	background: var(--bg-light);
}

.events-section .event-location i {
	font-size: 0.9rem;
	margin-right: 0.4rem;
	color: var(--theme-primary);
}

.event-details-row {
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 1px solid #eee;
}

.event-date {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.event-date .btn {
	border: none;
	/* Transparent stated explicitly: core main.css gives bare .btn a green
	   background (#28a745) - the prototype never loaded main.css, so its
	   "Event Details" reads as a plain text link. Match that. */
	background-color: transparent;
	box-shadow: none;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1rem;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	color: var(--text-light);
	text-decoration: none;
	padding-left: 0;
}

.event-date .btn:hover,
.event-date .btn:focus {
	background-color: transparent;
	transform: translateY(-2px);
	color: var(--accent-color);
}

.event-date span {
	font-weight: 700;
	font-size: 0.8rem;
	font-style: italic;
	font-family: var(--title-font-secondary);
	color: var(--text-dark);
}

/* Carousel controls (round, outside the cards) */
.events-carousel .carousel-control-prev,
.events-carousel .carousel-control-next {
	width: 60px;
	height: 60px;
	background: #dcdcdc;
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.7;
	transition: all 0.3s ease;
}

.events-carousel .carousel-control-prev {
	left: -30px;
}

.events-carousel .carousel-control-next {
	right: -30px;
}

.events-carousel .carousel-control-prev:hover,
.events-carousel .carousel-control-next:hover {
	background: var(--secondary-color);
	opacity: 1;
	transform: translateY(-50%) scale(1.1);
}

.events-carousel .carousel-control-prev-icon,
.events-carousel .carousel-control-next-icon {
	width: 25px;
	height: 25px;
	background-size: 100%;
}

@media (max-width: 768px) {
	.events-section {
		padding: 60px 0;
	}

	.event-date {
		flex-direction: column;
		align-items: flex-start;
	}

	.event-date .btn {
		margin-bottom: 0.5rem;
	}

	.events-section .event-box {
		height: auto;
		min-height: 350px;
	}

	.events-carousel .carousel-control-prev,
	.events-carousel .carousel-control-next {
		display: none;
	}

	/* One card per slide on mobile */
	.events-carousel .carousel-item .row .col-lg-4 {
		display: none;
	}

	.events-carousel .carousel-item .row .col-lg-4:first-child {
		display: block;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (max-width: 576px) {
	.events-section .event-box {
		margin: 0 10px;
		padding: 2rem 1.5rem;
	}
}

/* ========================================
   Sponsors (tiered) + Perks row
   ======================================== */
.sponsor-section {
	padding: 100px 0 60px;
	background: #ffffff;
}

.sponsor-section .section-subtitle {
	font-weight: 700;
}

.sponsor-card {
	background: #ffffff;
	border: 1px solid #eef1f3;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sponsor-img {
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.sponsor-row .section-subtitle {
	color: var(--text-light);
}

/* Membership Perks row (kept from the live site; not in the prototype) */
.perks-section {
	padding: 20px 0 80px;
	background: #ffffff;
}

.perks-section .perks-banner img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 2rem;
}

@media (max-width: 768px) {
	.sponsor-section {
		padding: 60px 0 40px;
	}
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
	background: var(--text-dark);
	color: white;
	padding: 80px 0 30px;
	position: relative;
	margin-top: 0;
}

.footer-description {
	color: #adb5bd;
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 300px;
}

.footer-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: white;
}

.footer-title::after {
	content: "";
	display: block;
	width: 50px;
	height: 3px;
	background: var(--secondary-color);
	margin-top: 0.5rem;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 0.75rem;
}

.site-footer a {
	color: #adb5bd;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 400;
}

.site-footer a:hover {
	color: var(--secondary-color);
}

.footer-links a {
	font-size: 0.9rem;
}

.footer-links a:hover {
	padding-left: 5px;
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* The section editor often wraps content in a <p>; keep icons in a row and
   normalize any fa-2x/fa-3x size classes to fit the 45px circles. */
.social-links p {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 0;
	float: none;
}

.social-links i {
	font-size: 1.05rem;
	line-height: 1;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-links a:hover {
	background: var(--secondary-color);
	color: white;
	transform: translateY(-3px);
}

.contact-item {
	font-size: 0.9rem;
	margin-bottom: 10px;
	color: #dee2e6;
}

.footer-bottom {
	border-top: 1px solid #495057;
	padding-top: 2rem;
	margin-top: 3rem;
	text-align: center;
	color: #adb5bd;
	font-size: 0.9rem;
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
	min-height: 50vh;
}

.admin-edit-link {
	text-align: right;
}

/* ========================================
   Interior Page Hero / Page Title banner
   .page-hero  = standard reusable class (THEME_BUILD_GUIDE)
   .page-title = prototype-compatible alias (same look)
   Both break out of the .main-content container to full width.
   ======================================== */
.page-hero,
.page-title {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	height: 18rem;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-color: var(--theme-primary);
}

/* Soft blur mask sweeping in from the left (prototype treatment) */
.page-hero::after,
.page-title::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
	mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: cover;
	mask-size: cover;
	pointer-events: none;
}

.non-masked-page-title::after {
	display: none;
	content: "";
}

.page-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 30, 45, 0.35);
}

.page-hero-content,
.page-title .auto-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 30px;
}

.page-hero-title,
.main-content .page-hero-title,
.page-title .content-box h1,
.main-content .page-title .content-box h1 {
	font-family: var(--title-font);
	font-size: 2.2rem;
	font-weight: 700;
	color: white;
	margin: 0;
}

.page-hero-subtitle,
.main-content .page-hero-subtitle {
	font-family: var(--title-font);
	font-size: 1.3rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	margin: 0.5rem 0 0;
}

.hero-accent-bar {
	display: block;
	width: 60px;
	height: 4px;
	background: var(--theme-secondary);
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.page-hero,
	.page-title {
		height: 214px;
	}

	.page-hero-title,
	.main-content .page-hero-title,
	.page-title .content-box h1,
	.main-content .page-title .content-box h1 {
		font-size: 1.5rem;
	}
}

/* ========================================
   Full-Width Content Sections (standard reusable classes)
   ======================================== */
.page-section {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	padding: 60px 0;
}

.page-section-white { background: #ffffff; }
.page-section-gray { background: var(--theme-light); }

.section-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 30px;
}

.page-section-heading,
.main-content .page-section-heading {
	font-family: var(--theme-font-heading);
	font-size: 2rem;
	font-weight: 700;
	color: var(--theme-primary);
	margin-bottom: 1.5rem;
}

.content-subheading,
.main-content .content-subheading {
	font-family: var(--theme-font-heading);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--theme-primary);
	margin: 1.5rem 0 0.75rem;
}

/* Two-column text + image rows */
.content-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	margin: 2rem 0;
}

.content-col-text {
	flex: 1 1 340px;
}

.content-col-image {
	flex: 1 1 300px;
}

.content-col-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ========================================
   Prototype content patterns (used by interior
   page content adapted from the prototype)
   ======================================== */

/* Generic white content band */
.custom-section-primary {
	padding: 60px 60px;
	background-color: #ffffff;
}

.custom-section-primary h2,
.main-content .custom-section-primary h2 {
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 2rem;
	font-weight: 700;
}

.custom-section-primary p {
	font-family: var(--text-font);
	color: var(--text-dark);
	font-size: 1.2rem;
	line-height: 1.8;
	margin-bottom: 15px;
}

@media (max-width: 768px) {
	.custom-section-primary {
		padding: 20px 5px;
	}

	.custom-section-primary h2,
	.main-content .custom-section-primary h2 {
		font-size: 1.6rem;
	}
}

/* Gradient intro band (membership / programs / services heroes) */
.custom-hero,
.custom-hero-secondary {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	position: relative;
}

.custom-hero {
	padding: 3rem 2rem;
	text-align: center;
}

.custom-hero-secondary {
	margin: 0 1rem;
	text-align: center;
}

.custom-hero-intro {
	position: relative;
	z-index: 1;
}

.custom-hero-intro .intro-text {
	color: floralwhite;
	margin-bottom: 1.5rem;
	text-align: start;
}

.custom-hero-intro .highlight {
	font-weight: 700;
	font-size: 1.5rem;
	color: #ffffff;
	text-underline-offset: 4px;
}

.service-hero-image-container {
	text-align: center;
	padding: 0;
	min-height: 250px;
}

.service-hero-image-container .hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-custom-section {
	max-width: 1320px;
	margin: 0 auto 4rem auto;
}

.service-custom-section p {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--text-dark);
	margin-top: 1rem;
}

.service-custom-section li {
	font-size: 1.2rem;
	color: var(--text-dark);
}

/* Green accent divider between page bands */
.transition-banner {
	padding: 20px 0;
	height: 15rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--title-font-secondary);
	font-size: 1rem;
	font-weight: 700;
	color: var(--secondary-color);
	text-transform: uppercase;
}

.transition-banner::before,
.transition-banner::after {
	content: "";
	width: 60px;
	border-bottom: 4px solid var(--secondary-color);
	margin: 0 12px;
}

/* Cards with green-underlined titles */
.custom-card {
	transition: all 0.3s ease;
}

.custom-card h3,
.main-content .custom-card h3 {
	font-family: var(--title-font);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1.2rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--secondary-color);
}

.custom-card p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.custom-card ul {
	list-style: none;
	padding-left: 0;
}

.custom-card ul li {
	font-size: 1.05rem;
	color: var(--text-dark);
	margin-bottom: 1rem;
	padding-left: 1.8rem;
	position: relative;
}

.custom-card ul li::before {
	content: "\2022";
	color: var(--secondary-color);
	font-size: 1.5rem;
	position: absolute;
	left: 0.5rem;
	top: -0.1rem;
}

.custom-card h6,
.main-content .custom-card h6 {
	font-family: var(--title-font);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.8rem;
	margin-top: 1.5rem;
}

.custom-card strong {
	color: var(--primary-color);
	font-weight: 600;
}

/* Callout alerts */
.alert-volunteer {
	background-color: rgba(48, 179, 75, 0.1);
	border-left: 4px solid var(--secondary-color);
	border-right: 4px solid var(--secondary-color);
	text-align: center;
	color: var(--text-dark);
	font-weight: 700;
	padding: 1rem 1.2rem;
	border-radius: 4px;
}

.alert-order {
	border-left: 4px solid var(--accent-color);
	color: var(--text-dark);
	font-weight: 500;
	padding: 1rem 1.2rem;
	border-radius: 4px;
}

/* Numbered process steps */
.process-steps {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.process-steps li {
	display: flex;
	gap: 20px;
	padding: 25px;
	background: var(--bg-light);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-steps li:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 78, 109, 0.15);
}

.step-number {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: bold;
	font-family: var(--title-font);
}

.step-content strong {
	display: block;
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 1.3rem;
	margin-bottom: 8px;
}

.step-content p {
	font-size: 1.2rem;
	margin: 0;
	color: var(--text-dark);
}

/* Opportunity / photo cards */
.opportunities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.opportunity-card {
	overflow: hidden;
	transition: all 0.3s ease;
}

.opportunity-card:hover {
	border-color: var(--secondary-color);
	box-shadow: 0 10px 25px rgba(48, 179, 75, 0.15);
	transform: translateY(-5px);
}

.card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.opportunity-card:hover .card-image img {
	transform: scale(1.05);
}

.card-content {
	padding: 25px;
}

.opportunity-card h3,
.main-content .opportunity-card h3 {
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 1.4rem;
	margin-bottom: 15px;
}

.opportunity-card h3::after {
	content: "";
	display: block;
	width: 100px;
	height: 3px;
	background: linear-gradient(to right, var(--secondary-color), var(--bg-light));
	margin-top: 8px;
	border-radius: 2px;
}

.opportunity-card p {
	font-size: 0.95rem;
	color: var(--text-light);
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 768px) {
	.opportunities-grid,
	.process-steps {
		grid-template-columns: 1fr;
	}
}

/* FAQ accordion (toggled by theme.js) */
.faq-list {
	max-width: 1200px;
	margin: 30px auto 0;
}

.faq-item {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 1.2rem;
	font-weight: 600;
	padding: 20px 25px;
	background: var(--bg-light);
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.3s ease;
}

.faq-question:hover {
	background: #e8edf1;
}

.faq-toggle {
	font-size: 1.8rem;
	color: var(--secondary-color);
	font-weight: 300;
	line-height: 1;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
	transform: rotate(45deg);
}

.faq-answer {
	font-size: 1rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 20px 25px;
}

.faq-answer-content {
	font-family: var(--text-font);
	color: var(--text-dark);
	line-height: 1.7;
}

/* About page: culture cards (vision / mission / values) */
.culture-section .culture-card {
	margin-bottom: 40px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: white;
}

.culture-section .culture-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.culture-section .image-banner {
	height: 250px;
	background: linear-gradient(135deg, #004e6d 0%, #30b34b 100%);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.culture-section .image-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.culture-section .banner-icon-title {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
}

.culture-section .section-icon {
	font-size: 4rem;
	color: white;
	margin-bottom: 20px;
	opacity: 0.9;
}

.culture-section .section-title,
.main-content .culture-section .section-title {
	font-size: 2.5rem;
	font-weight: 700;
	font-style: normal;
	font-family: var(--title-font);
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin: 0;
}

.culture-section .text-content {
	padding: 40px 20px;
	background: white;
	text-align: center;
}

.culture-section .section-subtitle,
.main-content .culture-section .section-subtitle {
	font-size: 1.5rem;
	color: var(--text-dark);
	font-weight: 500;
	line-height: 1.6;
	text-align: start;
	max-width: 800px;
	margin: 0 auto;
}

.culture-section .values-content {
	padding: 60px 40px;
	background: white;
}

.culture-section .values-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.culture-section .values-list li {
	background: white;
	transition: all 0.3s ease;
	font-size: 1rem;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 350px;
}

.culture-section .values-list li:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.culture-section .value-image-placeholder {
	width: 100%;
	height: 220px;
	background: #d0d0d0 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 1.2rem;
	font-weight: 500;
	border-bottom: 1px solid #eee;
}

.culture-section .value-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.culture-section .value-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
	text-align: center;
}

.culture-section .value-description {
	color: var(--text-light);
	text-align: left;
}

@media (max-width: 768px) {
	.culture-section .image-banner {
		height: 200px;
	}

	.culture-section .section-title,
	.main-content .culture-section .section-title {
		font-size: 2rem;
	}

	.culture-section .values-list {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

/* Board / staff cards */
.board-section {
	background: var(--bg-light);
	padding: 80px 0 60px 0;
}

.board-section .section-title,
.main-content .board-section .section-title {
	font-size: 2rem;
	font-weight: 700;
	font-style: normal;
	color: var(--primary-color);
	margin: 3rem 0;
	font-family: var(--title-font);
}

.board-section .card {
	border: none;
	transition: box-shadow 0.3s, transform 0.3s;
	background: transparent;
	margin-bottom: 2rem;
}

.board-section .card:hover {
	transform: translateY(-6px) scale(1.03);
}

.board-section .card-img-top {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
	margin: 1.5rem auto 0.5rem auto;
	background: #e0e0e0;
	border: 5px solid var(--bg-light);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	display: block;
}

.board-section .card-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.3rem;
}

.board-section .card-text {
	color: var(--text-light);
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.staff-card {
	background: transparent;
	min-height: 150px;
	margin-bottom: 1rem;
	transition: box-shadow 0.2s, transform 0.2s;
	text-align: center;
}

.staff-card:hover {
	transform: translateY(-4px) scale(1.02);
}

.staff-card .fw-bold {
	color: var(--primary-color);
	font-size: 1.2rem;
}

.staff-card a {
	color: var(--secondary-color);
	text-decoration: none;
	font-size: 0.97rem;
}

.staff-card a:hover {
	text-decoration: underline;
}

.staff-card .staff-portrait {
	margin: 0 auto 0.5rem;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	background: #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	display: block;
}

@media (max-width: 768px) {
	.board-section .card-img-top {
		width: 100px;
		height: 100px;
	}
}

/* Membership info blocks */
.benefits-section .section-title,
.main-content .benefits-section .section-title {
	font-size: 2rem;
	font-weight: 700;
	font-style: italic;
	font-family: var(--title-font-secondary);
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 0.5rem;
	text-align: left;
}

.benefits-section .section-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--primary-color);
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.benefit-item {
	background: white;
	border: 1px solid #e6e9ec;
	padding: 1.5rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 160px;
}

.benefit-item::before {
	content: "\2713";
	position: absolute;
	top: -10px;
	right: -10px;
	width: 40px;
	height: 40px;
	background: var(--secondary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.2rem;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.benefit-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	border-color: var(--primary-color);
}

.benefit-item:hover::before {
	transform: scale(1);
}

.benefit-item p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-dark);
}

.benefit-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	font-family: var(--title-font);
	color: var(--primary-color);
}

.visit-info,
.volunteer-contact-info {
	background: white;
	padding: 1.5rem;
	margin-top: 2rem;
	border-left: 4px solid var(--primary-color);
}

.visit-info p,
.volunteer-contact-info p {
	margin: 0;
	font-weight: 400;
	color: var(--text-dark);
}

.volunteer-contact-info {
	border-left: none;
}

/* Policies cards */
.policy-section {
	background-color: var(--bg-light);
}

.policy-section p {
	font-size: 1.2rem;
}

.policy-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: none;
	border-radius: 0;
}

.policy-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.policy-card .card-body {
	padding: 2rem;
}

.policy-card .card-title {
	font-weight: 600;
	margin-bottom: 0.75rem;
}

/* Program category cards */
.programs-category-card {
	border-radius: 0;
	border: none;
	transition: scale 0.25s ease, box-shadow 0.25s ease;
}

.programs-category-card:hover {
	scale: 1.02;
}

.programs-category-card h3,
.main-content .programs-category-card h3 {
	font-weight: 700;
	color: var(--text-dark);
}

.program-icons {
	margin-right: 30px;
	transition: transform 0.3s ease;
	display: inline-block;
}

.program-icons:hover {
	transform: scale(1.1);
}

/* ========================================
   Platform module screens (channels)
   Selectors below target core CMS markup (appTitle/appInput classes,
   channel container IDs). Ported from the prototype, which was built
   against real platform screens - keep selector names as-is.
   ======================================== */

/* --- Login / registration / membership form containers --- */
#individualmembershipform,
#member-register,
.member-container,
#loginform,
#passwordrecovery {
	display: block;
	max-width: 820px;
	margin: 3rem auto;
	padding: 0;
}

.member-container,
.form-card,
#member-register,
#registrationform,
#loginformprimary {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 2.5rem 2.75rem;
	border: 2px solid var(--primary-color);
	margin: 0 auto;
	max-width: 820px;
}

/* Titles and instructional text */
.appTitle1 {
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-align: center;
}

.appTitle2,
.member-container .appTitle2 {
	font-family: var(--title-font);
	color: var(--primary-color);
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.appOutput,
#member-register-instructions .appOutput {
	color: var(--text-light);
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.appTitle3 {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-top: 0.6rem;
}

/* Inputs */
.appInputText,
input.appInputText,
select.appInputText,
textarea.appInputText,
#captchaCode {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid #e6e9ec;
	border-radius: 8px;
	background: #fbfbfd;
	font-size: 1rem;
	color: var(--text-dark);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none;
}

.appInputText:focus {
	outline: none;
	border-color: rgba(0, 78, 109, 0.9);
	box-shadow: 0 6px 20px rgba(0, 78, 109, 0.08);
	background: #fff;
}

.appInputText.is-invalid,
.appInputText.invalid {
	border-color: var(--accent-color);
	box-shadow: 0 6px 18px rgba(231, 76, 60, 0.08);
}

/* Buttons */
.appInputButton,
button.appInputButton,
.appBlueButton {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--text-font);
}

.appInputButton,
button.appInputButton {
	display: inline-block;
	background: var(--secondary-color);
	color: #fff;
}

.appInputButton:hover {
	background: #388e3c;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(48, 179, 75, 0.3);
}

.appBlueButton {
	background: #f5f5f5;
	color: var(--text-dark);
	border: 2px solid #e0e0e0;
}

.appBlueButton:hover {
	background: #e0e0e0;
	border-color: #ccc;
}

.existing-member {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	color: var(--text-light);
}

.existing-member a {
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: underline;
}

/* Login / registration form tables */
#logintable,
#registrationformtable,
#registrationformtableinner,
#passwordRequestFormTable {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 0.75rem;
}

#logintable td,
#registrationformtable td {
	padding: 0.25rem 0;
}

#registrationformsubmit {
	margin-top: 1.5rem;
}

/* Captcha */
.captcha-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.captcha-image {
	border: 1px solid #ddd;
	border-radius: 6px;
	height: 56px;
	width: 220px;
	object-fit: contain;
}

.captcha-row input[type="text"] {
	flex: 1 1 220px;
	min-width: 160px;
}

#recaptchadiv {
	margin: 1rem 0;
	padding: 1rem;
	background: var(--bg-light);
	border-radius: 8px;
	border: 1px solid #e6e9ec;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

#recaptchadiv table {
	margin: 0 auto;
}

#recaptchadiv td {
	text-align: center;
}

@media (max-width: 767px) {
	#individualmembershipform,
	#member-register,
	.member-container,
	#loginform,
	#passwordrecovery,
	#registrationform,
	#loginformprimary {
		margin: 1.5rem auto;
		padding: 1.5rem;
	}

	.appTitle1 {
		font-size: 1.4rem;
	}

	.captcha-image {
		width: 170px;
		height: 44px;
	}

	.appInputButton {
		width: 100%;
		padding: 0.9rem;
	}
}

/* --- Password recovery --- */
#passwordrecovery {
	max-width: 700px;
	margin: 4rem auto;
	padding: 3rem 2.5rem;
	background: var(--bg-light);
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

#passwordrecovery #passwordrecoverymessage .appOutput {
	font-size: 1rem;
	line-height: 1.6;
	background: #e1f5fe;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid #0056b3;
	display: block;
	text-align: left;
}

@media (max-width: 576px) {
	#passwordrecovery {
		padding: 2rem;
		margin: 3rem 1rem;
	}
}

/* --- Event list by category channel --- */
#eventslistcategory {
	position: relative;
	z-index: 1;
}

#eventCategoryListSearchBox {
	background: #ffffff;
	padding: 30px;
	margin-bottom: 40px;
	border: 1px solid rgba(48, 179, 75, 0.15);
}

#eventListSearchTitle {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 25px;
	font-family: var(--title-font);
}

#eventListSearch {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 15px;
	align-items: center;
}

#eventSearchTitle input[type="text"],
#eventSearchCategorySelect select {
	display: inline-block;
	width: 100%;
	height: 48px;
	padding: 10px 16px;
	font-size: 1rem;
	font-family: var(--text-font);
	line-height: 1.4;
	color: #333;
	border: 1px solid #ccc;
	background-color: #fff;
	box-sizing: border-box;
	vertical-align: middle;
	appearance: none;
	transition: all 0.3s ease;
}

#eventSearchTitle input[type="text"]:focus,
#eventSearchCategorySelect select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(48, 179, 75, 0.12);
}

#eventSearchSubmitClear {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

#eventCategoryListSearchResults {
	background: #ffffff;
	padding: 35px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(48, 179, 75, 0.15);
}

#eventListUpcomingTitle {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 3px solid var(--primary-color);
	font-family: var(--title-font);
}

#eventListDate {
	margin-bottom: 40px;
}

#eventListYear {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 20px;
	padding: 10px 0;
	border-bottom: 2px solid rgba(48, 179, 75, 0.25);
	font-family: var(--title-font);
}

#eventListItem {
	display: grid;
	grid-template-columns: 2fr auto 150px 180px;
	gap: 15px;
	align-items: center;
	padding: 20px;
	margin-bottom: 15px;
	background: linear-gradient(to right, rgba(48, 179, 75, 0.04), transparent);
	border-left: 4px solid var(--primary-color);
	transition: all 0.3s ease;
}

#eventListItem:hover {
	background: linear-gradient(to right, rgba(48, 179, 75, 0.09), rgba(48, 179, 75, 0.02));
	transform: translateX(5px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#eventListItemTitle a {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
	font-family: var(--title-font);
}

#eventListItemTitle a:hover {
	color: var(--primary-color);
}

#eventListItemRegister a {
	display: inline-block;
	padding: 8px 20px;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	font-family: var(--text-font);
	border-radius: 4px;
}

#eventListItemRegister a:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(48, 179, 75, 0.3);
}

#eventListItemDate {
	font-size: 1rem;
	color: var(--text-dark);
	font-weight: 500;
	font-family: var(--text-font);
}

#eventListItemLocation {
	font-size: 0.95rem;
	color: var(--text-light);
	display: flex;
	align-items: center;
	font-family: var(--text-font);
}

@media (max-width: 992px) {
	#eventListSearch {
		grid-template-columns: 1fr;
	}

	#eventSearchSubmitClear {
		justify-content: flex-start;
	}

	#eventListItem {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	#eventListItemRegister {
		text-align: left;
	}
}

@media (max-width: 768px) {
	#eventCategoryListSearchBox,
	#eventCategoryListSearchResults {
		padding: 20px;
	}
}

/* --- Event detail (Calendar.eventDetail) --- */
#eventdetails {
	background: white;
	margin: 0 auto 4rem;
	max-width: 1000px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #e9ecef;
}

#eventdetailstitle {
	background: linear-gradient(135deg, var(--primary-color) 0%, #006080 100%);
	padding: 2.5rem 2rem;
	text-align: center;
	position: relative;
}

#eventdetailstitle::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: var(--secondary-color);
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(48, 179, 75, 0.4);
}

#eventdetailstitle .appTitle1 {
	color: white;
	font-size: 1.85rem;
	font-weight: 600;
	margin: 0 auto;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-family: var(--title-font);
	line-height: 1.4;
	letter-spacing: 0.5px;
	max-width: 900px;
}

#eventdetailsbody {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 0;
	min-height: 400px;
}

.event-info {
	padding: 2.5rem;
	background: white;
}

.event-datetime {
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: linear-gradient(135deg, rgba(0, 78, 109, 0.05) 0%, rgba(48, 179, 75, 0.05) 100%);
	border-left: 4px solid var(--primary-color);
}

.event-datetime .appTitle3 {
	color: var(--primary-color);
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	font-family: var(--title-font);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#eventdetails .event-location {
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: var(--bg-light);
	border-left: 4px solid var(--primary-color);
}

#eventdetails .event-location .appTitle3 {
	color: var(--text-dark);
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0.25rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#eventdetails .event-location .appTitle3:first-child {
	color: var(--secondary-color);
	font-weight: 700;
	margin-right: 10px;
}

.event-description {
	color: var(--text-dark);
	line-height: 1.8;
}

.event-description .appOutput {
	font-size: 1rem;
	color: var(--text-dark);
}

.event-description p {
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.event-description img {
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	max-width: 100%;
	height: auto;
}

.event-description strong {
	color: var(--primary-color);
	font-weight: 700;
}

.event-registration {
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	border-left: 1px solid #e9ecef;
}

#eventdetailsreg {
	width: 100%;
	text-align: center;
}

#eventdetailsreg .registration {
	width: 100%;
	padding: 1.25rem 2rem;
	background: var(--secondary-color);
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 8px 20px rgba(48, 179, 75, 0.3);
}

#eventdetailsreg .registration:hover {
	background: #28a745;
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

@media (max-width: 991px) {
	#eventdetailsbody {
		grid-template-columns: 1fr;
	}

	.event-registration {
		border-left: none;
		border-top: 1px solid #e9ecef;
		padding: 2rem;
	}

	.event-info {
		padding: 2rem;
	}

	#eventdetailstitle .appTitle1 {
		font-size: 1.65rem;
	}
}

@media (max-width: 576px) {
	.event-info,
	.event-registration {
		padding: 1.25rem;
	}

	#eventdetailstitle {
		padding: 1.5rem 1rem;
	}

	#eventdetailstitle .appTitle1 {
		font-size: 1.3rem;
	}

	.event-datetime,
	#eventdetails .event-location {
		padding: 1rem;
		margin-bottom: 1.25rem;
	}
}
