/*
 * Fixture detail page (templates/fixture-page.php).
 * Desktop follows "Fixture Detail / Read More mock up 1.0": title + description on the
 * left, dark green fixture card on the right. Phones: title, card, then description.
 * Banner height, gradient and the background texture come from the theme's
 * .inner-banner-section / .intro-one-column styles (assets/css/custom.css).
 */

.fanzo-fixture-page {
	--fz-green: #3c5d54;
	--fz-text: #555;
}

/* No banner image: solid header, like the booking page. */
.fanzo-fixture-no-banner header.site-header {
	position: relative;
	background: var( --fz-green );
}

.fanzo-fixture__banner {
	position: relative;
	margin: 0;
	overflow: hidden;
}

section.vc_section.inner-banner-section.fanzo-fixture__banner img.fanzo-fixture__banner-img {
	display: block;
	width: 100%;
	/* Shorter than other inner pages (theme: 75vh), as in the design. */
	height: clamp( 240px, 26vw, 420px ) !important;
	object-fit: cover;
	object-position: center;
}

.fanzo-fixture__intro {
	position: relative;
}

.fanzo-fixture__container {
	position: relative;
	z-index: 1; /* above the theme's background texture */
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 20px;
}

.fanzo-fixture__grid {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 420px );
	grid-template-rows: auto 1fr; /* the card spans both rows; extra height goes below the text */
	grid-template-areas:
		"title card"
		"text  card";
	align-items: start;
	column-gap: 100px;
	row-gap: 20px;
}

.fanzo-fixture__title {
	grid-area: title;
	margin: 0;
	color: var( --fz-green );
	font-family: "Inter", sans-serif;
	font-weight: 800;
	font-size: 40px;
	line-height: 1.12;
	letter-spacing: 0;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.fanzo-fixture__description {
	grid-area: text;
	max-width: 520px;
}

.fanzo-fixture__description p {
	margin: 0 0 20px;
	color: var( --fz-text );
	font-size: 16px;
	line-height: 1.45;
}

.fanzo-fixture__description p:last-child {
	margin-bottom: 0;
}

/* Card */
.fanzo-fixture__card {
	grid-area: card;
	padding: 40px 40px 44px;
	border-radius: 20px;
	background: var( --fz-green );
	color: #fff;
}

.fanzo-fixture__card p {
	margin: 0;
	color: #fff;
}

.fanzo-fixture__competition {
	font-family: "Inter", sans-serif;
	font-weight: 800;
	font-size: 38px;
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.fanzo-fixture__teams {
	display: flex;
	flex-direction: column;
	margin-top: 30px !important;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
}

.fanzo-fixture__vs {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
}

.fanzo-fixture__when {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 26px !important;
	font-size: 16px;
}

.fanzo-fixture__reserve {
	display: inline-block;
	min-width: 200px;
	margin-top: 34px;
	padding: 10px 28px;
	border: 1px solid #fff;
	border-radius: 100px;
	background: #fff;
	color: var( --fz-green ) !important;
	font-family: "Trade Gothic W02 Bold Cn 20", "Inter", sans-serif;
	font-size: 20px;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.2s, color 0.2s;
}

.fanzo-fixture__reserve:hover,
.fanzo-fixture__reserve:focus-visible {
	background: transparent;
	color: #fff !important;
}

.fanzo-fixture__reserve:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.fanzo-fixture__finished {
	margin-top: 22px !important;
	font-size: 14px;
	opacity: 0.85;
}

/* Tablet */
@media ( max-width: 991px ) {
	.fanzo-fixture__grid {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 340px );
		column-gap: 40px;
	}

	.fanzo-fixture__title {
		font-size: 32px;
	}

	.fanzo-fixture__card {
		padding: 30px;
	}

	.fanzo-fixture__competition {
		font-size: 30px;
	}
}

/* Phones: one column – title, card, description. */
@media ( max-width: 767px ) {
	section.vc_section.inner-banner-section.fanzo-fixture__banner img.fanzo-fixture__banner-img {
		height: 260px !important;
	}

	.fanzo-fixture__grid {
		grid-template-columns: minmax( 0, 1fr );
		grid-template-rows: auto;
		grid-template-areas:
			"title"
			"card"
			"text";
		row-gap: 24px;
	}

	.fanzo-fixture__title {
		font-size: 28px;
	}

	.fanzo-fixture__card {
		padding: 24px;
	}

	.fanzo-fixture__competition {
		font-size: 24px;
	}

	.fanzo-fixture__reserve {
		display: block;
		width: 100%;
		padding: 13px 26px;
	}
}
