/* School of Flex hub page — design: Figma "Home-Flexicon -> default" (node 1:86) */

.fp-sof {
	--sof-black: #121212;
	--sof-yellow: #ffd500;
	--sof-grey: #646464;
	--sof-text-muted: #9a9fa0;
	--sof-primary: #09141e;
	--sof-light: #e9f1f9;
	--sof-card: linear-gradient(180deg, #2e2e2e 0%, #202020 100%);
	--sof-container: 1280px;

	display: block;
	width: 100%;
	font-family: 'Prompt', sans-serif;
	font-weight: 400;
	color: #fff;
	background: var(--sof-black);
}

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

.fp-sof p,
.fp-sof h1,
.fp-sof h2,
.fp-sof h3,
.fp-sof ul {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 400;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.fp-sof ul {
	list-style: none;
}

.fp-sof a {
	text-decoration: none;
}

.fp-sof-container {
	width: 100%;
	max-width: var(--sof-container);
	margin: 0 auto;
	padding: 0 40px;
}

/* Shared text styles */

.fp-sof-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	color: #fff;
}

.fp-sof-eyebrow::before {
	content: '';
	width: 10px;
	height: 10px;
	background: currentColor;
	flex-shrink: 0;
}

.fp-sof-eyebrow--dark {
	color: var(--sof-black);
}

.fp-sof-h2 {
	margin-top: 35px !important;
	font-size: 48px !important;
	line-height: 1.2 !important;
	color: inherit;
}

.fp-sof-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	color: var(--sof-yellow);
}

/* Arrow like the "Learn more" buttons on the services page: outlined square, filled on hover/active (client 03.11.) */
.fp-sof-arrow {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 2px solid currentColor;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fp-sof-arrow svg {
	display: block;
}

.fp-sof-link > span:last-child {
	transition: color 0.2s ease;
}

.fp-sof-link:hover .fp-sof-arrow,
.fp-sof-link:focus-visible .fp-sof-arrow,
.fp-sof-card--link:hover .fp-sof-arrow,
.fp-sof-card--link:focus-within .fp-sof-arrow {
	background: currentColor; /* square filled in its own colour (yellow; black for the dark variant) */
}

.fp-sof-link:hover .fp-sof-arrow svg,
.fp-sof-link:focus-visible .fp-sof-arrow svg,
.fp-sof-card--link:hover .fp-sof-arrow svg,
.fp-sof-card--link:focus-within .fp-sof-arrow svg {
	color: var(--sof-black); /* arrow dark on the yellow square */
}

.fp-sof-link--dark:hover .fp-sof-arrow svg,
.fp-sof-link--dark:focus-visible .fp-sof-arrow svg {
	color: #fff;
}

/* the text keeps its colour on hover, only the square reacts (client 03.11.) */

.fp-sof-link--big {
	font-size: 21px;
}

.fp-sof-link--dark {
	font-size: 16px;
	font-weight: 400;
	color: var(--sof-black);
}

/* Hero */

.fp-sof-hero {
	position: relative;
	background: var(--sof-black);
}

.fp-sof-hero__image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 49%;
	overflow: hidden;
}

.fp-sof-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fp-sof-hero__image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(-28deg, rgba(28, 194, 206, 0.9) 36%, rgba(170, 255, 142, 0.9) 93%);
	mix-blend-mode: overlay;
	pointer-events: none;
}

.fp-sof-hero__inner {
	position: relative;
	min-height: 726px;
	display: flex;
	align-items: center;
}

.fp-sof-hero__text {
	width: 50%;
	max-width: 520px;
	padding: 140px 0 100px;
}

.fp-sof-hero__eyebrow {
	padding: 10px;
	font-size: 16px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
}

.fp-sof-hero__title {
	font-size: 56px !important;
	line-height: 1.2 !important;
	color: #fff !important;
}

.fp-sof-hero__lead {
	margin-top: 40px !important;
	font-size: 20px !important;
	line-height: 1.4 !important;
}

/* Search */

.fp-sof-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 478px;
	margin-top: 60px;
	padding: 0 30px;
	height: 80px;
	border-radius: 50px;
	background: var(--sof-card);
}

.fp-sof-search {
	--sof-caret-left: 70px; /* padding 30 + icon 20 + gap 20 = where the input text starts */
}

/* Fake text cursor (blinking like the system caret) exactly where typing starts; on focus the real caret takes over */
.fp-sof-search::after {
	content: '';
	position: absolute;
	left: calc(var(--sof-caret-left) - 3px); /* just before the first letter, like the real caret */
	width: 2px;
	height: 22px;
	background: #fff;
	pointer-events: none;
	animation: fp-sof-caret 1.06s steps(1) infinite;
}

.fp-sof-search:focus-within::after,
.fp-sof-search:has(.fp-sof-search__input:not(:placeholder-shown))::after {
	opacity: 0;
	animation: none;
}

@keyframes fp-sof-caret {
	50% {
		opacity: 0;
	}
}

.fp-sof-search__icon {
	flex-shrink: 0;
}

