/*
Theme Name: EDConsult Pro
Description: Main Stylesheet
*/

@layer reset, variables, base, layout, components, utilities, overrides;

/* Fix for custom cursor bug stretching the page */
.ecp-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	/* hidden by default */
}

@layer variables {
	:root {
		/* Colors */
		--ecp-primary: #0073e6;
		/* Bright Blue */
		--ecp-primary-hover: #005bb5;
		--ecp-accent: #f5a623;
		/* Orange Accent */
		--ecp-accent-hover: #d48c1c;
		--ecp-success: #34a853;
		/* Green */
		--ecp-warning: #f5a623;
		--ecp-danger: #d0021b;

		--ecp-surface: #ffffff;
		--ecp-surface-2: #f8f9fa;
		/* Light grey */
		--ecp-border: #eaeaea;
		--ecp-border-dark: #cccccc;

		--ecp-text: #2d2d2d;
		/* Dark grey */
		--ecp-text-muted: #666666;
		--ecp-text-light: #ffffff;

		/* Typography */
		--ecp-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
		--ecp-font-heading: 'Outfit', var(--ecp-font-primary);
		--ecp-base-size: 16px;
		--ecp-line-height: 1.6;

		/* Spacing */
		--ecp-spacing-xs: 0.25rem;
		--ecp-spacing-sm: 0.5rem;
		--ecp-spacing-md: 1rem;
		--ecp-spacing-lg: 1.5rem;
		--ecp-spacing-xl: 3rem;
		--ecp-spacing-xxl: 5rem;

		/* Layout */
		--ecp-container-max: 1200px;
		--ecp-container-padding: 1.5rem;
		--ecp-border-radius: 6px;
		--ecp-border-radius-lg: 12px;
		--ecp-border-radius-pill: 50px;
		--ecp-transition: all 0.25s ease-in-out;
		--ecp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
		--ecp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
	}
}

@layer reset {

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

	body,
	h1,
	h2,
	h3,
	h4,
	p,
	figure,
	blockquote,
	dl,
	dd {
		margin: 0;
	}

	ul[role="list"],
	ol[role="list"] {
		list-style: none;
	}

	html:focus-within {
		scroll-behavior: smooth;
	}

	body {
		min-height: 100vh;
		text-rendering: optimizeSpeed;
		line-height: var(--ecp-line-height);
	}

	a:not([class]) {
		text-decoration-skip-ink: auto;
	}

	img,
	picture,
	svg {
		max-width: 100%;
		display: block;
	}

	input,
	button,
	textarea,
	select {
		font: inherit;
	}

	@media (prefers-reduced-motion: reduce) {
		html:focus-within {
			scroll-behavior: auto;
		}

		*,
		*::before,
		*::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
			scroll-behavior: auto !important;
		}
	}
}

@layer base {
	body {
		font-family: var(--ecp-font-primary);
		color: var(--ecp-text);
		background-color: var(--ecp-surface);
		font-size: var(--ecp-base-size);
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		font-family: var(--ecp-font-heading);
		font-weight: 700;
		line-height: 1.2;
		color: var(--ecp-primary);
		margin-bottom: var(--ecp-spacing-md);
	}

	h1 {
		font-size: clamp(2.5rem, 5vw, 4rem);
	}

	h2 {
		font-size: clamp(2rem, 4vw, 3rem);
	}

	h3 {
		font-size: clamp(1.5rem, 3vw, 2rem);
	}

	h4 {
		font-size: clamp(1.25rem, 2vw, 1.5rem);
	}

	a {
		color: var(--ecp-accent);
		text-decoration: none;
		transition: var(--ecp-transition);
	}

	a:hover,
	a:focus {
		color: var(--ecp-accent-hover);
	}

	p {
		margin-bottom: var(--ecp-spacing-md);
	}

	/* Screen Reader Text */
	.screen-reader-text {
		border: 0;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
		word-wrap: normal !important;
	}
}

