/**
 * Theme header — paired with wp-content/themes/eduplat/header.php
 * (loaded via standard get_header()).
 *
 * Visual language mirrors footer.css: dark background, white brand label,
 * 4 px "Education" tab underline. Update copy/links in header.php, not here.
 */
.eduplat-header {
	box-sizing: border-box;
	width: 100%;
	padding: 20px 40px;
	background: #1a1a1a;
	color: #e0e0e0;
	font-family: var(--ed-font-sans, "Figtree", system-ui, sans-serif);
}

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

.eduplat-header a,
.eduplat-header a:visited {
	color: #e0e0e0;
	text-decoration: none;
}

.eduplat-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: 1335px;
	margin-inline: auto;
}

.eduplat-header__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.eduplat-header__brand-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
	border-radius: 4px;
}

.eduplat-header__brand {
	margin: 0;
	font-family: var(--ed-font-display, "DM Sans", "Figtree", system-ui, sans-serif);
	font-weight: 700;
	font-size: 16.941px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
}

.eduplat-header__tab {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	cursor: default;
}

.eduplat-header__tab-label {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: #e0e0e0;
	white-space: nowrap;
}

.eduplat-header__tab::after {
	content: "";
	display: block;
	width: 100%;
	height: 4px;
	margin-top: 0;
	border-radius: 0;
}

.eduplat-header__tab--education::after {
	background: #1e40af;
}

.eduplat-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.eduplat-header__nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 32px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: #e0e0e0;
}

.eduplat-header__nav-link {
	color: #e0e0e0;
	white-space: nowrap;
}

a.eduplat-header__nav-link:hover,
a.eduplat-header__nav-link:focus-visible {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eduplat-header__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.eduplat-header__cta {
	appearance: none;
	border: 0;
	background: #1e40af;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	padding: 12px 24px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
}

.eduplat-header__cta:hover,
.eduplat-header__cta:focus-visible {
	background: #1d3aa0;
	outline: none;
}

.eduplat-header__cta:focus-visible {
	box-shadow: 0 0 0 2px #ffffff;
}

.eduplat-header__skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eduplat-header__skip-link:focus {
	position: fixed;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	background: #ffffff;
	color: #1a1a1a;
	border-radius: 4px;
	z-index: 10000;
	font-weight: 600;
}

@media (max-width: 900px) {
	.eduplat-header {
		padding: 16px 24px;
	}

	.eduplat-header__container {
		flex-wrap: wrap;
		gap: 16px;
	}

	.eduplat-header__nav {
		order: 3;
		flex-basis: 100%;
		justify-content: flex-start;
	}

	.eduplat-header__nav-list {
		justify-content: flex-start;
		gap: 8px 20px;
	}
}
