/* Innovatrix Featured Conferences
   Colours and sizes can be changed with the variables below. */
.ifc {
	--ifc-accent: #34dca8;      /* green: active tab, title, labels, button, arrows */
	--ifc-text: #ffffff;        /* white text */
	--ifc-line: #ffffff;        /* line under the tabs */
	--ifc-btn-text: #04181a;    /* button text */
	--ifc-radius: 20px;         /* image corners */
	--ifc-gap: 50px;            /* space between image and text */
	--ifc-nav-bottom: 48px;     /* distance of the arrows from the bottom of the image */
	position: relative;
	width: 100%;
	color: var(--ifc-text);
	font-family: inherit;
	text-align: left;
}

.ifc *,
.ifc *::before,
.ifc *::after {
	box-sizing: border-box;
}

.ifc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Tabs ---------- */
.ifc .ifc-tabs {
	position: relative;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0 0 70px;
	padding: 0;
	box-shadow: inset 0 -4px 0 var(--ifc-line);
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}
.ifc .ifc-tabs::-webkit-scrollbar {
	display: none;
}
.ifc .ifc-tabs.is-dragging {
	cursor: grabbing;
}

.ifc button.ifc-tab,
.ifc button.ifc-tab:hover,
.ifc button.ifc-tab:focus,
.ifc button.ifc-tab:active {
	flex: 0 0 auto;
	width: max-content;
	max-width: 480px;
	margin: 0;
	padding: 0 35px 24px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 -4px 0 transparent;
	color: var(--ifc-text);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.75;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: color 0.25s ease, box-shadow 0.25s ease;
}
.ifc .ifc-tab-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	text-wrap: balance;
	pointer-events: none;
}
.ifc button.ifc-tab:hover,
.ifc button.ifc-tab.is-active {
	color: var(--ifc-accent);
}
.ifc button.ifc-tab.is-active {
	box-shadow: inset 0 -4px 0 var(--ifc-accent);
}
.ifc button.ifc-tab:focus-visible {
	outline: 2px solid var(--ifc-accent);
	outline-offset: -2px;
}

/* ---------- Slides ---------- */
.ifc .ifc-stage {
	position: relative;
}
.ifc .ifc-slides {
	display: grid;
}

.ifc .ifc-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto auto auto auto minmax(150px, 1fr);
	grid-template-areas:
		"media title"
		"media excerpt"
		"media meta"
		"media btn"
		"media nav";
	column-gap: var(--ifc-gap);
	align-items: start;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.ifc .ifc-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.ifc .ifc-media {
	grid-area: media;
	display: block;
	width: 100%;
	aspect-ratio: 742 / 500;
	overflow: hidden;
	border-radius: var(--ifc-radius);
	background: rgba(255, 255, 255, 0.05);
}
.ifc .ifc-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.ifc .ifc-media:hover img {
	transform: scale(1.03);
}

.ifc .ifc-title {
	grid-area: title;
	margin: 0 0 22px;
	padding: 0;
	color: var(--ifc-accent);
	font-family: inherit;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: normal;
	text-transform: none;
}
.ifc .ifc-title a,
.ifc .ifc-title a:hover,
.ifc .ifc-title a:focus {
	color: inherit;
	text-decoration: none;
}
.ifc .ifc-title a:hover {
	opacity: 0.85;
}

