/**
 * Theme footer — Figma SOM directory 169:4264.
 * Used by wp-content/themes/eduplat/footer.php (via get_footer()).
 */
.eduplat-footer {
	box-sizing: border-box;
	width: 100%;
	padding: 60px 40px 80px;
	background: #1a1a1a;
	color: #e0e0e0;
	font-family: var(--ed-font-sans, "Figtree", system-ui, sans-serif);
}

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

/* Isolate from parent theme styles: footer typography stays on two
   gray/white steps per Figma 389:2992. */
.eduplat-footer p,
.eduplat-footer li,
.eduplat-footer span,
.eduplat-footer a,
.eduplat-footer a:visited {
	color: #e0e0e0;
}

.eduplat-footer a {
	text-decoration: none;
}

.eduplat-footer__container {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	max-width: 1335px;
	margin-inline: auto;
}

.eduplat-footer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.eduplat-footer__row--logo {
	flex-wrap: wrap;
}

.eduplat-footer__logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

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

.eduplat-footer__logo {
	display: block;
	height: 32px;
	width: auto;
	filter: brightness(0) invert(1);
}

/* Tabs with 4 px underline */
.eduplat-footer__tab {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	text-decoration: none;
	color: inherit;
	cursor: default;
}

a.eduplat-footer__tab {
	cursor: pointer;
}

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

/* Arrow icon to the right of the label.
   Collapsed to width 0 by default — invisible, layout unchanged.
   On :hover/:focus-visible width becomes 8px and the icon fades in;
   the tab’s ::after underline grows with the tab because it is width: 100%,
   so it extends to meet the icon. */
.eduplat-footer__tab-label::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 8px;
	margin-left: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 8px 8px;
	opacity: 0;
	transition:
		width 0.2s ease,
		margin-left 0.2s ease,
		opacity 0.2s ease;
}

.eduplat-footer__tab:hover .eduplat-footer__tab-label::after,
.eduplat-footer__tab:focus-visible .eduplat-footer__tab-label::after {
	width: 8px;
	margin-left: 4px;
	opacity: 1;
}

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

.eduplat-footer__tab--mirari::after {
	background: #244fd8;
}

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

.eduplat-footer__tab--directory::after {
	background: #0d9488;
}

.eduplat-footer__tab--media::after {
	background: #ff8c32;
}

.eduplat-footer__tab.is-current .eduplat-footer__tab-label {
	color: #244fd8;
}

/* Tinted arrow matches each tab underline color. */
.eduplat-footer__tab--mirari:hover .eduplat-footer__tab-label::after,
.eduplat-footer__tab--mirari:focus-visible .eduplat-footer__tab-label::after {
	background-image: url("../img/blue.svg");
}

.eduplat-footer__tab--education:hover .eduplat-footer__tab-label::after,
.eduplat-footer__tab--education:focus-visible .eduplat-footer__tab-label::after {
	background-image: url("../img/blue.svg");
}

.eduplat-footer__tab--directory:hover .eduplat-footer__tab-label::after,
.eduplat-footer__tab--directory:focus-visible .eduplat-footer__tab-label::after {
	background-image: url("../img/teal.svg");
}

.eduplat-footer__tab--media:hover .eduplat-footer__tab-label::after,
.eduplat-footer__tab--media:focus-visible .eduplat-footer__tab-label::after {
	background-image: url("../img/orange.svg");
}

.eduplat-footer__rule {
	border: 0;
	border-top: 1px solid #333333;
	margin: 0;
	width: 100%;
	height: 0;
}

/* Navigation — even distribution like the mockup */
.eduplat-footer__nav {
	width: 100%;
}

.eduplat-footer__nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 16px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: #e0e0e0;
}

.eduplat-footer__nav-link {
	color: #e0e0e0;
	text-decoration: none;
	white-space: nowrap;
}

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

.eduplat-footer__tabs-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.eduplat-footer__tabs-sep {
	font-size: 16px;
	line-height: 1.4;
	color: #e0e0e0;
	padding: 0 4px;
	user-select: none;
}

.eduplat-footer__disclaimer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	border-top: 1px solid #333333;
	border-bottom: 1px solid #333333;
	padding: 40px 20px;
}

.eduplat-footer__disclaimer {
	flex: 1 1 480px;
	min-width: 0;
}

.eduplat-footer__group {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.eduplat-footer__group-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	text-transform: uppercase;
	color: #ffffff;
}

.eduplat-footer__disclaimer-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #ffffff;
}

.eduplat-footer__disclaimer-main {
	font-weight: 400;
}

.eduplat-footer__disclaimer-strong {
	font-weight: 600;
}

.eduplat-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	width: 100%;
}

.eduplat-footer__copyright {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: #e0e0e0;
	white-space: nowrap;
}

.eduplat-footer__social {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	flex-shrink: 0;
}

.eduplat-footer__social-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
}

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

.eduplat-footer__social-link {
	color: #e0e0e0;
	text-decoration: none;
	white-space: nowrap;
}

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

.eduplat-footer__credit {
	display: flex;
	align-items: center;
	gap: 7.678px;
}

.eduplat-footer__credit-prefix {
	font-size: 16px;
	line-height: 1.4;
	color: #e0e0e0;
	white-space: nowrap;
}

.eduplat-footer__credit-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

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

.eduplat-footer__credit-link:hover .eduplat-footer__credit-logo,
.eduplat-footer__credit-link:focus-visible .eduplat-footer__credit-logo {
	opacity: 0.85;
}

.eduplat-footer__credit-logo {
	display: block;
	height: 24px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 900px) {
	.eduplat-footer {
		padding: 48px 24px 64px;
	}

	.eduplat-footer__nav-list {
		flex-direction: column;
		align-items: flex-start;
	}

	.eduplat-footer__disclaimer-row {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px 16px;
	}

	.eduplat-footer__disclaimer {
		flex: 0 1 auto;
	}

	.eduplat-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