.fp-sof .fp-sof-search__input,
.fp-sof .fp-sof-search__input:focus {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font: 400 18px/26px 'Prompt', sans-serif;
	color: #fff;
	caret-color: #fff;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.fp-sof .fp-sof-search__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
	opacity: 1;
}

.fp-sof-search__input::-webkit-search-cancel-button {
	filter: invert(1);
}

.fp-sof-search__mic {
	flex-shrink: 0;
	padding: 4px;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.fp-sof-search__mic.is-listening {
	animation: fp-sof-pulse 1s ease-in-out infinite;
}

@keyframes fp-sof-pulse {
	50% { opacity: 0.4; }
}

.fp-sof-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #555 transparent;
	padding: 10px 0 !important;
	border-radius: 20px;
	background: #202020;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fp-sof-search__results li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.fp-sof-search__results a,
.fp-sof-search__results .is-empty {
	display: block;
	padding: 10px 30px;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
}

.fp-sof-search__results a:hover,
.fp-sof-search__results a:focus-visible,
.fp-sof-search__results a.is-active {
	background: #2e2e2e;
	color: var(--sof-yellow);
	outline: none;
}

.fp-sof-search__results .is-empty {
	color: var(--sof-text-muted);
}

/* "No entries found" is an <li>: the li reset above (padding 0 !important) would put it flush left */
.fp-sof-search__results li.is-empty {
	padding: 10px 30px !important;
}

.fp-sof-search__title {
	display: block;
}

/* Excerpt of the short text when the words are not in the title */
.fp-sof-search__snippet {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--sof-text-muted);
}

.fp-sof-search__snippet mark {
	padding: 0;
	background: none;
	font-weight: 500;
	color: #fff;
}

.fp-sof-search__results a:hover mark,
.fp-sof-search__results a:focus-visible mark,
.fp-sof-search__results a.is-active mark {
	color: var(--sof-yellow);
}

/* A–Z */

.fp-sof-az {
	padding: 60px 0 100px;
}

.fp-sof-az__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 1140px;
}

.fp-sof-az__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid var(--sof-yellow);
	border-radius: 2px;
	background: transparent;
	font: 700 20px/1 'Prompt', sans-serif;
	color: var(--sof-yellow);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

button.fp-sof-az__letter:hover,
button.fp-sof-az__letter:focus-visible,
.fp-sof-az__letter[aria-expanded='true'] {
	background: var(--sof-yellow);
	color: var(--sof-primary);
	outline: none;
}

.fp-sof-az__letter.is-empty {
	border-color: var(--sof-grey);
	color: var(--sof-grey);
	cursor: default;
}

.fp-sof .fp-sof-az__all {
	margin-top: 60px;
	padding: 0;
	border: 0;
	background: none;
	font-family: 'Prompt', sans-serif;
	cursor: pointer;
}

.fp-sof-az__all[aria-expanded='true'] img {
	transform: rotate(90deg);
}

/* Index panel ("Show all Articles" / single letter) */

.fp-sof-index {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 60px;
	padding: 60px;
	border-radius: 5px;
	background: var(--sof-card);
}

.fp-sof-index[hidden],
.fp-sof-index__group[hidden] {
	display: none;
}

.fp-sof-index__group {
	display: flex;
	gap: 10px;
	padding-top: 30px;
	border-top: 1px solid #c4c4c4;
}

.fp-sof-index__group.is-first {
	border-top: 0;
}

.fp-sof-index__letter {
	flex-shrink: 0;
	width: 192px;
	font-size: 56px !important;
	line-height: 1.2 !important;
}

.fp-sof-index__entries {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 823px;
}

.fp-sof-index__entry {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 700px;
	color: #fff;
}

.fp-sof-index__title {
	font-size: 24px;
	line-height: 1.2;
	transition: color 0.15s;
}

.fp-sof-index__text {
	font-size: 20px;
	line-height: 1.4;
}

.fp-sof-index__entry:hover .fp-sof-index__title,
.fp-sof-index__entry:focus-visible .fp-sof-index__title {
	color: var(--sof-yellow);
}

/* Resources */

.fp-sof-resources {
	padding: 32px 0 120px;
}

.fp-sof-resources__head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 29px;
	align-items: center;
}

.fp-sof-cta {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 30px;
	min-height: 324px;
	padding: 60px;
	border-radius: 30px;
	background:
		radial-gradient(ellipse 120% 160% at 100% 0%, rgba(170, 255, 142, 0.4) 0%, rgba(28, 194, 206, 0.4) 35%, rgba(33, 74, 77, 0.4) 55%, rgba(34, 34, 34, 0.4) 70%),
		#222;
}

.fp-sof-cta__eyebrow {
	margin-bottom: -28px !important; /* 12px to the text like eyebrow → title in the cards (instead of gap 30 + 10) */
	font-size: 16px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
}

.fp-sof-cta__text {
	max-width: 266px;
	margin-top: 10px !important;
	font-size: 24px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.5px !important;
}

.fp-sof-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 29px;
	margin-top: 28px;
}

.fp-sof-card {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 40px 60px;
	border-radius: 30px;
	background: var(--sof-card);
}

