/* SKILL2U custom styles */

:root {
	--s2u-navy: #0a1929;
	--s2u-teal: #14b8b0;
	--s2u-teal-light: #1ee4d8;
	--s2u-teal-dark: #0d9488;
	/* skill2u.com renders in the platform UI font (Segoe UI, SF Pro, Roboto...), no web fonts. */
	--s2u-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--s2u-heading: var(--s2u-font);
}

html {
	scroll-behavior: smooth;
}

body,
body[class*="elementor-kit-"] {
	font-family: var(--s2u-font);
	color: var(--s2u-navy);
	letter-spacing: -.011em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	--e-global-typography-primary-font-family: var(--s2u-heading);
	--e-global-typography-secondary-font-family: var(--s2u-heading);
	--e-global-typography-text-font-family: var(--s2u-font);
	--e-global-typography-accent-font-family: var(--s2u-heading);
}

/* Headings and UI labels. */
body :is(h1, h2, h3, h4, h5, h6),
body .elementor-widget :is(.elementor-heading-title, .elementor-button, .elementor-headline, .elementor-counter, .elementor-cta__title, .elementor-cta__button, .elementor-ribbon-inner, .elementor-testimonial__name, .elementor-nav-menu, .elementor-nav-menu a) {
	font-family: var(--s2u-heading);
}

body :is(h1, h2, h3, h4, h5, h6),
body .elementor-widget .elementor-heading-title {
	letter-spacing: -.03em;
}

/* Running text. */
body .elementor-widget :is(.elementor-icon-list-text, .elementor-testimonial__text, .elementor-testimonial__title, .elementor-cta__description) {
	font-family: var(--s2u-font);
}

/* Teal gradient highlight used inside headings ("their people.", "One Academy." ...). */
.s2u-accent {
	color: var(--s2u-teal);
	background: linear-gradient(135deg, var(--s2u-teal) 0%, var(--s2u-teal-light) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Eyebrow badges ("Why leaders trust us", "Coverage" ...), as on skill2u.com. */
body .elementor-widget-heading.s2u-badge .elementor-heading-title {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid rgba(20, 184, 176, .25);
	border-radius: 999px;
	background: rgba(20, 184, 176, .12);
	color: var(--s2u-teal-dark);
	font-family: var(--s2u-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}

body .elementor-widget-heading.s2u-badge--dark .elementor-heading-title {
	border-color: rgba(30, 228, 216, .2);
	background: rgba(20, 184, 176, .15);
	color: var(--s2u-teal-light);
}

/* Section anchors clear the sticky header. */
[id] {
	scroll-margin-top: 80px;
}

/* Keep the hero balanced at tall desktop sizes and allow its title to wrap. */
body.home #top {
	justify-content: center;
	overflow: clip;
}
body.home #top .elementor-headline-dynamic-wrapper {
	max-width: 100%;
	white-space: normal;
}
body.home #top .elementor-headline-dynamic-text {
	white-space: normal;
}
body.home #top .elementor-headline {
	text-wrap: balance;
	font-size: clamp(32px, 4.2vw, 60px);
}
body.home #top .elementor-headline-dynamic-text { font-size: inherit; }
body.home .e-con, body.home .elementor-widget {
	min-width: 0;
}

/* These three controls used Font Awesome 6 names with Elementor's FA5 font. */
/* Font Awesome Free 5.15.3, SIL OFL 1.1: https://fontawesome.com/license/free */
@font-face {
	font-family: 'Skill2U Icons';
	src: url('../fonts/fa-solid-900.woff2') format('woff2');
	font-style: normal;
	font-weight: 900;
	font-display: block;
}
body.home #coverage .fas { font-family: 'Skill2U Icons'; font-style: normal; font-weight: 900; }
body.home .elementor-widget-text-editor,
body.home .elementor-widget-text-editor p,
body.home .elementor-widget-text-editor strong { font-family: var(--s2u-font); }
body.home #coverage .fa-gauge-high::before { content: "\f3fd"; }
body.home #coverage .fa-shield-halved::before { content: "\f3ed"; }
body.home #coverage .fa-arrows-rotate::before { content: "\f2f1"; }

