.tpcc-events-shell,
.tpcc-events-list-wrap {
	max-width: 1280px;
	margin: 0 auto;
}

.tpcc-events-filter {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid #ddd;
	background: #fff;
	min-height: 64px;
	margin: 0 0 34px;
}

.tpcc-events-search {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 220px;
}

.tpcc-events-search input {
	width: 100%;
	border: 0;
	box-shadow: none;
	padding: 0 18px 0 42px;
	font-size: 15px;
	background: transparent;
}

.tpcc-events-search input:focus,
.tpcc-events-category:focus {
	outline: 2px solid #0b8f70;
	outline-offset: -2px;
}

.tpcc-events-search-icon {
	position: absolute;
	left: 17px;
	width: 14px;
	height: 14px;
	border: 2px solid #6d7280;
	border-radius: 50%;
}

.tpcc-events-search-icon:after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: -5px;
	width: 7px;
	height: 2px;
	background: #6d7280;
	transform: rotate(45deg);
	transform-origin: center;
}

.tpcc-events-category {
	border: 0;
	border-left: 1px solid #e4e4e4;
	min-width: 170px;
	padding: 0 14px;
	background: #fff;
	color: #1f2937;
}

.tpcc-events-submit {
	align-self: center;
	margin: 0 22px;
	padding: 13px 22px;
	border: 0;
	border-radius: 4px;
	background: #009c78;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.tpcc-events-submit:hover,
.tpcc-events-submit:focus {
	background: #057f65;
	color: #fff;
}

.tpcc-events-view-tabs {
	display: flex;
	align-items: stretch;
}

.tpcc-events-view-tabs a {
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-left: 1px solid #e4e4e4;
	color: #111827;
	text-decoration: none;
	position: relative;
}

.tpcc-events-view-tabs a.is-active:after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 2px;
	background: #111827;
}

.tpcc-events-datebar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 26px;
	color: #4b5563;
}

.tpcc-events-arrow {
	font-size: 36px;
	line-height: 1;
	color: #111827;
	text-decoration: none;
	width: 24px;
	text-align: center;
}

.tpcc-events-today {
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	padding: 8px 14px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
}

.tpcc-events-current-date {
	display: inline-flex;
	align-items: center;
	font-size: 28px;
	line-height: 1;
	color: #4b5563;
}

.tpcc-events-date-input {
	width: 150px;
	min-height: 38px;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font-size: 14px;
	padding: 7px 9px;
}

.tpcc-events-date-input:focus {
	outline: 2px solid #0b8f70;
	outline-offset: 2px;
}

.tpcc-events-month-heading {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 20px;
	margin: 0 0 32px;
	color: #111827;
}

.tpcc-events-month-heading:after {
	content: "";
	height: 1px;
	background: #d7d7d7;
}

.tpcc-events-empty {
	padding: 30px 0;
	font-size: 16px;
}

.tpcc-events-list {
	display: flex;
	flex-direction: column;
	gap: 46px;
}

.tpcc-event-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) minmax(160px, 250px);
	gap: 40px;
	align-items: start;
}

.tpcc-event-date {
	text-align: center;
	text-transform: uppercase;
	color: #0f172a;
	line-height: 1.1;
}

.tpcc-event-date span {
	display: block;
	font-size: 12px;
	margin-bottom: 3px;
}

.tpcc-event-date strong {
	display: block;
	font-size: 25px;
}

.tpcc-event-time {
	font-size: 14px;
	margin: 0 0 12px;
	color: #111827;
}

.tpcc-event-title {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0;
}

.tpcc-event-title a {
	color: #06122a;
	text-decoration: none;
}

.tpcc-event-title a:hover,
.tpcc-event-title a:focus {
	text-decoration: underline;
}

.tpcc-event-venue {
	font-weight: 700;
	font-size: 14px;
	margin: -6px 0 18px;
}

.tpcc-event-description {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
	color: #000;
}

.tpcc-event-cost {
	font-size: 13px;
	color: #111827;
}