/* Cards with a link: the whole card is clickable and gets the gradient of the service boxes on hover */
.fp-sof-card--link {
	position: relative;
}

.fp-sof-card--link .fp-sof-link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fp-sof-card--link:hover,
.fp-sof-card--link:focus-within {
	background: linear-gradient(200deg, rgba(170, 255, 142, 0.5) 0%, rgba(28, 195, 206, 0.5) 15%, #202020 73%);
}

.fp-sof-card__eyebrow {
	margin-bottom: -18px !important; /* 12px to the title instead of the card gap */
	font-size: 16px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	color: #fff;
}

.fp-sof-card__title {
	font-size: 24px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.5px !important;
	color: #fff !important;
}

.fp-sof-card__text {
	flex: 1;
	max-width: 447px;
	margin-top: -10px !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
}

/* Blog */

.fp-sof-blog {
	padding: 120px 0;
	background: var(--sof-light);
	color: var(--sof-black);
}

.fp-sof-blog__title {
	max-width: 564px;
	color: var(--sof-black) !important;
}

.fp-sof-blog__lead {
	max-width: 844px;
	margin-top: 40px !important;
	font-size: 20px !important;
	line-height: 1.4 !important;
}

.fp-sof-posts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px 40px;
	margin-top: 100px !important;
}

/* Theme list styles indent the posts; keep them flush with the headline */
.fp-sof ul.fp-sof-posts,
.fp-sof .fp-sof-posts > li {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.fp-sof-post a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 539px;
	padding-left: 70px;
}

.fp-sof-post a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 30px;
	height: 30px;
	border-radius: 2px;
	background: var(--sof-black);
	transition: background 0.15s;
}

.fp-sof-post a:hover::before,
.fp-sof-post a:focus-visible::before {
	background: var(--sof-yellow);
}

.fp-sof-post__title {
	max-width: 393px;
	font-size: 24px;
	line-height: 1.2;
	color: var(--sof-black);
}

.fp-sof-post__excerpt {
	max-width: 424px;
	font-size: 20px;
	line-height: 1.4;
	color: var(--sof-text-muted);
}

.fp-sof-blog__more {
	display: flex;
	width: fit-content;
	margin: 100px 0 0 auto;
}

/* Responsive */

@media (max-width: 1100px) {
	.fp-sof-hero__title {
		font-size: 44px !important;
	}

	.fp-sof-card,
	.fp-sof-cta {
		padding: 40px;
	}
}

@media (max-width: 900px) {
	.fp-sof-container {
		padding: 0 16px;
	}

	.fp-sof-hero__image {
		position: relative;
		width: 100%;
		height: 300px;
	}

	.fp-sof-hero__inner {
		min-height: 0;
	}

	.fp-sof-hero__text {
		width: 100%;
		max-width: none;
		padding: 40px 0 60px;
	}

	.fp-sof-hero__title {
		font-size: 36px !important;
	}

	.fp-sof-hero__lead {
		margin-top: 24px !important;
		font-size: 18px !important;
	}

	.fp-sof-search {
		height: 64px;
		margin-top: 40px;
		padding: 0 22px;
	}

	.fp-sof-search {
		--sof-caret-left: 62px; /* padding 22 + icon 20 + gap 20 */
	}

	.fp-sof-az {
		padding: 40px 0 60px;
	}

	.fp-sof-az__letters {
		gap: 10px;
	}

	.fp-sof-az__letter {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.fp-sof .fp-sof-az__all,
	.fp-sof-index {
		margin-top: 40px;
	}

	.fp-sof-index {
		gap: 30px;
		padding: 30px 20px;
	}

	.fp-sof-index__group {
		padding-top: 24px;
	}

	.fp-sof-index__letter {
		width: 44px;
		font-size: 36px !important;
	}

	.fp-sof-index__entries {
		gap: 24px;
	}

	.fp-sof-index__title {
		font-size: 20px;
	}

	.fp-sof-index__text {
		font-size: 16px;
	}


	.fp-sof-h2 {
		font-size: 36px !important;
	}

	.fp-sof-resources {
		padding-bottom: 80px;
	}

	.fp-sof-resources__head,
	.fp-sof-cards,
	.fp-sof-posts {
		grid-template-columns: 1fr;
	}

	.fp-sof-cta {
		min-height: 0;
		padding: 40px 30px;
	}

	.fp-sof-card {
		padding: 30px;
	}

	.fp-sof-blog {
		padding: 80px 0;
	}

	.fp-sof-posts {
		gap: 40px;
		margin-top: 60px !important;
	}

	.fp-sof-post a {
		padding-left: 50px;
	}

	.fp-sof-post__title {
		font-size: 20px;
	}

	.fp-sof-post__excerpt {
		font-size: 16px;
	}

	.fp-sof-blog__more {
		margin-top: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp-sof-search::after {
		animation: none;
	}

	.fp-sof-arrow,
	.fp-sof-link > span:last-child,
	.fp-sof-search__mic.is-listening {
		transition: none;
		animation: none;
	}
}