/* A separate, continuously moving accreditation row and static industry row. */
body.home #partners:has(.s2u-ecosystem) .elementor-widget-heading:nth-child(4) {
	display: none;
}
.s2u-ecosystem { width: 100%; padding-top: 20px; }
.s2u-logo-window { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.s2u-logo-track { display: flex; width: max-content; animation: s2u-logos 32s linear infinite; }
.s2u-logo-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.s2u-logo-group .s2u-partner-logo { width: 148px; height: 76px; object-fit: contain; }
.s2u-logo-window:hover .s2u-logo-track { animation-play-state: paused; }
body.home .s2u-industry-title { margin: 42px 0 24px; color: var(--s2u-navy); font: 600 12px/1.5 var(--s2u-font); letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.s2u-industry-logos { display: flex; align-items: center; justify-content: center; gap: 48px; }
.s2u-industry-logos .s2u-partner-logo { width: 130px; height: 68px; object-fit: contain; }
@keyframes s2u-logos { to { transform: translateX(-50%); } }

/* A consistent dark scrim keeps the guarantee text legible over the photos. */
.s2u-guarantee-subtitle { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.s2u-guarantee-title { display: block; font-size: 28px; line-height: 1.15; }
body.home #why .e-con:has(> .elementor-widget-heading .s2u-guarantee-title)::before {
	background: linear-gradient(180deg, rgba(10,25,41,0) 12%, rgba(10,25,41,.75) 48%, #0a1929 100%);
	opacity: 1;
}
body.home :is(a, button, [role="button"]):focus-visible { outline: 3px solid #14b8b0; outline-offset: 4px; }

@media (max-width: 1024px) {
	body.home #top > .e-con > .e-con-inner { flex-direction: column; }
	body.home #top > .e-con > .e-con-inner > .e-con { width: 100%; }
	body.home #top > .e-con > .e-con-inner > .e-con:last-child { max-width: 440px; align-self: center; }
	body.home #top .elementor-headline { font-size: 48px; }
	body.home .elementor-location-header .elementor-widget-nav-menu { width: auto; flex-grow: 0; margin-left: auto; }
	body.home .elementor-location-header .elementor-widget-button { width: auto; flex: 0 0 auto; }
	body.home .elementor-location-header .elementor-button { white-space: nowrap; padding: 12px 18px; }
	body.home .elementor-location-header .elementor-button-text { flex-shrink: 0; }
	body.home .elementor-location-header .e-con-inner { gap: 14px; }
	body.home .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { min-width: 220px; right: 0; left: auto; }
}
@media (max-width: 767px) {
	body.home .elementor-location-header .elementor-widget-image { width: 100px; flex: 0 0 100px; }
	body.home .elementor-location-header .elementor-button { padding: 10px 12px; }
	body.home .elementor-location-header .elementor-menu-toggle { padding: 6px; }
	body.home .elementor-location-header .e-con-inner { gap: 10px; }
	body.home #top .elementor-headline { font-size: clamp(24px, 8vw, 38px); line-height: 1.12; letter-spacing: -1px; }
	body.home #top .elementor-headline-dynamic-wrapper { width: auto !important; }
	body.home #top .elementor-headline-dynamic-text { font-size: inherit; }
	body.home #top .elementor-headline-dynamic-text > span { white-space: normal; }
	body.home #top .elementor-widget-animated-headline { max-width: 100%; }
	.s2u-logo-group { gap: 32px; padding-right: 32px; }
	.s2u-logo-group .s2u-partner-logo { width: 110px; height: 64px; }
	.s2u-industry-logos { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.s2u-logo-track { animation: none; }
	.s2u-logo-window { overflow-x: auto; mask-image: none; }
	.s2u-logo-group[aria-hidden] { display: none; }
	body.home #top img, body.home #guarantee img { animation: none !important; }
}
