/* tiles */
.tile {
	color: var(--color-petrol);
}

.tile a:link,
.tile a:visited,
.tile a:active,
.tile a:hover {
	border: none;
	color: var(--color-petrol);
	text-decoration: none;
}

.tile div.tile-image {
	background: var(--color-grey-light);
}


/**************** TILE CONTAINER *******************/
div.resource-tile-container {
	padding: 3em 0;
	display: flex;
	flex-wrap: wrap;
	column-gap: 2em;
	row-gap: 4em;
	justify-content: space-between;
}

@media (max-width: 1550px) {
	div.resource-tile-container {
		justify-content: center;
	}
	
	div.resource-tile-container--dynamic {
		justify-content: space-between;
	}
}


div.resource-tile-container::after {
	content: "";
	flex: 0 0 30%;
}




/**************** HERO *******************/
.tile-hero {
	position: relative;
	width: 100%;
	color: var(--color-white);
}

.tile-hero a div.tile-image {
	height: 672px;
	overflow: hidden;
}

.tile-hero a img {
	max-width: 100%;
	max-height: 672px;
	filter: brightness(0.8);
	transition: all 0.2s ease-in-out;
	transform: scale(1);
}

.tile-hero a div.tile-content {
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tile-hero a div.tile-content div.tile-eyebrow {
	position: absolute;
	top: 48px;
	left: 32px;
	color: var(--color-white);
	font-size: var(--16px);
	padding: 6px 0 0 0;
}

.tile-hero a div.tile-content div.tile-eyebrow::before {
	content: "";
	width: 150px;
	height: 2px;
	position: absolute;
	top: -0.5em;
	left: 0px;
	background: var(--color-white);
}

.tile-hero a div.tile-content div.tile-title {
	font-size: 3.5em;
	line-height: 4rem;
	color: var(--color-white);
	
	position: absolute;
	top: calc(50% - 4rem);
	left: 32px;
	max-width: 590px;
}

.tile-hero a div.tile-content div.tile-description {
	font-size: var(--16px);
	line-height: 1.5em;
	color: var(--color-white);
	
	position: absolute;
	top: calc(50% + 5rem);
	left: 32px;
	max-width: 590px;
}

.tile-hero a div.tile-content div.tile-link {
	position: absolute;
	bottom: 3rem;
	left: 32px;
	font-size: var(--20px);
	color: var(--color-white);
	display: none;
}

/* hover states */
.tile-hero a:hover div.tile-content div.tile-link {
	display: inline-block;
}

.tile-hero a:hover div.tile-content div.tile-link::after {
	content: "\e8e4";
	font-family: "Material Symbols Outlined";
	font-size: 1.4em;
	position: relative;
	top: 0.5rem;
	left: 0.1em;
	transition: all 0.2s ease-in-out;
	line-height: 0;
}

.tile-hero a:hover img {
	transition: all 0.2s ease-in-out;
	filter: brightness(0.6);
	transform: scale(1.2);
}

/**************** LARGE *******************/
.tile-large {
	position: relative;
	min-width: 535px;
	max-width: calc(50% - 2em);
}

.tile-large a div.tile-image {
	height: 350px;
	overflow: hidden;
}

.tile-large a img {
	
	transition: all 0.2s ease-in-out;
	transform: scale(1);
	
	object-fit: cover;
	filter: brightness(0.95);
	
	max-width: 100%;
	min-height: 100%;
	width: 100%;
}

.tile-large a div.tile-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 2em;
	height: 200px;
	margin: 3em 1.5em 0;
}

.tile-large a div.tile-content div.tile-eyebrow {
	position: absolute;
	top: 48px;
	left: 32px;
	color: var(--color-white);
	font-size: var(--16px);
	padding: 6px 0 0 0;
	text-shadow: 0 0 10px #000;
}

.tile-large a div.tile-content::before {
	content: "";
	width: 150px;
	height: 2px;
	position: absolute;
	top: 48px;
	left: 32px;
	background: var(--color-white);
}

.tile-large a div.tile-content div.tile-title {
	font-size: 1.5em;
	line-height: 2rem;
}

.tile-large a div.tile-content div.tile-description {
	font-size: var(--14px);
	line-height: 1.5em;
	color: var(--color-primary-text);
}

.tile-large a div.tile-content div.tile-link {
	position: absolute;
	top: 286px;
	left: 32px;
	font-size: var(--20px);
	color: var(--color-white);
	
	text-shadow: 0 0 10px #000;
}

.tile-large a div.tile-content div.tile-link::after {
	content: "\e8e4";
	font-family: "Material Symbols Outlined";
	font-size: 1.4em;
	position: relative;
	top: 0.5rem;
	left: 0.1em;
	transition: all 0.2s ease-in-out;
	line-height: 0;
}

/* hover states */
.tile-large a:hover div.tile-content div.tile-link {
	display: inline-block;
}

.tile-large a:hover div.tile-content div.tile-link::after {
	left: 0.5em;
	transition: all 0.2s ease-in-out;
}

