/* =========================================================
   PRIMESOURCE — THE EVENTS CALENDAR
   Applies to:
   - Main calendar archive
   - List view
   - Month view
   - Day/today view
   - Search results
   - Brand category archives
========================================================= */


/* =========================================================
   PAGE SAFETY
========================================================= */

body.post-type-archive-tribe_events,
body.tax-tribe_events_cat {
	overflow-x: clip;
}


/* =========================================================
   REMOVE THE EVENTS CALENDAR DEFAULT OUTER SPACING
========================================================= */

body.post-type-archive-tribe_events
.tribe-events-view
.tribe-common-l-container.tribe-events-l-container,
body.tax-tribe_events_cat
.tribe-events-view
.tribe-common-l-container.tribe-events-l-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}


/* =========================================================
   HERO — FULL WIDTH AND CENTERED
========================================================= */

body.post-type-archive-tribe_events .ps-events-hero,
body.tax-tribe_events_cat .ps-events-hero {
	position: relative;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	max-width: none;
	min-height: 430px;
	margin: 0 0 0 -50vw !important;
	padding: 80px 30px;
	overflow: hidden;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(
			rgba(0, 43, 78, 0.72),
			rgba(0, 43, 78, 0.72)
		),
		url(
			'https://www.primesourcebp.com/wp-content/uploads/2026/07/Events-page-bg.avif'
		)
		center center / cover no-repeat;
}

body.post-type-archive-tribe_events .ps-events-hero__inner,
body.tax-tribe_events_cat .ps-events-hero__inner {
	width: min(780px, calc(100% - 40px));
	margin: 0 auto !important;
	text-align: center !important;
}

body.post-type-archive-tribe_events .ps-events-hero__eyebrow,
body.tax-tribe_events_cat .ps-events-hero__eyebrow {
	margin: 0 0 12px;
	color: #fff;
	font-size: 12px;
	letter-spacing: 3px;
	line-height: 1.3;
	text-align: center !important;
	text-transform: uppercase;
}

body.post-type-archive-tribe_events .ps-events-hero h1,
body.tax-tribe_events_cat .ps-events-hero h1 {
	margin: 0 0 16px;
	color: #fff;
	font-family: Georgia, serif;
	font-size: clamp(42px, 6vw, 68px);
	font-weight: 400;
	line-height: 1;
	text-align: center !important;
	text-transform: uppercase;
}

body.post-type-archive-tribe_events .ps-events-hero h1 em,
body.tax-tribe_events_cat .ps-events-hero h1 em {
	color: #12afe1;
	font-weight: inherit;
}

body.post-type-archive-tribe_events .ps-events-hero p:last-child,
body.tax-tribe_events_cat .ps-events-hero p:last-child {
	max-width: 640px;
	margin: 0 auto !important;
	color: #fff;
	font-size: 17px;
	line-height: 1.5;
	text-align: center !important;
}


/* =========================================================
   STATISTICS — FULL WIDTH, PADDED AND CENTERED
========================================================= */

body.post-type-archive-tribe_events .ps-events-stats,
body.tax-tribe_events_cat .ps-events-stats {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	margin: 0 0 50px -50vw !important;
	padding: 36px 24px !important;
	background: #f4f6f8;
}

body.post-type-archive-tribe_events .ps-events-stats__inner,
body.tax-tribe_events_cat .ps-events-stats__inner {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	align-items: center !important;
	justify-items: center !important;
	width: min(1100px, calc(100% - 48px)) !important;
	margin: 0 auto !important;
	gap: 30px !important;
	text-align: center !important;
}

body.post-type-archive-tribe_events .ps-events-stat,
body.tax-tribe_events_cat .ps-events-stat {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-width: 0;
	text-align: center !important;
}

body.post-type-archive-tribe_events .ps-events-stat strong,
body.tax-tribe_events_cat .ps-events-stat strong {
	display: block;
	width: 100%;
	margin: 0 0 7px !important;
	color: #063968;
	font-family: Georgia, serif;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 400;
	line-height: 1;
	text-align: center !important;
}

body.post-type-archive-tribe_events .ps-events-stat span,
body.tax-tribe_events_cat .ps-events-stat span {
	display: block;
	width: 100%;
	margin: 0 auto;
	color: #637488;
	font-size: 11px;
	letter-spacing: 2px;
	line-height: 1.35;
	text-align: center !important;
	text-transform: uppercase;
}

body.post-type-archive-tribe_events .ps-count,
body.tax-tribe_events_cat .ps-count {
	font-variant-numeric: tabular-nums;
}


/* =========================================================
   CALENDAR CONTENT
========================================================= */

body.post-type-archive-tribe_events .tribe-events-header,
body.tax-tribe_events_cat .tribe-events-header {
	margin-top: 0 !important;
}


/* =========================================================
   CTA — ORIGINAL APPROVED TWO-COLUMN DESIGN
========================================================= */

body.post-type-archive-tribe_events .ps-events-cta,
body.tax-tribe_events_cat .ps-events-cta {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	width: min(920px, calc(100% - 40px)) !important;
	max-width: 920px !important;
	min-height: 350px !important;
	margin: 80px auto !important;
	overflow: hidden !important;
	background: #063968 !important;
	border-radius: 24px !important;
}


