/*
 * Site header on every page — a copy of the FS Header widget's styles
 * (plugins/fsummit-elementor-widgets/assets/css/fsummit-widgets.css) so
 * pages without Elementor look exactly like the home page.
 */

.fsw-root {
	--bg: #ffffff;
	--text: #0b0f14;
	--muted: #6b7280;
	--line: #e5e7eb;
	--accent: #71f954;
	--maxw: 1200px;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--text);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.fsw-header * {
	box-sizing: border-box;
}

.fsw-header a {
	color: inherit;
	text-decoration: none;
}

.fsw-header img {
	max-width: 100%;
	display: block;
}

.fsw-header .container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.fsw-header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(12px);
	z-index: 50;
}

.fsw-header .header-logo,
.fsw-header .header-logo img {
	width: fit-content;
	max-height: 40px !important;
}

.fsw-header .navbar-brand {
	height: 72px;
	display: flex;
	align-items: center;
	margin: 0;
}

.fsw-header .navbar-brand img {
	width: 215px;
	max-height: 50px;
	object-fit: contain;
}

.fsw-header .nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.fsw-header .nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 16px;
	font-weight: 500;
	color: #374151;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fsw-header .nav-links a {
	position: relative;
}

.fsw-header .nav-links a:before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	background-color: var(--accent);
	width: 100%;
	height: 2.5px;
	border-radius: 8px;
	transform: scaleX(0);
	transition: 0.3s;
}

.fsw-header .nav-links a:hover:before {
	transform: scaleX(1);
}

.fsw-header .nav-cta {
	padding: 12px 18px;
	background: var(--accent);
	border-radius: 14px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid #a3e635;
	transition: all 0.2s ease;
}

.fsw-header .nav-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.fsw-header .burger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 26px;
	height: 18px;
	cursor: pointer;
}

.fsw-header .burger.active span:nth-child(1) {
	transform: rotate(45deg) translateY(11px) translateX(3px);
}

.fsw-header .burger.active span:nth-child(2) {
	opacity: 0;
}

.fsw-header .burger.active span:nth-child(3) {
	transform: rotate(-45deg) translateY(-7px);
}

.fsw-header .burger span {
	height: 3px;
	background: #111827;
	border-radius: 3px;
	transition: 0.3s ease;
}

@media (max-width: 772px) {
	.fsw-header .burger {
		display: flex;
	}

	.fsw-header .nav-links {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: white;
		border-top: 1px solid var(--line);
		display: none;
		text-align: center;
		padding: 16px 0;
		z-index: 100;
	}

	.fsw-header .nav-links a {
		font-size: 16px;
		font-weight: 600;
	}

	.fsw-header .nav-links.show {
		display: flex;
		padding: 24px 0 16px;
		gap: 14px;
	}

	.fsw-header .nav-cta.nav-mobile-btn {
		width: 100%;
		font-weight: 900;
		margin-top: 8px;
		border-radius: 10px;
		max-width: calc(100% - 40px);
		margin-inline: auto;
	}
}

/*
 * Same header box on every page. The old per-page stylesheets (events/,
 * partners/, speakers/ style.css) still style bare `header`, `.container`
 * and `.nav`: on /events that added 12.5px of padding above and below the
 * header and widened its container to 1280px.
 */
.fsw-header {
	padding: 0;
}

.fsw-header .container.nav {
	max-width: var(--maxw) !important;
	height: 72px !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
}

/* Menu one item further left than flush right (one item + the 28px gap). */
@media (min-width: 773px) {
	.fsw-header .nav-links {
		margin-right: 92px;
	}
}

/*
 * Phones: logo on the left, burger on the right with the same 20px margin.
 * header.php's own rules pulled the burger 24px into the edge, and on the
 * home page the empty <nav> sat after the burger and pushed it toward the
 * middle.
 */
@media (max-width: 772px) {
	.fsw-header .container.nav {
		max-width: none !important;
		padding: 0 20px !important;
	}

	.fsw-header .nav > nav {
		order: 2;
	}

	.fsw-header .burger {
		order: 3;
		margin-left: auto !important;
		margin-right: 0 !important;
	}
}

/*
 * Page content lines up with the header logo on every page, as on the home
 * page: a 1200px column with 24px sides (20px on phones). The old page
 * stylesheets used 1280px with 32px sides (/speakers, /partners, /events),
 * 1240px (/insights) and 1180px with 20px sides (/malta, /usa), so the
 * content started up to 32px left of the logo.
 */
.fs-legacy .container,
.fs-legacy .max-w-7xl,
.fs-insights .wrap,
.unic_wrap {
	box-sizing: border-box !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

@media (max-width: 772px) {
	.fs-legacy .container,
	.fs-legacy .max-w-7xl,
	.fs-insights .wrap,
	.unic_wrap {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/*
 * One page heading on /speakers, /partners, /events and /insights: the same
 * small grey eyebrow, the same 64px headline (36px on phones), at the same
 * height under the header. Before, /insights had its own 13px eyebrow and a
 * 74px headline set 16-27px lower, and /partners sat a few pixels higher than
 * /speakers, so the heading jumped when moving between those pages.
 * body.blog limits the /insights part to the index page; the jurisdiction and
 * article pages keep their own heading with breadcrumbs and flags.
 */
.fs-legacy .hero,
body.blog .fs-insights .hero {
	padding-top: var(--fs-hero-top, 68px) !important;
	margin-top: 0 !important;
}

/* /speakers and /events already start 62px (33px on phones) below the header. */
.fs-legacy--speakers .hero,
.fs-legacy--events .hero {
	--fs-hero-top: 6px;
	--fs-hero-top-sm: 9px;
}

.fs-legacy .hero > small,
body.blog .fs-insights .hero > .eyebrow {
	display: block !important;
	margin: 0 0 10px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	letter-spacing: .12em !important;
	text-transform: uppercase;
	color: #6b7280 !important;
}

.fs-legacy .hero h1,
body.blog .fs-insights .hero h1 {
	margin: 0 0 10px !important;
	font-size: 64px !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
	letter-spacing: normal !important;
	color: #111827;
}

body.blog .fs-insights .hero h1 .grey {
	color: #9aa3ad;
}

body.blog .fs-insights .hero .lede,
body.blog .fs-insights .hero .lede p {
	font-size: 18px;
	line-height: 1.5;
}

body.blog .fs-insights .hero .lede {
	margin-top: 0;
}

@media (max-width: 772px) {
	.fs-legacy .hero,
	body.blog .fs-insights .hero {
		padding-top: var(--fs-hero-top-sm, 42px) !important;
	}

	.fs-legacy .hero h1,
	body.blog .fs-insights .hero h1 {
		font-size: 36px !important;
		line-height: 1.3 !important;
		margin-bottom: 14px !important;
	}

	body.blog .fs-insights .hero .lede,
	body.blog .fs-insights .hero .lede p {
		font-size: 16px;
	}
}