@layer layout {
	.ecp-container {
		width: 100%;
		max-width: var(--ecp-container-max);
		margin-left: auto;
		margin-right: auto;
		padding-left: var(--ecp-container-padding);
		padding-right: var(--ecp-container-padding);
	}

	.ecp-section {
		padding: var(--ecp-spacing-xxl) 0;
	}

	.ecp-page-wrapper {
		padding: var(--ecp-spacing-xl) 4%;
	}

	.ecp-page-wrapper--with-sidebar {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--ecp-spacing-xl);
	}

	@media (min-width: 992px) {
		.ecp-page-wrapper--with-sidebar {
			grid-template-columns: 3fr 1fr;
		}
	}

	.ecp-grid {
		display: grid;
		gap: var(--ecp-spacing-lg);
	}

	.ecp-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.ecp-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.ecp-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}

	@media (max-width: 992px) {
		.ecp-grid--3, .ecp-grid--4 {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (max-width: 768px) {
		.ecp-grid--2, .ecp-grid--3, .ecp-grid--4 {
			grid-template-columns: 1fr;
		}
	}

	.ecp-grid--gap-sm {
		gap: var(--ecp-spacing-md);
	}

	.ecp-grid--gap-lg {
		gap: var(--ecp-spacing-xl);
	}

	.ecp-grid--align-center {
		align-items: center;
	}

	.ecp-flex {
		display: flex;
	}

	.ecp-flex-between {
		justify-content: space-between;
		align-items: center;
	}

	.ecp-flex-center {
		justify-content: center;
		align-items: center;
	}
}

@layer components {

	/* Header — base */
	.ecp-header {
		background: var(--ecp-surface);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 100;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
		transition: background 0.35s ease, box-shadow 0.35s ease;
	}

	/* Utility Bar */
	.ecp-utility-bar {
		background: #2d2d2d;
		/* Dark strip */
		color: var(--ecp-surface);
		border-bottom: none;
		padding: 0.5rem 0;
		font-size: 0.875rem;
	}

	.ecp-utility-bar__inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.ecp-utility-bar__left,
	.ecp-utility-bar__center,
	.ecp-utility-bar__right {
		display: flex;
		align-items: center;
		gap: 1.5rem;
	}

	.ecp-utility-bar__office-link,
	.ecp-utility-bar__social-link {
		display: flex;
		align-items: center;
		gap: 0.25rem;
		color: #e0e0e0;
	}

	.ecp-utility-bar__office-link:hover,
	.ecp-utility-bar__social-link:hover {
		color: var(--ecp-surface);
	}

	/* Language Switcher */
	.ecp-lang-switcher {
		position: relative;
	}

	.ecp-lang-switcher__trigger {
		background: none;
		border: none;
		display: flex;
		align-items: center;
		gap: 0.25rem;
		color: #e0e0e0;
		cursor: pointer;
		padding: 0;
	}

	.ecp-lang-switcher__trigger:hover {
		color: var(--ecp-surface);
	}

	.ecp-lang-switcher__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		background: var(--ecp-surface);
		border: 1px solid var(--ecp-border);
		border-radius: var(--ecp-border-radius);
		box-shadow: var(--ecp-shadow);
		padding: 0.5rem 0;
		min-width: 120px;
		z-index: 10;
		margin: 0;
		list-style: none;
	}

	.ecp-lang-switcher:hover .ecp-lang-switcher__menu,
	.ecp-lang-switcher:focus-within .ecp-lang-switcher__menu {
		display: block;
	}

	.ecp-lang-switcher__menu li a {
		display: block;
		padding: 0.5rem 1rem;
		color: var(--ecp-text);
	}

	.ecp-lang-switcher__menu li a:hover {
		background: var(--ecp-surface-2);
		color: var(--ecp-primary);
	}

	/* Nav Wrapper — fixed height so logo resize never stretches the header */
	.ecp-nav-wrapper {
		--ecp-nav-height: 90px;
		height: var(--ecp-nav-height);
	}

	.ecp-nav-wrapper__inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 100%;
	}

	/* Logo — constrained inside the fixed nav row */
	.ecp-nav__logo {
		flex-shrink: 0;
		display: flex;
		align-items: center;
		height: 100%;
	}

	.ecp-nav__logo img {
		/* max-height is overridden by customizer inline CSS; clamp to 80% of row height so it never overflows */
		max-height: min( var(--ecp-logo-height, 40px), calc( var(--ecp-nav-height) * 0.80 ) );
		height: auto;
		width: auto;
		display: block;
	}

	.ecp-nav__site-name {
		font-family: var(--ecp-font-heading);
		font-size: 1.5rem;
		font-weight: 700;
		color: var(--ecp-primary);
	}

	/* Desktop Nav */
	.ecp-nav {
		display: none;
	}

	@media (min-width: 992px) {
		.ecp-nav {
			display: block;
		}

		.ecp-nav__hamburger {
			display: none;
		}
	}

	.ecp-nav__menu {
		display: flex;
		gap: 1.5rem;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.ecp-nav__item {
		position: relative;
	}

	.ecp-nav__link {
		display: flex;
		align-items: center;
		gap: 0.25rem;
		color: var(--ecp-primary);
		font-weight: 500;
		padding: 0.5rem 0;
	}

	.ecp-nav__link:hover,
	.ecp-nav__item:hover>.ecp-nav__link {
		color: var(--ecp-accent);
	}

	/* Simple Dropdown for Nav */
	.ecp-nav__sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		background: var(--ecp-surface);
		min-width: 200px;
		box-shadow: var(--ecp-shadow-lg);
		border-radius: var(--ecp-border-radius);
		padding: 0.5rem 0;
		list-style: none;
		margin: 0;
		z-index: 20;
	}

	.ecp-nav__item:hover>.ecp-nav__sub-menu {
		display: block;
	}

	.ecp-nav__sub-menu .ecp-nav__item {
		width: 100%;
	}

	.ecp-nav__sub-menu .ecp-nav__link {
		padding: 0.5rem 1.5rem;
	}

	/* Mobile Hamburger */
	.ecp-nav__hamburger {
		background: none;
		border: none;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 0.5rem;
	}

	.ecp-nav__hamburger-line {
		display: block;
		width: 24px;
		height: 2px;
		background-color: var(--ecp-primary);
		transition: var(--ecp-transition);
	}

	/* Mobile Menu */
	.ecp-mobile-menu {
		display: none;
	}

	/* Buttons */
	.ecp-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.75rem 2rem;
		font-weight: 600;
		border-radius: var(--ecp-border-radius-pill);
		transition: var(--ecp-transition);
		cursor: pointer;
		text-align: center;
		border: 2px solid transparent;
		font-family: var(--ecp-font-primary);
	}

	.ecp-btn--primary {
		background: var(--ecp-primary);
		color: var(--ecp-surface);
	}

	.ecp-btn--primary:hover {
		background: var(--ecp-primary-hover);
		color: var(--ecp-surface);
		transform: translateY(-2px);
		box-shadow: var(--ecp-shadow);
	}

	.ecp-btn--accent {
		background: var(--ecp-accent);
		color: var(--ecp-surface);
	}

	.ecp-btn--accent:hover {
		background: var(--ecp-accent-hover);
		color: var(--ecp-surface);
	}

	.ecp-btn--outline {
		border-color: var(--ecp-border-dark);
		color: var(--ecp-text);
	}

	.ecp-btn--outline:hover {
		border-color: var(--ecp-primary);
	}

	.ecp-btn--outline-primary {
		border-color: var(--ecp-primary);
		color: var(--ecp-primary);
	}

	.ecp-btn--outline-primary:hover {
		background: var(--ecp-primary);
		color: var(--ecp-surface);
	}

	.ecp-btn--outline-accent {
		border-color: var(--ecp-accent);
		color: var(--ecp-accent);
	}

	.ecp-btn--outline-accent:hover {
		background: var(--ecp-accent);
		color: var(--ecp-surface);
	}

	.ecp-btn--outline-white {
		border-color: var(--ecp-surface);
		color: var(--ecp-surface);
	}

	.ecp-btn--outline-white:hover {
		background: var(--ecp-surface);
		color: var(--ecp-primary);
	}

	.ecp-btn--white {
		background: var(--ecp-surface);
		color: var(--ecp-primary);
	}

	.ecp-btn--white:hover {
		background: var(--ecp-surface-2);
	}

	.ecp-btn--lg {
		padding: 1rem 2rem;
		font-size: 1.125rem;
	}

	/* Hero */
	.ecp-hero {
		position: relative;
		min-height: 80vh;
		display: flex;
		align-items: center;
		padding: var(--ecp-spacing-xxl) 0;
		color: var(--ecp-text-light);
		overflow: hidden;
	}

	.ecp-hero__bg {
		position: absolute;
		inset: 0;
		z-index: -1;
	}

	.ecp-hero__image,
	.ecp-hero__video {
		width: 100%;
		height: 100%;
		object-fit: cover;
		background-size: cover;
		background-position: center;
	}

	.ecp-hero__overlay {
		position: absolute;
		inset: 0;
		background: linear-gradient(to right, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.4) 100%);
	}

	.ecp-hero__inner {
		position: relative;
		z-index: 1;
	}

	.ecp-hero__content {
		max-width: 700px;
	}

	.ecp-hero__title {
		color: var(--ecp-text-light);
		margin-bottom: var(--ecp-spacing-lg);
	}

	.ecp-hero__subtext {
		font-size: 1.25rem;
		margin-bottom: var(--ecp-spacing-xl);
		opacity: 0.9;
	}

	.ecp-hero__actions {
		display: flex;
		gap: var(--ecp-spacing-md);
		flex-wrap: wrap;
		margin-bottom: var(--ecp-spacing-xl);
	}

	/* Inner Hero */
	.ecp-inner-hero {
		background: var(--ecp-primary);
		color: var(--ecp-text-light);
		padding: var(--ecp-spacing-xxl) 0 var(--ecp-spacing-xl);
		background-size: cover;
		background-position: center;
		position: relative;
	}

	.ecp-inner-hero[style] {
		position: relative;
		z-index: 1;
	}

	.ecp-inner-hero[style]::before {
		content: '';
		position: absolute;
		inset: 0;
		background: rgba(10, 22, 40, 0.85);
		z-index: -1;
	}

	.ecp-inner-hero__title {
		color: var(--ecp-text-light);
		margin-bottom: var(--ecp-spacing-sm);
	}

	/* Cards */
	.ecp-card {
		background: var(--ecp-surface);
		border-radius: var(--ecp-border-radius-lg);
		border: 1px solid var(--ecp-border);
		overflow: hidden;
		transition: var(--ecp-transition);
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.ecp-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--ecp-shadow-lg);
	}

	.ecp-card__media {
		position: relative;
		aspect-ratio: 16/9;
		overflow: hidden;
	}

	.ecp-card__media img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: var(--ecp-transition);
	}

	.ecp-card:hover .ecp-card__media img {
		transform: scale(1.05);
	}

	.ecp-card__media--contain img {
		object-fit: contain;
		padding: var(--ecp-spacing-md);
	}

	.ecp-card__content {
		padding: var(--ecp-spacing-lg);
		display: flex;
		flex-direction: column;
		flex-grow: 1;
	}

	.ecp-card__title {
		margin-bottom: var(--ecp-spacing-sm);
	}

	.ecp-card__title a {
		color: var(--ecp-primary);
	}

	.ecp-card__title a:hover {
		color: var(--ecp-accent);
	}

	.ecp-card__footer {
		margin-top: auto;
		padding-top: var(--ecp-spacing-md);
		border-top: 1px solid var(--ecp-border);
	}

	.ecp-card__meta-tags {
		display: flex;
		gap: var(--ecp-spacing-sm);
		margin-bottom: var(--ecp-spacing-md);
		flex-wrap: wrap;
	}

	.ecp-card__tag {
		font-size: 0.75rem;
		font-weight: 600;
		text-transform: uppercase;
		background: var(--ecp-surface-2);
		padding: 0.25rem 0.5rem;
		border-radius: 4px;
		color: var(--ecp-primary);
		display: inline-flex;
		align-items: center;
		gap: 0.25rem;
	}

	.ecp-card__tag svg {
		width: 12px;
		height: 12px;
	}

	/* Search Form */
	.ecp-search-form {
		background: var(--ecp-surface);
		border-radius: var(--ecp-border-radius);
		padding: var(--ecp-spacing-xs);
		box-shadow: var(--ecp-shadow);
	}

	.ecp-search-form__inner {
		display: flex;
		align-items: center;
	}

	.ecp-search-form__icon {
		padding: 0 var(--ecp-spacing-md);
		color: var(--ecp-text-muted);
	}

	.ecp-search-form label {
		flex-grow: 1;
	}

	.ecp-search-form__field {
		width: 100%;
		border: none;
		background: transparent;
		padding: var(--ecp-spacing-md) 0;
		outline: none;
		font-size: 1rem;
	}

	.ecp-search-form__field:focus {
		outline: none;
	}

	/* Forms Generic */
	.ecp-input {
		width: 100%;
		padding: 0.75rem 1rem;
		border: 1px solid var(--ecp-border-dark);
		border-radius: var(--ecp-border-radius);
		background: var(--ecp-surface);
		transition: var(--ecp-transition);
	}

	.ecp-input:focus {
		outline: none;
		border-color: var(--ecp-accent);
		box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.1);
	}

	.ecp-form__label {
		display: block;
		margin-bottom: var(--ecp-spacing-xs);
		font-weight: 500;
	}

	.ecp-form__field {
		margin-bottom: var(--ecp-spacing-lg);
	}

	/* CTA Band */
	.ecp-cta-band {
		padding: var(--ecp-spacing-xl) 0;
		background: linear-gradient(135deg, var(--ecp-primary) 0%, var(--ecp-accent) 100%);
		color: var(--ecp-text-light);
		text-align: center;
	}

	.ecp-cta-band__heading {
		color: var(--ecp-text-light);
	}

	/* Stats Band */
	.ecp-stats-band {
		padding: var(--ecp-spacing-xl) 0;
	}

	.ecp-stat-item {
		text-align: center;
	}

	.ecp-stat-item__number {
		font-size: 3rem;
		font-weight: 700;
		font-family: var(--ecp-font-heading);
	}

	/* Sidebar Widgets */
	.ecp-widget {
		background: var(--ecp-surface);
		border: 1px solid var(--ecp-border);
		border-radius: var(--ecp-border-radius-lg);
		padding: var(--ecp-spacing-lg);
		margin-bottom: var(--ecp-spacing-lg);
	}

	.ecp-widget__title {
		font-size: 1.25rem;
		border-bottom: 2px solid var(--ecp-border);
		padding-bottom: var(--ecp-spacing-sm);
		margin-bottom: var(--ecp-spacing-md);
	}

	.ecp-widget--action {
		background: var(--ecp-surface-2);
		border: none;
		text-align: center;
	}

	/* Breadcrumbs */
	.ecp-breadcrumbs {
		font-size: 0.85rem;
		font-weight: 500;
		color: var(--ecp-text-muted);
		letter-spacing: 0.01em;
		font-family: var(--ecp-font-primary);
	}

	.ecp-breadcrumbs__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.ecp-breadcrumbs__item {
		display: inline-flex;
		align-items: center;
	}

	.ecp-breadcrumbs__item a {
		color: var(--ecp-text-muted);
		text-decoration: none;
		transition: color 0.2s ease;
	}

	.ecp-breadcrumbs__item a:hover {
		color: var(--ecp-primary);
	}

	.ecp-breadcrumbs__item[aria-current="page"] {
		color: var(--ecp-text);
		font-weight: 600;
	}

	.ecp-breadcrumbs__sep {
		margin: 0 0.5rem;
		display: inline-flex;
		align-items: center;
		color: #cbd5e1;
	}

	.ecp-breadcrumbs__sep svg {
		width: 14px;
		height: 14px;
		stroke-width: 2.5;
	}

	/* Tabs */
	.ecp-tabs__nav {
		display: flex;
		gap: 1rem;
		border-bottom: 1px solid var(--ecp-border);
		margin-bottom: var(--ecp-spacing-lg);
		padding: 0;
		list-style: none;
		overflow-x: auto;
	}

	.ecp-tabs__btn {
		background: none;
		border: none;
		border-bottom: 2px solid transparent;
		padding: var(--ecp-spacing-sm) var(--ecp-spacing-md);
		font-weight: 600;
		color: var(--ecp-text-muted);
		cursor: pointer;
		white-space: nowrap;
	}

	.ecp-tabs__btn:hover,
	.ecp-tabs__btn.is-active {
		color: var(--ecp-primary);
		border-bottom-color: var(--ecp-accent);
	}
}