.tpcc-event-image {
	display: block;
	justify-self: start;
	width: 100%;
	max-width: 250px;
	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.18);
	background: #fff;
}

.tpcc-event-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.tpcc-events-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0;
}

.tpcc-events-pagination-top {
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e7eb;
}

.tpcc-events-pagination-bottom {
	margin: 38px 0 0;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.tpcc-events-pagination-summary {
	color: #4b5563;
	font-size: 14px;
}

.tpcc-events-pagination-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.tpcc-events-page-link,
.tpcc-events-page-gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}

.tpcc-events-page-link:hover,
.tpcc-events-page-link:focus {
	border-color: #111827;
	color: #111827;
	text-decoration: none;
}

.tpcc-events-page-link.is-current {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.tpcc-events-page-gap {
	border-color: transparent;
	background: transparent;
	color: #6b7280;
	padding: 0 4px;
}

.tpcc-event-time-range {
	display: inline-block;
	color: #374151;
	font-size: 14px;
	line-height: 1.6;
}

.tpcc-upcoming-events {
	max-width: 1280px;
	margin: 0 auto;
}

.tpcc-upcoming-events-header {
	margin: 0 0 76px;
}

.tpcc-upcoming-events-header h2 {
	margin: 0;
	color: #1f2937;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: 0;
}

.tpcc-upcoming-events-header:after {
	content: "";
	display: block;
	width: 78px;
	height: 3px;
	margin-top: 56px;
	background: #009c78;
}

.tpcc-upcoming-grid {
	display: grid;
	grid-template-columns: repeat(var(--tpcc-upcoming-columns, 3), minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 60px;
	align-items: stretch;
}

.tpcc-upcoming-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #d8dde3;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.tpcc-upcoming-card-image {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
}

.tpcc-upcoming-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpcc-upcoming-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 20px 22px;
}

.tpcc-upcoming-card-title {
	margin: 0 0 22px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.tpcc-upcoming-card-title a {
	color: #172033;
	text-decoration: none;
}

.tpcc-upcoming-card-title a:hover,
.tpcc-upcoming-card-title a:focus {
	text-decoration: underline;
}

.tpcc-upcoming-card-date {
	margin: 0 0 14px;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.5;
}

.tpcc-upcoming-card-terms {
	margin: 0 0 14px;
}

.tpcc-upcoming-card-terms span {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 28px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #009c78;
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
}

.tpcc-upcoming-card-excerpt {
	margin: 0;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.9;
}

@media (max-width: 900px) {
	.tpcc-events-filter {
		flex-wrap: wrap;
	}

	.tpcc-events-search {
		flex-basis: 100%;
		border-bottom: 1px solid #e4e4e4;
		min-height: 58px;
	}

	.tpcc-events-category {
		flex: 1 1 180px;
		border-left: 0;
		min-height: 50px;
	}

	.tpcc-events-submit {
		margin: 8px;
	}

	.tpcc-events-view-tabs {
		margin-left: auto;
	}

	.tpcc-event-card {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 22px;
	}

	.tpcc-event-image {
		grid-column: 2;
		max-width: 220px;
	}

	.tpcc-upcoming-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (max-width: 560px) {
	.tpcc-events-datebar {
		flex-wrap: wrap;
		gap: 12px;
	}

	.tpcc-events-current-date {
		font-size: 22px;
	}

	.tpcc-events-date-input {
		width: 100%;
		max-width: 180px;
	}

	.tpcc-events-pagination {
		align-items: flex-start;
		flex-direction: column;
	}

	.tpcc-events-list {
		gap: 34px;
	}

	.tpcc-event-card {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 16px;
	}

	.tpcc-event-title {
		font-size: 20px;
	}

	.tpcc-upcoming-events-header {
		margin-bottom: 36px;
	}

	.tpcc-upcoming-events-header h2 {
		font-size: 32px;
	}

	.tpcc-upcoming-events-header:after {
		margin-top: 28px;
	}

	.tpcc-upcoming-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tpcc-upcoming-card-title {
		font-size: 20px;
	}
}