.tile-large a:hover img {
	transition: all 0.2s ease-in-out;
	filter: brightness(0.8);
	transform: scale(1.2);
}






/**************** MEDIUM *******************/
.tile-medium {
	position: relative;
	width: 475px;
	max-width: 45%;
	color: var(--color-petrol);
}

.tile-medium a div.tile-image {
	height: 305px;
	overflow: hidden;
	transition: all 0.2s ease-in-out;
	transform: scale(1);
}

.tile-medium a img {
	
	object-fit: cover;
	filter: brightness(0.95);
	
	max-width: 475px;
	min-height: 100%;
	transition: all 0.2s ease-in-out;
	transform: scale(1);
}




.tile-medium a div.tile-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 200px;
	margin: 1em 1.5em 0;
}

.tile-medium a div.tile-content div.tile-eyebrow {
	position: absolute;
	top: 24px;
	left: 24px;
	color: var(--color-white);
	font-size: 0.75em;
	text-shadow: 0 0 7px #000;
}

.tile-medium a div.tile-content div.tile-title {
	font-size: 1.5em;
	line-height: 2rem;
}

.tile-medium a div.tile-content div.tile-description {
	font-size: var(--14px);
	line-height: 1.5em;
	color: var(--color-primary-text);
}

.tile-medium a div.tile-content div.tile-link {
	font-size: var(--14px);
	color: var(--color-petrol-70);
}

/* hover states */
.tile-medium a:hover div.tile-content div.tile-link {
	color: var(--color-petrol);
}

.tile-medium a:hover img {
	transition: all 0.2s ease-in-out;
	filter: brightness(1.0);
	transform: scale(1.2);
}








/**************** SMALL *******************/
.tile-small {
	position: relative;
	width: 425px;
	
}

.tile-small div.tile-image {
	width: 100%;
	aspect-ratio: 680 / 443;
	overflow: hidden;
}

.tile-small a img {
	object-fit: cover;
	object-position: center;
	filter: brightness(0.95);
	width: 100%;
	height: 100%;
	transition: all 0.2s ease-in-out;
	transform: scale(1);
	
}

.tile-small a div.tile-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 150px;
	margin: 1em 1.5em 0;
}

.tile-small a div.tile-content div.tile-eyebrow {
	position: absolute;
	top: 24px;
	left: 24px;
	color: var(--color-white);
	font-size: 0.75em;
	text-shadow: 0 0 7px #000;
}

.tile-small a:hover div.tile-content div.tile-eyebrow {
	text-shadow: 0 0 10px #000;
}

.tile-small a div.tile-content div.tile-title {
	font-size: 1.5em;
	line-height: 2rem;
}

.tile-small a div.tile-content div.tile-description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	font-size: 0.875em;
	line-height: 1.5em;
	/*color: var(--color-primary-text);*/
	margin-bottom: 0;
}

.brand-color-background-petrol .tile-small a div.tile-content div.tile-description {
	color: var(--color-white);
}


.tile-small a div.tile-content div.tile-link {
	font-size: 0.875em;
	color: var(--color-petrol-70);
}

.tile-small a div.tile-content div.tile-link::after {
	content: "\e8e4";
	font-family: "Material Symbols Outlined";
	font-size: 1.4em;
	position: relative;
	top: 0.33rem;
	left: 0.5em;
	transition: all 0.2s ease-in-out;
	line-height: 0;
}

/* hover states */
.tile-small a:hover div.tile-content div.tile-link {
	color: var(--color-petrol);
}

.brand-color-background-petrol .tile-small a:hover div.tile-content div.tile-link {
	color: var(--color-petrol-50);
}

.tile-small a:hover img {
	transition: all 0.2s ease-in-out;
	filter: brightness(0.8);
	transform: scale(1.2);
}

.tile-small a:hover div.tile-content div.tile-link::after {
	
	left: 0.75em;
	transition: all 0.2s ease-in-out;
}

@media (max-width: 1580px) {
	.tile-small {
		width: calc(33% - 2em);
	}
}

@media (max-width: 1200px) {
	.tile-small {
		width: calc(50% - 1.5em);
	}
}

@media (max-width: 950px) {
	.tile-small {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.tile-small {
		width: 100%;
	}
	
	.tile-small a div.tile-image {
		height: auto;
	}
	
	.tile-small a img {
		max-width: 100%;
		height: auto;
	}
	
	section.section-resource-tiles-grid {
		padding: 1px 0 0;
	}
}

.slider .slider-content .tile-small {
	width: 425px;
}



/**************** XS *******************/
.tile-xs a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4em;
}

.tile-xs div.tile-image {
	overflow: hidden;
}

.tile-xs a img {
	max-width: 200px;
	max-height: 168px;
	transition: all 0.2s ease-in-out;
	transform: scale(1);
}

.tile-xs a div.tile-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 168px;
	max-width: 200px;
}