@layer utilities {
	.ecp-text-center {
		text-align: center;
	}

	.ecp-text-left {
		text-align: left;
	}

	.ecp-text-right {
		text-align: right;
	}

	.ecp-mt-0 {
		margin-top: 0;
	}

	.ecp-mt-xs {
		margin-top: var(--ecp-spacing-xs);
	}

	.ecp-mt-sm {
		margin-top: var(--ecp-spacing-sm);
	}

	.ecp-mt-md {
		margin-top: var(--ecp-spacing-md);
	}

	.ecp-mt-lg {
		margin-top: var(--ecp-spacing-lg);
	}

	.ecp-mt-xl {
		margin-top: var(--ecp-spacing-xl);
	}

	.ecp-mb-0 {
		margin-bottom: 0;
	}

	.ecp-mb-xs {
		margin-bottom: var(--ecp-spacing-xs);
	}

	.ecp-mb-sm {
		margin-bottom: var(--ecp-spacing-sm);
	}

	.ecp-mb-md {
		margin-bottom: var(--ecp-spacing-md);
	}

	.ecp-mb-lg {
		margin-bottom: var(--ecp-spacing-lg);
	}

	.ecp-mb-xl {
		margin-bottom: var(--ecp-spacing-xl);
	}

	.ecp-p-md {
		padding: var(--ecp-spacing-md);
	}

	.ecp-p-lg {
		padding: var(--ecp-spacing-lg);
	}

	.ecp-p-xl {
		padding: var(--ecp-spacing-xl);
	}

	.bg-surface {
		background-color: var(--ecp-surface);
	}

	.bg-surface-2 {
		background-color: var(--ecp-surface-2);
	}

	.ecp-text-accent {
		color: var(--ecp-accent);
	}

	.ecp-text-primary {
		color: var(--ecp-primary);
	}

	.ecp-text-muted {
		color: var(--ecp-text-muted);
	}

	.ecp-text-sm {
		font-size: 0.875rem;
	}

	.ecp-rounded {
		border-radius: var(--ecp-border-radius-lg);
	}

	.border-light {
		border: 1px solid var(--ecp-border);
	}

	.w-full {
		width: 100%;
	}

	.d-none {
		display: none;
	}

	@media (min-width: 768px) {
		.d-md-none {
			display: none;
		}

		.d-md-flex {
			display: flex;
		}

		.d-md-block {
			display: block;
		}
	}

	.ecp-link-with-icon {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		font-weight: 600;
	}

	.ecp-link-with-icon svg {
		width: 20px;
		height: 20px;
		transition: transform 0.2s;
	}

	.ecp-link-with-icon:hover svg {
		transform: translateX(4px);
	}
}

