/* ==========================================================================
   Events CPT Stylesheet
   ========================================================================== */

/* --- Hero Section --- */
.events-hero-section {
	position: relative;
	height: 100vh;
	background-size: cover;
	background-position: top;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-black);
}

.events-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.events-hero-grid {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.events-hero-content {
	max-width: 768px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.events-hero-title {
	font-family: var(--font-heading);
	font-size: 64px;
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -1.92px;
	text-transform: uppercase;
	color: var(--color-white);
	margin: 0;
}

.events-hero-title span {
	color: var(--color-red);
}

.events-hero-subtitle {
	font-family: var(--font-main);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-white);
	margin: 0;
}

/* --- Social Sidebar --- */
.events-hero-section .hero-socials {
	position: absolute;
	right: 80px;
	top: calc(50% - 100px);
	display: flex;
	flex-direction: column;
	gap: 7px;
	z-index: 10;
}

.events-hero-section .hero-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background-color: var(--color-red);
	transition: var(--transition);
	text-decoration: none;
}

.events-hero-section .hero-social-btn:hover {
	background-color: #a00000;
}

.events-hero-section .hero-social-btn img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Align socials with container right border at wider screens */
@media (min-width: 1440px) {
	.events-hero-section .hero-socials {
		right: calc(50% - 640px);
	}
}

/* --- Grid Section --- */
.events-grid-section {
	position: relative;
	padding: 80px 0;
	background-color: var(--color-black);
	overflow: visible;
}

.events-grid-section::before {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
	width: 615px;
	height: 588px;
	border-radius: 50%;
	background: #BC0000;
	filter: blur(400px);
	top: -150px;
	left: -200px;
	opacity: 0.8;
}

.events-grid-section::after {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
	width: 615px;
	height: 588px;
	border-radius: 50%;
	background: #BC0000;
	filter: blur(400px);
	bottom: -150px;
	right: -200px;
	opacity: 0.8;
}

.events-grid-section .gohard-container {
	position: relative;
	z-index: 2;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 20px;
	width: 100%;
}

.event-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 100%;
}

.event-card-link-wrapper {
	text-decoration: none;
	display: block;
	cursor: pointer;
}

.event-card-image-wrapper {
	position: relative;
	height: 280px;
	border-radius: 12px;
	overflow: hidden;
	background-color: #171717;
}

.event-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	transition: transform 0.3s ease;
}

.event-card:hover .event-card-img {
	transform: scale(1.02);
}

.event-card-content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	flex-grow: 1;
	justify-content: space-between;
}

.event-card-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.event-card-tag {
	font-family: var(--font-main);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-white);
	margin: 0;
}

.event-card-title {
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-red);
	margin: 0;
	transition: opacity 0.2s ease;
}

.event-card-title:hover {
	opacity: 0.9;
}

.event-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	background-color: var(--color-red);
	color: var(--color-white);
	font-family: var(--font-main);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	width: fit-content;
	box-sizing: border-box;
}

.event-card-btn:hover {
	background-color: #a00000;
}

.event-card-btn svg {
	width: 12px;
	height: 15px;
	flex-shrink: 0;
}

/* --- Video Popup Styles Overrides --- */
.video-popup-inner {
	background-color: #000 !important;
	max-width: 900px !important;
	width: 100%;
	padding: 0 !important;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	aspect-ratio: 16 / 9;
}

.video-popup-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.video-popup-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.popup-html5-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: #000;
}

.popup-close-white {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-white);
}

.popup-close-white img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}

/* --- Responsive Layouts --- */
@media (max-width: 768px) {
	.events-hero-section {
		height: auto;
		min-height: auto;
		padding-top: 240px;
		padding-bottom: 40px;
	}

	.events-hero-content {
		padding: 0 16px;
	}

	.events-hero-title {
		font-size: 48px;
		letter-spacing: -1.44px;
	}

	.events-hero-subtitle {
		font-size: 16px;
	}

	.events-hero-section .hero-socials {
		display: none;
		/* Hide socials side bar on mobile */
	}

	.events-grid-section {
		padding: 40px 16px;
	}

	.events-grid-section::before {
		width: 244px;
		height: 242px;
		filter: blur(250px);
		top: -85px;
		left: -150px;
	}

	.events-grid-section::after {
		width: 244px;
		height: 242px;
		filter: blur(250px);
		bottom: -85px;
		right: -150px;
	}

	.events-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.event-card-image-wrapper {
		height: 225px;
	}

	.event-card-content {
		gap: 16px;
	}

	.event-card-btn {
		width: 100%;
	}
}