.tile-xs a div.tile-content div.tile-eyebrow {
	font-size: 0.625em;
	line-height: 1em;
	border-top: 2px solid var(--color-petrol-30b);
	padding: 1em 3em 0 0;
	display: inline;
	
	width: 33%;
}

.tile-xs a div.tile-content div.tile-title {
	font-size: 0.875em;
	line-height: 1.5em;
}

.tile-xs a div.tile-content div.tile-link {
	font-size: 0.625em;
	color: var(--color-petrol-70);
}

/* hover states */
.tile-xs a:hover div.tile-content div.tile-link {
	color: var(--color-petrol);
}

.tile-xs a:hover img {
	transition: all 0.2s ease-in-out;
	filter: brightness(0.8);
	transform: scale(1.2);
}






/*** Featured topics ***/

section.section-featured-topic {
	padding: 6em 3em 6em 0;
	display: flex;
}

section.section-featured-topic div.tile-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 66%;
}


.tile-text-featured-topic {
	
	width: 33%;
	min-width: 415px;
	flex-shrink: 0;
	
	min-height: 600px;
	height: fit-content;
	padding: 100px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3em;
	
	color: var(--color-petrol);
}

main .tile-text-featured-topic a {
	border: none;
	display: block;
	width: 100%;
	height: 100%;
	color: var(--color-petrol);
	text-decoration: none;
	display: inline;
	border: none;
}

.tile-text-featured-topic a.cta-button-arrow:hover {
	border-bottom: none;
}

section.section-featured-topic .tile-small {
	width: calc(50% - 2rem);
}

section.section-featured-topic .tile-small a div.tile-content div.tile-description,
section.section-featured-topic .tile-small a div.tile-content div.tile-link {
	display: none;
}

.tile-text-featured-topic div.tile-eyebrow {
	font-size: 1em;
	height: 55%;
}

.tile-text-featured-topic div.tile-image {
	transition: all 0.2s ease-in-out;
}

.tile-text-featured-topic div.tile-image img {
	width: 124px;
}

.tile-text-featured-topic .tile-title {
	font-size: 3.5em;
	/*white-space: pre-line;*/
}

.tile-text-featured-topic .tile-title {
	line-height: 1.25em;
}

.tile-text-featured-topic a .tile-link {
	font-size: 1.25em;
}

.tile-text-featured-topic a .tile-link::after {
	content: "\e8e4";
	font-family: "Material Symbols Outlined";
	font-size: 1.4em;
	
	position: relative;
	top: 0.25em;
	left: 0.4em;
	transition: all 0.2s ease-in-out;
	line-height: 0;
}

.tile-text-featured-topic a:hover {
	transition: all 0.2s ease-in-out;
	transform: scale(1);
}

.tile-text-featured-topic a:hover .tile-image {
	transition: all 0.2s ease-in-out;
	transform-origin: center left;
	/*transform: scale(1.2);*/
	filter: brightness(1.1);
}

.tile-text-featured-topic a:hover .tile-link::after {
	left: 1em;
	transition: all 0.2s ease-in-out;
}

@media (max-width: 1000px) {
	section.section-featured-topic {
		padding: 1.5rem;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	
	.tile-text-featured-topic {
		width: 100%;
		padding: 0 0 1.5rem 0;
		min-width: unset;
		min-height: unset;
		gap: 1.5rem;
	}
	
	.tile-text-featured-topic div.tile-image {
		display: none;
	}
	
	section.section-featured-topic div.tile-container {
		width: 100%;
		flex-direction: column;
		gap: 1.5rem;
	}
	
	section.section-featured-topic .tile-small {
		width: 100%;
	}
}


/*** Learn tiles ***/
.tile-text-learn {
	width: 336px;
	max-width: 100%;
	height: 364px;
	position: relative;
	margin: 2em;
	/*border: solid 1px pink;*/
}

main .tile-text-learn a {
	border: none;
	display: block;
	width: 100%;
	height: 100%;
	color: var(--color-petrol);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2em;
}

.tile-text-learn div.tile-image {
	transition: all 0.2s ease-in-out;
	width: 128px;
	position: absolute;
	right: 0;
	bottom: -50px;
}

.tile-text-learn .tile-title {
	font-size: 3.5em;
	line-height: 1.25em;
	min-height: 128px;
}

.tile-text-learn .tile-description {
	font-size: 0.875em;
	line-height: 1.5em;
	width: 60%;
}

.tile-text-learn a .tile-link {
	font-size: 0.875em;
}

.tile-text-learn a .tile-link::after {
	content: "\e8e4";
	font-family: "Material Symbols Outlined";
	font-size: 1.4em;
	
	position: relative;
	top: 0.25em;
	left: 0.4em;
	transition: all 0.2s ease-in-out;
	line-height: 0;
}

.tile-text-learn a:hover .tile-image {
	transition: all 0.2s ease-in-out;
	filter: brightness(1.1);
}

.tile-text-learn a:hover .tile-link::after {
	left: 1em;
	transition: all 0.2s ease-in-out;
}