/* ==========================================================================
   #HERO SLIDER  —  IDP-style split layout
   ========================================================================== */

/* Kill horizontal overflow caused by Swiper translate3d during transitions.
   Applying this to a wrapper div (.ecp-main) is much more robust than applying to body. */
.ecp-main {
	overflow-x: hidden;
	width: 100%;
}

body {
	overflow-x: hidden;
}

/* ── Section wrapper ── */
.ecp-hero {
	position: relative;
	background-color: #f4f6f8;
	/* light grey matching reference */
	min-height: 520px;
	height: auto;
	/* Flexible height prevents overlap */
	overflow: hidden;
}

/* ── Swiper container: clips slide transforms, never overflows ── */
.ecp-hero-swiper {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* ── Each slide: full-width Grid ── */
.ecp-hero-slide {
	display: grid !important;
	/* inner grid for the split layout */
	grid-template-columns:
		1fr
		/* empty space left of container */
		minmax(0, calc(var(--ecp-container-max) / 2))
		/* left half of container */
		minmax(0, calc(var(--ecp-container-max) / 2))
		/* right half of container */
		1fr;
	/* empty space right of container */
	align-items: stretch;
	height: 100%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* ── LEFT column: text area ── */
.ecp-hero__left {
	grid-column: 2 / 3;
	/* occupies left half of container */
	display: flex;
	align-items: flex-start;
	padding: 7rem var(--ecp-container-padding) 4rem;
	position: relative;
	z-index: 2;
}

.ecp-hero__content {
	max-width: 520px;
}

.ecp-hero__title {
	font-family: var(--ecp-font-heading);
	font-size: clamp(1.75rem, 3.2vw, 2.6rem);
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0 0 1rem;
}

.ecp-hero__subtitle {
	font-size: 1rem;
	line-height: 1.65;
	color: #555;
	margin: 0 0 1.75rem;
	max-width: 440px;
}

.ecp-hero__cta {
	display: inline-block;
	background: var(--ecp-primary);
	color: #fff;
	padding: 0.8rem 1.8rem;
	border-radius: var(--ecp-border-radius-pill);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ecp-hero__cta:hover {
	background: var(--ecp-primary-hover);
	transform: translateY(-2px);
	color: #fff;
}

/* ── RIGHT column: photo bleeds to viewport edge ── */
.ecp-hero__right {
	position: absolute;
	right: 0;
	top: 0;
	width: 48%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
	/* subtle shadow for depth */
}

.ecp-hero__right img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* perfectly fills the area without distortion */
	object-position: center;
	/* center focal point */
	display: block;
}

.ecp-hero__img-placeholder {
	width: 100%;
	height: 100%;
	background: #c8cdd4;
}

/* ── Pagination dots: left-aligned with text ── */
.ecp-hero-pagination {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	margin: 0 auto !important;
	max-width: var(--ecp-container-max);
	padding-left: var(--ecp-container-padding);
	bottom: 2rem !important; /* Lowered from 4.5rem to prevent CTA overlap */
	width: 100% !important;
	text-align: left !important;
	z-index: 20;
}

.ecp-hero-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #aaa;
	opacity: 1;
	margin: 0 5px !important;
	transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.ecp-hero-pagination .swiper-pagination-bullet-active {
	background: var(--ecp-primary);
	width: 26px;
	border-radius: 5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.ecp-hero {
		height: auto;
		min-height: 600px;
		contain: layout paint;
		/* relax strict contain on mobile to allow auto height */
	}

	.ecp-hero-swiper {
		height: 100%;
	}

	.ecp-hero-slide {
		height: auto;
		display: flex !important;
		flex-direction: column;
	}

	.ecp-hero__left {
		width: 100%;
		padding: 2rem 1.5rem 5rem;
		/* keep room for dots above overlap */
	}

	.ecp-hero__right {
		position: relative;
		width: 100%;
		height: 260px;
		border-radius: 0;
		/* remove rounded corners on mobile so it bleeds fully */
	}

	.ecp-hero-pagination {
		left: 1.5rem !important;
		bottom: 2rem !important;
	}
}

/* ==========================================================================
   #STATS BAR  —  overlapping card below hero
   ========================================================================== */

.ecp-stats-bar {
	position: relative;
	z-index: 10;
	margin-top: -3rem;
	/* overlap: must be ≤ hero padding-bottom minus dot clearance */
	margin-bottom: var(--ecp-spacing-xl);
}

.ecp-stats-bar__card {
	background: #fff;
	border-radius: var(--ecp-border-radius-lg);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
	border: 1px solid var(--ecp-border);
	overflow: hidden;
}

/* ── Grid ── */
.ecp-stats-bar__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding: 2rem;
	gap: 2rem;
	text-align: center;
}

@media (min-width: 768px) {
	.ecp-stats-bar__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;
	}
}