.ifc .ifc-excerpt {
	grid-area: excerpt;
	display: -webkit-box;
	margin: 0 0 50px;
	overflow: hidden;
	color: var(--ifc-text);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ifc .ifc-meta {
	grid-area: meta;
	margin: 0 0 14px;
	color: var(--ifc-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
}
.ifc .ifc-meta-item {
	display: inline-block;
	margin-right: 16px;
}
.ifc .ifc-meta-item.ifc-location {
	display: block;
	margin-right: 0;
}
.ifc .ifc-label {
	color: var(--ifc-accent);
}

.ifc a.ifc-btn,
.ifc a.ifc-btn:hover,
.ifc a.ifc-btn:focus {
	grid-area: btn;
	justify-self: start;
	display: inline-block;
	padding: 12px 50px;
	border: 0;
	border-radius: 30px;
	background: var(--ifc-accent);
	color: var(--ifc-btn-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.ifc a.ifc-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.ifc .ifc-nav {
	/* One set of arrows for all events, fixed in place so it never jumps. */
	position: absolute;
	left: calc(50% + var(--ifc-gap) / 2);
	bottom: var(--ifc-nav-bottom);
	z-index: 2;
	display: flex;
	gap: 20px;
	margin: 0;
}
.ifc button.ifc-arrow,
.ifc button.ifc-arrow:hover,
.ifc button.ifc-arrow:focus,
.ifc button.ifc-arrow:active {
	--ifc-arrow-color: var(--ifc-accent);
	position: relative;
	display: block;
	width: 50px;
	height: 50px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid var(--ifc-accent);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.ifc button.ifc-arrow:hover {
	--ifc-arrow-color: var(--ifc-btn-text);
	background: var(--ifc-accent);
}
.ifc button.ifc-arrow:focus-visible {
	outline: 2px solid var(--ifc-accent);
	outline-offset: 3px;
}
/* Arrow drawn in CSS: a line (before) and a head (after) */
.ifc button.ifc-arrow::before,
.ifc button.ifc-arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	display: block;
	pointer-events: none;
}
.ifc button.ifc-arrow::before {
	left: 50%;
	width: 18px;
	height: 2px;
	margin: -2px 0 0 -9px;
	border-radius: 2px;
	background: var(--ifc-arrow-color);
}
.ifc button.ifc-arrow::after {
	width: 9px;
	height: 9px;
	margin-top: -5.5px;
	border-top: 2px solid var(--ifc-arrow-color);
	border-right: 2px solid var(--ifc-arrow-color);
	background: transparent;
}
.ifc button.ifc-next::after {
	right: 14px;
	transform: rotate(45deg);
}
.ifc button.ifc-prev::after {
	left: 14px;
	transform: rotate(-135deg);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ifc .ifc-tabs {
		margin-bottom: 50px;
	}
	.ifc button.ifc-tab,
	.ifc button.ifc-tab:hover,
	.ifc button.ifc-tab:focus,
	.ifc button.ifc-tab:active {
		max-width: 380px;
		padding: 0 24px 18px;
		font-size: 16px;
	}
	.ifc {
		--ifc-gap: 30px;
		--ifc-nav-bottom: 20px;
	}
	.ifc .ifc-slide {
		grid-template-rows: auto auto auto auto minmax(110px, 1fr);
	}
	.ifc .ifc-title {
		font-size: 26px;
	}
	.ifc .ifc-excerpt {
		margin-bottom: 30px;
		font-size: 15px;
	}
	.ifc .ifc-meta {
		font-size: 15px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.ifc .ifc-tabs {
		display: none;
	}
	.ifc .ifc-slide {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas:
			"title"
			"media"
			"excerpt"
			"meta"
			"btn";
		text-align: center;
	}
	.ifc .ifc-title {
		margin-bottom: 28px;
		font-size: 26px;
		font-weight: 500;
		line-height: 1.3;
	}
	.ifc .ifc-media {
		aspect-ratio: 402 / 360;
	}
	.ifc .ifc-excerpt {
		margin: 28px 0 45px;
		font-size: 17px;
	}
	.ifc .ifc-meta {
		margin-bottom: 18px;
		font-size: 17px;
	}
	.ifc .ifc-meta-item {
		display: block;
		margin-right: 0;
	}
	.ifc a.ifc-btn,
	.ifc a.ifc-btn:hover,
	.ifc a.ifc-btn:focus {
		justify-self: center;
		padding: 14px 60px;
	}
	.ifc .ifc-nav {
		position: static;
		justify-content: center;
		margin-top: 70px;
	}
}
