/**
 * plugins/themes/educationGold/styles/hero.css
 *
 * Full-bleed Hero Banner / Slider with creamy left scrim, frosted metadata strip, and layered gold wave.
 */

.eg-hero {
	position: relative;
	background-color: var(--eg-bg-secondary);
	overflow: hidden;
}

.eg-hero-slides {
	position: relative;
}

.eg-hero-slide {
	position: relative;
	min-height: 410px;
	display: none;
	align-items: center;
	padding: 44px 0 88px;
}

.eg-hero-slide.is-active {
	display: flex;
	animation: egHeroFade 0.45s ease;
}

@keyframes egHeroFade {
	from { opacity: 0.35; }
	to { opacity: 1; }
}

.eg-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	z-index: 1;
}

.eg-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		96deg,
		rgba(255, 251, 242, 0.96) 0%,
		rgba(255, 248, 232, 0.90) 38%,
		rgba(255, 248, 232, 0.48) 62%,
		rgba(255, 248, 232, 0.08) 100%
	);
	z-index: 2;
}

.eg-hero-inner {
	position: relative;
	z-index: 3;
}

.eg-hero-content {
	max-width: 580px;
}

.eg-hero-title {
	margin: 0 0 8px;
	font-family: var(--eg-font-serif);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--eg-heading);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.eg-hero-tagline {
	margin: 0 0 12px;
	font-family: var(--eg-font-serif);
	font-style: italic;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--eg-primary);
}

.eg-hero-description {
	margin: 0 0 20px;
	font-size: 0.96875rem;
	line-height: 1.6;
	color: var(--eg-text);
	max-width: 510px;
}

.eg-hero-actions {
	margin-bottom: 22px;
}

.eg-hero-cta {
	padding: 11px 24px;
	font-size: 0.9375rem;
}

/* Hero Metadata Strip */
.eg-hero-meta-strip {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	background: rgba(255, 248, 232, 0.92);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(var(--eg-secondary-rgb), 0.25);
	border-radius: 10px;
	box-shadow: var(--eg-shadow-sm);
	overflow: hidden;
}

.eg-hero-meta-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	font-size: 0.78125rem;
	line-height: 1.35;
	color: var(--eg-heading);
}

.eg-hero-meta-item + .eg-hero-meta-item {
	border-left: 1px solid rgba(var(--eg-primary-rgb), 0.2);
}

.eg-hero-meta-icon {
	font-size: 1.25rem;
	color: var(--eg-primary);
	flex: 0 0 auto;
}

.eg-hero-meta-text {
	display: flex;
	flex-direction: column;
}

.eg-hero-meta-text span {
	font-size: 0.72rem;
	color: var(--eg-text-muted);
}

.eg-hero-meta-text strong {
	font-weight: 700;
	color: var(--eg-heading);
}

/* Slider Arrows & Dots */
.eg-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-65%);
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(84, 55, 13, 0.42);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color var(--eg-transition);
}

.eg-hero-arrow:hover,
.eg-hero-arrow:focus-visible {
	background: var(--eg-primary);
}

.eg-hero-prev {
	left: 16px;
}

.eg-hero-next {
	right: 16px;
}

.eg-hero-dots {
	position: absolute;
	bottom: 46px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
}

.eg-hero-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: width var(--eg-transition), background-color var(--eg-transition);
}

.eg-hero-dot.is-active {
	width: 24px;
	background: var(--eg-primary);
}

/* Bottom Wave SVG */
.eg-hero-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 54px;
	z-index: 4;
	pointer-events: none;
}

.eg-hero-wave svg {
	width: 100%;
	height: 100%;
	display: block;
}