/* CTA text side */

body.post-type-archive-tribe_events .ps-events-cta__content,
body.tax-tribe_events_cat .ps-events-cta__content {
	display: flex !important;
	grid-column: 1 !important;
	grid-row: 1 !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	min-width: 0;
	min-height: 350px;
	padding: 52px 48px !important;
	color: #fff !important;
	text-align: left !important;
	background: #063968 !important;
}

body.post-type-archive-tribe_events .ps-events-cta__eyebrow,
body.tax-tribe_events_cat .ps-events-cta__eyebrow {
	margin: 0 0 14px !important;
	color: #12afe1 !important;
	font-size: 11px !important;
	letter-spacing: 3px !important;
	line-height: 1.3;
	text-align: left !important;
	text-transform: uppercase;
}

body.post-type-archive-tribe_events .ps-events-cta h2,
body.tax-tribe_events_cat .ps-events-cta h2 {
	margin: 0 0 20px !important;
	color: #fff !important;
	font-family: Georgia, serif !important;
	font-size: clamp(38px, 4vw, 52px) !important;
	font-weight: 400 !important;
	line-height: 0.98 !important;
	text-align: left !important;
	text-transform: uppercase !important;
}

body.post-type-archive-tribe_events
.ps-events-cta__content
> p:not(.ps-events-cta__eyebrow),
body.tax-tribe_events_cat
.ps-events-cta__content
> p:not(.ps-events-cta__eyebrow) {
	max-width: 350px !important;
	margin: 0 0 28px !important;
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
	text-align: left !important;
}


/* CTA button */

body.post-type-archive-tribe_events .ps-events-cta__button,
body.post-type-archive-tribe_events .ps-events-cta__button:visited,
body.tax-tribe_events_cat .ps-events-cta__button,
body.tax-tribe_events_cat .ps-events-cta__button:visited {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 220px !important;
	padding: 14px 26px !important;
	color: #fff !important;
	font-family: Georgia, serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 1px !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	background: #12afe1 !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

body.post-type-archive-tribe_events .ps-events-cta__button:hover,
body.post-type-archive-tribe_events .ps-events-cta__button:focus,
body.tax-tribe_events_cat .ps-events-cta__button:hover,
body.tax-tribe_events_cat .ps-events-cta__button:focus {
	color: #fff !important;
	text-decoration: none !important;
	background: #0796c4 !important;
	transform: translateY(-2px);
}


/* CTA image side */

body.post-type-archive-tribe_events .ps-events-cta::after,
body.tax-tribe_events_cat .ps-events-cta::after {
	display: block !important;
	grid-column: 2 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 350px !important;
	content: "" !important;
	background:
		linear-gradient(
			rgba(0, 43, 78, 0.04),
			rgba(0, 43, 78, 0.04)
		),
		url(
			'https://www.primesourcebp.com/wp-content/uploads/2026/06/prime_source_v_women-group.avif'
		)
		center center / cover no-repeat !important;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 767px) {
	body.post-type-archive-tribe_events .ps-events-hero,
	body.tax-tribe_events_cat .ps-events-hero {
		min-height: 320px;
		padding: 55px 20px;
	}

	body.post-type-archive-tribe_events .ps-events-hero h1,
	body.tax-tribe_events_cat .ps-events-hero h1 {
		font-size: 42px;
	}

	body.post-type-archive-tribe_events .ps-events-stats,
	body.tax-tribe_events_cat .ps-events-stats {
		margin-bottom: 40px !important;
		padding: 32px 20px !important;
	}

	body.post-type-archive-tribe_events .ps-events-stats__inner,
	body.tax-tribe_events_cat .ps-events-stats__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 30px 20px !important;
	}
}


/* CTA stacks only on smaller mobile screens */

@media (max-width: 640px) {
	body.post-type-archive-tribe_events .ps-events-cta,
	body.tax-tribe_events_cat .ps-events-cta {
		grid-template-columns: 1fr !important;
		margin: 55px auto 60px !important;
	}

	body.post-type-archive-tribe_events .ps-events-cta__content,
	body.tax-tribe_events_cat .ps-events-cta__content {
		grid-column: 1 !important;
		grid-row: 1 !important;
		min-height: auto !important;
		padding: 42px 30px !important;
	}

	body.post-type-archive-tribe_events .ps-events-cta::after,
	body.tax-tribe_events_cat .ps-events-cta::after {
		grid-column: 1 !important;
		grid-row: 2 !important;
		min-height: 280px !important;
	}

	body.post-type-archive-tribe_events .ps-events-cta__button,
	body.tax-tribe_events_cat .ps-events-cta__button {
		width: 100% !important;
		min-width: 0 !important;
	}
}

@media (max-width: 480px) {
	body.post-type-archive-tribe_events .ps-events-stats__inner,
	body.tax-tribe_events_cat .ps-events-stats__inner {
		grid-template-columns: 1fr !important;
	}

	body.post-type-archive-tribe_events .ps-events-stat strong,
	body.tax-tribe_events_cat .ps-events-stat strong {
		font-size: 38px;
	}

	body.post-type-archive-tribe_events .ps-events-cta h2,
	body.tax-tribe_events_cat .ps-events-cta h2 {
		font-size: 38px !important;
	}
}