/* Case Studies Page Specific Styles */

/* Removed .case-studies-main - now using in-venue-container and section-header-wrapper */

/* Case Study Container - Now uses .in-venue-container from base.css */

/* Case Study Item Header Wrapper - Wraps case study item headers (team/event names) */
.case-study-item-header-wrapper {
	text-align: right;
	margin-bottom: 8px;
	font-size: 15px;
}

/* Unused margin classes - can be removed */
/* Use .margin-bottom-md (16px) or .margin-bottom-3xl (64px) instead */

/* Case Study Feature Div - Updated to match product offering style */
.case-studies-page .case-study-feat-div {
	flex-flow: column;
	justify-content: flex-start;
	align-items: center;
	width: auto;
	display: flex;
	padding: 0;
}

/* Case Study Image - Updated to match product offering style */
.case-studies-page .case-study-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Case Study Image Div - Updated to match product offering media style */
.case-studies-page .case-study-image-div {
	background-color: var(--amp-light-gray);
	border-radius: 8px;
	width: 350px;
	height: 350px;
	margin-bottom: 16px;
	padding: 0;
	display: flex;
	overflow: hidden;
}

.case-studies-page .case-study-image-div.double {
	aspect-ratio: 1;
}

.case-studies-page .case-study-image-div.video {
	background-color: var(--amp-light-gray);
	width: 350px;
	height: 350px;
	position: relative;
	overflow: hidden;
	display: block;
}

/* Case Study Video Styling - Match product offering video style */
.case-studies-page .case-study-image-div.video .background-video,
.case-studies-page .case-study-image-div.video .background-video.w-background-video,
.case-studies-page .case-study-image-div.video .background-video.w-background-video-atom {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	overflow: hidden !important;
}

.case-studies-page .case-study-image-div.video video {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	z-index: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
	/* Anti-aliasing improvements */
	image-rendering: auto;
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Smooth video rendering */
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	filter: blur(0);
	-webkit-filter: blur(0);
}

/* Case Study Description - Updated to match product offering style */
.case-studies-page .case-study-description {
	text-align: justify;
	letter-spacing: -.01em;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 1.8;
	width: 350px;
}

/* Football section - description in right column should not be constrained */
.football-container-grid .hero-content-column .case-study-description {
	width: auto;
	text-align: left;
}

/* Case Study Section - Updated to match in-venue container padding */
.case-studies-page .case-study-section {
	flex-flow: column;
	padding: 40px 0;
	/* margin-bottom: 24px; */
	display: block;
	position: relative;
}

/* Case study section top - padding handled by .section-header-title */
.case-studies-page .case-study-section.top {
	padding-top: 0;
}

/* Case Study Section Singular - Updated to match padding */
.case-studies-page .case-study-section-singular {
	padding: 40px 0;
	/* margin-bottom: 24px; */
	position: relative;
}

.case-studies-page .case-study-section-singular.bottom {
	padding-bottom: 0;
}

/* Case Study Title */
.case-studies-page .case-study-title.nowrap {
	white-space: nowrap;
}

/* Case Study Grid - Updated to match product offering grid style exactly */
.case-studies-page .case-study-grid {
	display: flex;
	flex-flow: wrap;
	gap: 40px;
	grid-template-rows: auto;
	justify-content: space-around;
	align-items: flex-start;
}

.case-studies-page .case-study-grid.tennis {
	gap: 40px;
	flex-flow: wrap;
	grid-template-columns: 1fr 1fr 1fr;
	justify-content: space-around;
	display: flex;
}

.case-studies-page .case-study-grid.basketball,
.case-studies-page .case-study-grid.basketball.hockey {
	gap: 40px;
	flex-flow: wrap;
	grid-template-columns: 1fr 1fr;
	justify-content: space-around;
	display: flex;
}

.case-studies-page .case-study-grid.soccer {
	gap: 40px;
	flex-flow: wrap;
	grid-template-columns: 1.25fr;
	justify-content: center;
	display: flex;
}

/* Case Study Header - Updated to match product offering heading style */
.case-studies-page .case-study-header {
	color: var(--amp-yellow);
	text-align: center;
	letter-spacing: -.02em;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	margin-bottom: 8px;
	text-transform: uppercase;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
	.case-studies-page .case-study-section-singular {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.case-studies-page .case-study-section-singular.bottom {
		padding-bottom: 0;
	}

	/* Case study items responsive - match product offering */
	.case-studies-page .case-study-image-div {
		width: 300px;
		height: 300px;
	}

	.case-studies-page .case-study-description {
		width: 300px;
	}

	.case-studies-page .case-study-grid {
		gap: 40px;
	}
}

@media screen and (max-width: 767px) {

	/* Case study items mobile - match product offering */
	.case-studies-page .case-study-image-div {
		width: 280px;
		height: 280px;
	}

	.case-studies-page .case-study-description {
		width: 280px;
	}

	.case-studies-page .case-study-grid {
		gap: 40px;
		flex-flow: column;
		justify-content: flex-start;
		align-items: center;
		grid-template-columns: 1fr;
	}

	.case-studies-page .case-study-grid.tennis,
	.case-studies-page .case-study-grid.basketball,
	.case-studies-page .case-study-grid.basketball.hockey {
		gap: 40px;
		flex-flow: column;
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 479px) {
	.case-studies-page .case-study-section-singular {
		flex-flow: row;
		padding-top: 40px;
		padding-bottom: 0;
		display: block;
	}

	.case-studies-page .case-study-section-singular.bottom {
		padding-bottom: 20px;
	}

}