/* Vertical dividers between items on desktop */
@media (min-width: 768px) {
	.ecp-stats-bar__item:not(:last-child) {
		border-right: 1px solid var(--ecp-border);
		padding-right: 1rem;
	}
}

.ecp-stats-bar__icon {
	font-size: 2rem;
	margin-bottom: 0.4rem;
	line-height: 1;
}

.ecp-stats-bar__number {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ecp-primary);
	margin-bottom: 0.3rem;
	font-family: var(--ecp-font-heading);
}

.ecp-stats-bar__text {
	font-size: 0.82rem;
	color: var(--ecp-text-muted);
	line-height: 1.4;
	margin: 0;
}

/* ── Quick-links nav strip ── */
.ecp-stats-bar__nav {
	background: #f0f8ff;
	border-top: 1px solid var(--ecp-border);
	padding: 0.875rem 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.75rem;
}

.ecp-stats-bar__nav a {
	color: var(--ecp-primary);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	white-space: nowrap;
	transition: text-decoration 0.15s;
}

.ecp-stats-bar__nav a:hover {
	text-decoration: underline;
}

/* Hub Layout */
.ecp-hub-layout {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 4%;
	background-color: #f8f9fa;
}

.ecp-hub-header {
	margin-bottom: 2rem;
}

.ecp-hub-header__title {
	font-size: 2rem;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
}

.ecp-hub-header__desc {
	color: #666;
	margin-bottom: 2rem;
}

.ecp-hub-header__toggles {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eaeaea;
}

/* Toggles */
.ecp-toggle {
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 0.75rem;
}

.ecp-toggle input {
	display: none;
}

.ecp-toggle-slider {
	width: 44px;
	height: 24px;
	background-color: #ccc;
	border-radius: 24px;
	position: relative;
	transition: 0.3s;
}

.ecp-toggle-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: white;
	top: 3px;
	left: 3px;
	transition: 0.3s;
}

.ecp-toggle input:checked+.ecp-toggle-slider {
	background-color: #0073e6;
}

.ecp-toggle input:checked+.ecp-toggle-slider::before {
	transform: translateX(20px);
}

.ecp-toggle-label {
	font-size: 0.95rem;
	color: #1a1a1a;
	line-height: 1.2;
}

.ecp-toggle-label strong {
	color: #008855;
}

.ecp-hub-header__sort {
	margin-left: auto;
}

/* Hub Body */
.ecp-hub-body {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* Sidebar Filters */
.ecp-hub-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
}

.ecp-hub-sidebar__header {
	padding: 1.5rem;
	border-bottom: 1px solid #eaeaea;
}

.ecp-hub-sidebar__header h3 {
	margin: 0;
	font-size: 1.125rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ecp-hub-filter-group {
	border-bottom: 1px solid #eaeaea;
}

.ecp-hub-filter-group:last-child {
	border-bottom: none;
}

.ecp-hub-filter-group__toggle {
	width: 100%;
	background: none;
	border: none;
	padding: 1.25rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	cursor: pointer;
	color: #1a1a1a;
}

.ecp-hub-filter-group__content {
	padding: 0 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ecp-hub-search-input {
	position: relative;
}

.ecp-hub-search-input svg {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
}

.ecp-hub-search-input input {
	width: 100%;
	padding: 0.5rem 0.5rem 0.5rem 2rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

.ecp-hub-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.95rem;
	color: #444;
}

/* Main Grid */
.ecp-hub-main {
	flex-grow: 1;
	min-width: 0;
}

.ecp-hub-results-count {
	color: #666;
	margin-bottom: 1.5rem;
}

.ecp-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 1100px) {
	.ecp-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ecp-hub-body {
		flex-direction: column;
	}

	.ecp-hub-sidebar {
		width: 100%;
	}

	.ecp-hub-grid {
		grid-template-columns: 1fr;
	}
}

/* Course Card */
.ecp-hub-card {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s;
}

.ecp-hub-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ecp-hub-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.ecp-hub-card__logo {
	width: 40px;
	height: 40px;
	border-radius: 4px;
}

.ecp-hub-card__top-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ecp-hub-card__heart {
	background: none;
	border: none;
	color: #e65c00;
	cursor: pointer;
	padding: 0;
}

.ecp-hub-card__title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.ecp-hub-card__title a {
	color: #0055b3;
	text-decoration: none;
}

.ecp-hub-card__title a:hover {
	text-decoration: underline;
}

.ecp-hub-card__institution {
	color: #1a1a1a;
	font-weight: bold;
	font-size: 0.95rem;
	margin: 0 0 1rem 0;
}

.ecp-hub-card__badges {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ecp-hub-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ecp-hub-badge--fastlane {
	background: #008855;
	color: #fff;
}

.ecp-hub-badge--scholarship {
	background: #fff3e0;
	color: #e65100;
}

.ecp-hub-badge--internship {
	background: #e3f2fd;
	color: #0073e6;
}

.ecp-hub-card__details {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
	flex-grow: 1;
}

.ecp-hub-card__details li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: #444;
}

.ecp-hub-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.ecp-hub-card__footer {
	margin-top: auto;
}

.ecp-hub-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.6rem;
	border-radius: 50px;
	font-weight: bold;
	text-decoration: none;
	transition: 0.2s;
}

.ecp-hub-btn--blue {
	background: #0073e6;
	color: #fff;
	border: 1px solid #0073e6;
}

.ecp-hub-btn--blue:hover {
	background: #0055b3;
}

.ecp-hub-btn--outline {
	background: #fff;
	color: #444;
	border: 1px solid #999;
}

.ecp-hub-btn--outline:hover {
	border-color: #444;
	background: #f8f9fa;
}

/* --- SINGLE COURSE PREMIUM REDESIGN --- */

.ecp-course-premium {
	background: var(--ecp-surface-2);
	min-height: 100vh;
}

/* Hero */
.ecp-course-hero {
	position: relative;
	background-color: #0A1628;
	background-image:
		radial-gradient(circle at 0% 0%, rgba(26, 86, 219, 0.4) 0%, transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
		radial-gradient(circle at 100% 0%, rgba(26, 86, 219, 0.2) 0%, transparent 50%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 5rem 0 4rem 0;
	margin-bottom: 4rem;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ecp-course-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.ecp-course-hero__inner {
	position: relative;
	z-index: 2;
}

.ecp-course-hero__breadcrumbs {
	margin-bottom: 2.5rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.ecp-course-hero__breadcrumbs a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.ecp-course-hero__breadcrumbs a:hover {
	text-decoration: underline;
}

.ecp-course-hero__breadcrumbs [aria-current="page"] {
	color: #fff;
}

.ecp-course-hero__breadcrumbs .ecp-breadcrumbs__sep {
	margin: 0 0.5rem;
	color: rgba(255, 255, 255, 0.4);
}

.ecp-course-hero__main {
	display: flex;
	align-items: center;
	gap: 3rem;
}

.ecp-course-hero__logo {
	flex-shrink: 0;
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.ecp-course-hero__logo img {
	border-radius: 12px;
	width: 100px;
	height: 100px;
	object-fit: contain;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ecp-course-hero__tags {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.ecp-course-hero__title {
	color: #fff;
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	margin-bottom: 1.5rem;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ecp-course-hero__meta {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	font-size: 0.95rem;
	opacity: 0.9;
}

.ecp-course-hero__meta li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Badges */
.ecp-badge--light {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	backdrop-filter: blur(4px);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ecp-badge--accent {
	background: var(--ecp-accent);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ecp-badge--success {
	background: var(--ecp-success);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* Layout */
.ecp-course-layout {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 3rem;
	padding-bottom: 5rem;
}

/* Nav */
.ecp-course-nav {
	position: sticky;
	top: 0;
	background: var(--ecp-surface-2);
	z-index: 10;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--ecp-border);
}

.ecp-course-nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 2rem;
}

.ecp-course-nav a {
	display: inline-block;
	padding: 1rem 0;
	color: var(--ecp-text-muted);
	font-weight: 600;
	border-bottom: 3px solid transparent;
}

.ecp-course-nav a.active,
.ecp-course-nav a:hover {
	color: var(--ecp-primary);
	border-bottom-color: var(--ecp-primary);
}

/* Sections */
.ecp-course-section {
	background: #fff;
	border-radius: 16px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: var(--ecp-shadow);
	scroll-margin-top: 100px;
}

.ecp-course-section h2 {
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ecp-border);
}

/* Req Grid */
.ecp-req-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.ecp-req-card {
	background: var(--ecp-surface-2);
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	gap: 1rem;
}

.ecp-req-card__icon {
	color: var(--ecp-accent);
	flex-shrink: 0;
}

.ecp-req-card__content h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
	color: var(--ecp-primary);
	border-bottom: none;
	padding-bottom: 0;
}

.ecp-list-bare {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ecp-list-bare li {
	margin-bottom: 0.25rem;
}

/* Funding Card */
.ecp-funding-card {
	background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
	border: 1px solid rgba(245, 166, 35, 0.3);
	border-radius: 12px;
	padding: 2rem;
	display: flex;
	gap: 1.5rem;
}

.ecp-funding-card__icon {
	color: var(--ecp-accent);
	background: #fff;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: var(--ecp-shadow);
}

.ecp-funding-card__content h3 {
	border: none;
	padding: 0;
}

/* Sticky Action Sidebar */
.ecp-course-sidebar {
	position: sticky;
	top: 2rem;
	align-self: start;
}

.ecp-action-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--ecp-shadow-lg);
	overflow: hidden;
}

.ecp-action-card__header {
	background: var(--ecp-primary);
	color: #fff;
	padding: 2rem;
	text-align: center;
}

.ecp-action-card__price {
	font-family: var(--ecp-font-heading);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.ecp-action-card__price .currency {
	font-size: 1.5rem;
	font-weight: 600;
	opacity: 0.8;
}

.ecp-action-card__price .amount {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
}

.ecp-action-card__price .period {
	font-size: 1rem;
	opacity: 0.8;
	align-self: flex-end;
	margin-bottom: 0.5rem;
}

.ecp-action-card__note {
	font-size: 0.875rem;
	opacity: 0.8;
	margin-top: 0.5rem;
}

.ecp-action-card__body {
	padding: 2rem;
}

.ecp-action-card__specs {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem 0;
}

.ecp-action-card__specs li {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.ecp-action-card__specs li:last-child {
	margin-bottom: 0;
}

.ecp-action-card__specs .icon {
	color: var(--ecp-accent);
	background: var(--ecp-surface-2);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ecp-action-card__specs .text {
	display: flex;
	flex-direction: column;
}

.ecp-action-card__specs .label {
	font-size: 0.875rem;
	color: var(--ecp-text-muted);
}

.ecp-action-card__specs .value {
	font-weight: 600;
	color: var(--ecp-primary);
}

.ecp-action-card__trust {
	font-size: 0.75rem;
	color: var(--ecp-text-muted);
	text-align: center;
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.ecp-action-card__footer {
	background: var(--ecp-surface-2);
	padding: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
}

.ecp-action-card__footer p {
	margin: 0 0 0.25rem 0;
	color: var(--ecp-text-muted);
}

.ecp-action-card__footer a {
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 991px) {
	.ecp-course-layout {
		grid-template-columns: 1fr;
	}

	.ecp-course-hero__main {
		flex-direction: column;
	}
}


/* --- APPLICATION PORTAL REDESIGN --- */

.ecp-apply-hero {
	background-color: #0A1628;
	background-image: radial-gradient(circle at top right, rgba(26, 86, 219, 0.4), transparent 50%), radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.2), transparent 50%);
	color: #fff;
	padding: 6rem 0 4rem;
	text-align: center;
}

.ecp-apply-hero h1 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1rem;
	color: #fff;
}

.ecp-apply-hero p {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
	opacity: 0.9;
	color: #fff;
}

.ecp-apply-portal {
	padding: 4rem 0;
}

.ecp-apply-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.ecp-apply-layout {
		grid-template-columns: 350px 1fr;
	}
}

.ecp-apply-sidebar__sticky {
	position: sticky;
	top: 100px;
}

.ecp-apply-steps-card {
	background: #fff;
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.ecp-apply-steps-card h3 {
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
}

.ecp-step-list-vertical {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ecp-step-list-vertical li {
	display: flex;
	gap: 1rem;
	position: relative;
	padding-bottom: 1.5rem;
}

.ecp-step-list-vertical li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 14px;
	top: 30px;
	bottom: 0;
	width: 2px;
	background: var(--ecp-surface-2);
}

.ecp-step-list-vertical li.active::after {
	background: var(--ecp-primary);
}

.ecp-step-list-vertical .step-num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ecp-surface-2);
	color: var(--ecp-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
	z-index: 2;
}

.ecp-step-list-vertical li.active .step-num {
	background: var(--ecp-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

.ecp-step-list-vertical .step-text strong {
	display: block;
	color: var(--ecp-text-dark);
}

.ecp-step-list-vertical .step-text p {
	font-size: 0.875rem;
	color: var(--ecp-text-muted);
	margin: 0;
}

.ecp-trust-badge {
	display: flex;
	gap: 1rem;
	background: rgba(245, 158, 11, 0.1);
	padding: 1.5rem;
	border-radius: 12px;
}

.ecp-trust-badge h4 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	color: var(--ecp-text-dark);
}

.ecp-trust-badge p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ecp-text-muted);
}

/* Form Styles */
.ecp-smart-form-wrapper {
	background: #fff;
	padding: 3rem;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.ecp-form-section {
	border: none;
	padding: 0;
	margin: 0 0 3rem;
}

.ecp-form-section__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ecp-text-dark);
	margin-bottom: 0.5rem;
	padding: 0;
}

.ecp-form-section__desc {
	color: var(--ecp-text-light);
	font-size: 0.9375rem;
	margin-bottom: 1.5rem;
}

.ecp-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.ecp-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.ecp-input-group {
	position: relative;
	margin-bottom: 1.5rem;
}

.ecp-input-premium,
.ecp-select-premium,
.ecp-textarea-premium {
	width: 100%;
	padding: 1.25rem 1rem 0.5rem;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #F8FAFC;
	font-size: 1rem;
	color: var(--ecp-text-dark);
	transition: all 0.3s ease;
}

.ecp-input-premium:focus,
.ecp-select-premium:focus,
.ecp-textarea-premium:focus {
	background: #fff;
	border-color: var(--ecp-primary);
	box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
	outline: none;
}

.ecp-input-group label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	font-size: 1rem;
	color: #64748B;
	pointer-events: none;
	transition: all 0.2s ease;
}

.ecp-input-premium:focus~label,
.ecp-input-premium:not(:placeholder-shown)~label {
	top: 0.5rem;
	font-size: 0.75rem;
	color: var(--ecp-primary);
	transform: translateY(0);
}

.ecp-select-premium {
	padding: 1rem;
}

.ecp-doc-uploads {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ecp-doc-uploads {
		grid-template-columns: 1fr 1fr;
	}
}

.ecp-file-dropzone {
	border: 2px dashed #E2E8F0;
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	background: #F8FAFC;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.ecp-file-dropzone:hover {
	border-color: var(--ecp-primary);
	background: #EFF6FF;
}

.ecp-file-dropzone label {
	display: block;
	font-weight: 600;
	color: var(--ecp-text-dark);
	margin-bottom: 0.5rem;
}

.ecp-file-dropzone input[type="file"] {
	width: 100%;
	font-size: 0.875rem;
}

.ecp-btn-submit-premium {
	width: 100%;
	padding: 1.25rem;
	background: var(--ecp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.ecp-btn-submit-premium:hover {
	background: var(--ecp-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(26, 86, 219, 0.2);
}


/* --- CONTACT PORTAL REDESIGN --- */

.ecp-contact-hero {
	background-color: #0A1628;
	background-image: radial-gradient(circle at top right, rgba(26, 86, 219, 0.4), transparent 50%), radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.2), transparent 50%);
	color: #fff;
	padding: 4rem 0 4rem;
}

.ecp-contact-hero h1 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1rem;
	color: #fff;
}

.ecp-contact-hero p {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
	opacity: 0.9;
	color: #fff;
}

.ecp-contact-portal {
	padding-bottom: 4rem;
}

.ecp-contact-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-top: 3rem;
	position: relative;
	z-index: 10;
}

@media (min-width: 1024px) {
	.ecp-contact-layout {
		grid-template-columns: 350px 1fr;
	}
}

.ecp-contact-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.ecp-contact-info-cards {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.ecp-contact-card {
	padding: 1.5rem 2rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	transition: background 0.3s ease;
}

.ecp-contact-card:not(:last-child) {
	border-bottom: 1px solid var(--ecp-surface-2);
}

.ecp-contact-card:hover {
	background: #F8FAFC;
}

.ecp-contact-card__icon {
	width: 48px;
	height: 48px;
	background: rgba(26, 86, 219, 0.1);
	color: var(--ecp-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ecp-contact-card h4 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	color: var(--ecp-text-dark);
}

.ecp-contact-card p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ecp-text-muted);
}

.ecp-contact-card p a {
	color: var(--ecp-text-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.ecp-contact-card p a:hover {
	color: var(--ecp-primary);
}

.ecp-office-promo {
	background: #fff;
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.05);
	text-align: center;
}

.ecp-office-promo__icon {
	width: 56px;
	height: 56px;
	background: rgba(245, 158, 11, 0.1);
	color: var(--ecp-accent);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.ecp-office-promo h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.ecp-office-promo p {
	font-size: 0.875rem;
	color: var(--ecp-text-muted);
	margin-bottom: 1.5rem;
}

.ecp-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ecp-primary);
	font-weight: 600;
	text-decoration: none;
	transition: gap 0.2s;
}

.ecp-link-arrow:hover {
	gap: 0.75rem;
}
/* =========================================
   Standardized Section Headings
   Based on the "We can help you" (enquiry) style.
   Excludes CTA banners which have their own styling.
   ========================================= */

/* Section header wrapper — consistent bottom spacing */
.ecp-section-header {
	margin-bottom: 2.5rem !important;
}

/* Section title — locked to 2rem, Outfit heading font */
.ecp-section-title {
	font-family: var(--ecp-font-heading) !important;
	font-size: 2rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--ecp-primary) !important;
	margin-bottom: 0.5rem !important;
}

/* Section subtitle — consistent sizing and spacing below the title */
.ecp-section-subtext {
	font-family: var(--ecp-font-primary) !important;
	font-size: 1.05rem !important;
	color: var(--ecp-text-muted) !important;
	line-height: 1.6 !important;
	margin-bottom: 0 !important;
}



/* Override for dark backgrounds (testimonials, ambassador) */
.ecp-section-header--light .ecp-section-title,
.ecp-institutions-section .ecp-section-title {
	color: #fff !important;
}

/* Enquiry section uses a different class — align it too */
.ecp-enquiry-section__title {
	font-family: var(--ecp-font-heading) !important;
	font-size: 2rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--ecp-primary) !important;
	margin-bottom: 0.5rem !important;
}

/* =========================================
   Standardized Section Spacing
   All homepage content sections get identical
   vertical padding. No extra margin-bottom.
   ========================================= */
.ecp-section,
.ecp-updates-section,
.ecp-institutions-section,
.ecp-steps-section,
.ecp-essentials-section,
.ecp-enquiry-section,
.ecp-popular-courses-section,
.ecp-home-ambassador-banner {
	padding-top: var(--ecp-spacing-xl) !important;
	padding-bottom: var(--ecp-spacing-xl) !important;
	margin-bottom: 0 !important;
}


/* =========================================
   Standard Blog Card
   ========================================= */
.ecp-standard-blog-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.03);
	border: 1px solid var(--ecp-border);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.ecp-standard-blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.06);
	border-color: var(--ecp-primary);
}
.ecp-standard-blog-card__media {
	position: relative;
	height: 220px;
	overflow: hidden;
	border-bottom: 1px solid var(--ecp-border);
}
.ecp-standard-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.ecp-standard-blog-card:hover .ecp-standard-blog-card__media img {
	transform: scale(1.05);
}
.ecp-blog-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	background: var(--ecp-primary);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.ecp-standard-blog-card__content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.ecp-blog-meta {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
}
.ecp-blog-date {
	color: var(--ecp-text-muted);
	font-size: 0.85rem;
	font-weight: 600;
}
.ecp-blog-title {
	margin: 0 0 1rem;
	line-height: 1.4;
	font-size: 1.25rem;
	font-weight: 700;
}
.ecp-blog-title a {
	color: var(--ecp-text-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}
.ecp-blog-title a:hover {
	color: var(--ecp-primary);
}
.ecp-blog-excerpt {
	color: var(--ecp-text-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}
.ecp-blog-read-more {
	color: var(--ecp-primary);
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: opacity 0.3s ease;
	font-size: 0.95rem;
}
.ecp-blog-read-more:hover {
	opacity: 0.8;
}


/* =========================================
   Post Navigation
   ========================================= */
.post-navigation {
	margin: 3rem auto;
	max-width: 800px;
	border-top: 1px solid var(--ecp-border);
	padding-top: 3rem;
}
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}
.post-navigation .nav-next {
	text-align: right;
}
.post-navigation a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	padding: 1.5rem;
	background: var(--ecp-surface-2);
	border-radius: 12px;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}
.post-navigation a:hover {
	background: #fff;
	border-color: var(--ecp-primary);
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.post-navigation .ecp-post-nav__label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ecp-text-muted);
	margin-bottom: 0.5rem;
}
.post-navigation .ecp-post-nav__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ecp-text-dark);
	line-height: 1.4;
}
.post-navigation a:hover .ecp-post-nav__title {
	color: var(--ecp-primary);
}


/* =========================================
   Expandable Search Filter
   ========================================= */
.ecp-expandable-search {
	position: relative;
	display: flex;
	align-items: center;
}
.ecp-expandable-search__toggle {
	background: transparent;
	border: none;
	color: var(--ecp-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	transition: color 0.2s ease;
}
.ecp-expandable-search__toggle:hover {
	color: var(--ecp-primary);
}
.ecp-expandable-search__wrapper {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	display: flex;
	align-items: stretch;
	width: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	z-index: 10;
}
.ecp-expandable-search.is-active .ecp-expandable-search__wrapper {
	width: 300px;
	opacity: 1;
	visibility: visible;
}
.ecp-expandable-search__input {
	flex-grow: 1;
	border: 1px solid var(--ecp-border);
	border-right: none;
	padding: 0.6rem 1rem;
	border-radius: 8px 0 0 8px;
	outline: none;
	min-width: 0;
}
.ecp-expandable-search__input:focus {
	border-color: var(--ecp-primary);
}


/* =========================================
   Single Post Redesign Styles
   ========================================= */
.ecp-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 4px;
	background: var(--ecp-primary);
	z-index: 9999;
	transition: width 0.1s ease;
}
.ecp-drop-cap > p:first-of-type::first-letter {
	float: left;
	font-size: 4rem;
	line-height: 1;
	padding: 0.2rem 0.5rem 0 0;
	color: var(--ecp-primary);
	font-family: 'Playfair Display', serif;
	font-weight: 700;
}
.ecp-share-btn:hover {
	background: var(--ecp-primary) !important;
	color: #fff !important;
	transform: translateY(-2px);
}


/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */
.ecp-accordion-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.ecp-accordion-item {
	background: #fff;
	border: 1px solid var(--ecp-border);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
.ecp-accordion-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.ecp-accordion-btn {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: var(--ecp-heading-color);
	transition: background-color 0.3s ease;
}
.ecp-accordion-btn:hover {
	background-color: var(--ecp-surface-2);
}
.ecp-accordion-title {
	font-size: 1rem;
	font-weight: 600;
	padding-right: 1rem;
}
.ecp-accordion-icon {
	flex-shrink: 0;
	color: var(--ecp-primary);
	transition: transform 0.3s ease;
}
.ecp-accordion-btn[aria-expanded="true"] .ecp-accordion-icon {
	transform: rotate(180deg);
}
.ecp-accordion-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}
.ecp-accordion-btn[aria-expanded="true"] + .ecp-accordion-content {
	grid-template-rows: 1fr;
}
.ecp-accordion-inner {
	overflow: hidden;
}
.ecp-accordion-inner > *:first-child {
	padding-top: 0;
}
.ecp-accordion-inner p {
	padding: 0 1.25rem 1.25rem;
	margin: 0;
	color: #475569;
	line-height: 1.6;
	font-size: 0.95rem;
}

/* ── Transparent Header — unlayered so these always win the cascade ── */

/* Before scroll: header background is fully transparent */
.ecp-header--transparent:not(.is-scrolled) {
	background: transparent !important;
	box-shadow: none !important;
}



/* Utility bar must also be transparent */
.ecp-header--transparent:not(.is-scrolled) .ecp-utility-bar {
	background-color: transparent !important;
	color: #1a1a1a !important;
	border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.ecp-header--transparent:not(.is-scrolled) .ecp-utility-bar a {
	color: #1a1a1a !important;
}

/* After scroll: snap to normal solid header */
.ecp-header.is-scrolled {
	background: var(--ecp-surface) !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
}

/* ── Transparent header: hero extends behind the header ── */

/* Body has no top padding — hero fills from y:0 */
.ecp-header--transparent ~ main,
.admin-bar .ecp-header--transparent ~ main,
.ecp-header--transparent ~ div.ecp-container,
.admin-bar .ecp-header--transparent ~ div.ecp-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Hero left column: push text below the transparent nav height */
.ecp-header--transparent ~ main .ecp-hero__left {
	padding-top: calc( 70px + 4rem ) !important;
}

/* Other pages (like hub layouts): push content below transparent nav height */
.ecp-header--transparent ~ div.ecp-container.ecp-page-wrapper,
.admin-bar .ecp-header--transparent ~ div.ecp-container.ecp-page-wrapper {
	padding-top: calc( 170px + 4rem ) !important;
}

/* Ensure the right image does NOT overlap the transparent header.
   We push it down slightly below the transparent nav to prevent text overlap. */
.ecp-header--transparent ~ main .ecp-hero__right {
	top: 70px !important;
	height: calc(100% - 70px) !important;
}

/* Ensure image still fills its new smaller container correctly */
.ecp-header--transparent ~ main .ecp-hero__right img {
	top: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

