/* Events — extends lead funnel visual language */

/* Events pages use a wider shell without funnel scroll trap */
.vima-events-page .vima-lead-funnel__shell,
.vima-events-page .vima-events__shell {
	max-width: 1100px;
	width: min(100%, 1100px);
	max-height: none;
	overflow: visible;
}

.vima-events-page .vima-lead-funnel__brand {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: 100%;
}

.vima-events__nav-link {
	color: var(--vima-funnel-muted);
	font-size: 0.9rem;
	text-decoration: none;
	margin-inline-start: auto;
}

.vima-events__main {
	position: relative;
	z-index: 1;
	width: 100%;
}

.vima-events__hero {
	text-align: center;
	margin-bottom: 2rem;
}

.vima-events__hero-media {
	margin: 0 auto 1.25rem;
	max-width: 720px;
	border-radius: calc(var(--vima-funnel-radius) - 4px);
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.vima-events__hero-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: cover;
}

.vima-events__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1.75rem;
}

.vima-events__filter {
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	color: #f8fafc;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.45);
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vima-events__filter.is-active {
	background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.95));
	border-color: rgba(249, 115, 22, 0.9);
	color: #fff;
	box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.vima-events__filter:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

.vima-events__filter.is-active:hover {
	background: linear-gradient(135deg, rgba(249, 115, 22, 1), rgba(234, 88, 12, 1));
}

.vima-events__filter-sep {
	color: rgba(255, 255, 255, 0.55);
	align-self: center;
}

.vima-events__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.vima-event-card {
	background: var(--vima-funnel-glass);
	border-radius: var(--vima-funnel-radius);
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
}

.vima-event-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.vima-event-card__thumb {
	height: 160px;
	background-size: cover;
	background-position: center;
	background-color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
}

.vima-event-card__body {
	padding: 1.1rem 1.25rem 1.35rem;
}

.vima-event-card__badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: rgba(30, 64, 175, 0.12);
	color: var(--vima-funnel-primary);
	margin-bottom: 0.5rem;
}

.vima-event-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	line-height: 1.45;
}

.vima-event-card__date {
	margin: 0 0 0.75rem;
	color: #64748b;
	font-size: 0.875rem;
}

.vima-event-card__cta {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--vima-funnel-accent);
	font-weight: 600;
	font-size: 0.9rem;
}

.vima-events__empty {
	text-align: center;
	padding: 3rem 1rem;
	background: var(--vima-funnel-glass);
	border-radius: var(--vima-funnel-radius);
	color: #64748b;
}

.vima-events__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 1.5rem;
	align-items: stretch;
}

.vima-events__sections {
	min-width: 0;
}

.vima-events__aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.vima-events__register {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.vima-events__section {
	background: var(--vima-funnel-glass);
	border-radius: var(--vima-funnel-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.vima-events__section-title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
}

.vima-events__meta {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: center;
	color: #475569;
	font-size: 0.9rem;
}

.vima-event-countdown {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.vima-event-countdown__unit {
	min-width: 4.5rem;
	padding: 0.75rem;
	border-radius: 12px;
	background: rgba(30, 64, 175, 0.08);
	text-align: center;
}

.vima-event-countdown__value {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--vima-funnel-primary);
	line-height: 1.1;
}

.vima-event-countdown__label {
	font-size: 0.75rem;
	color: #64748b;
}

.vima-event-countdown--mini {
	margin-top: 0.25rem;
}

.vima-event-countdown--mini .vima-event-countdown__unit {
	min-width: auto;
	padding: 0.35rem 0.5rem;
}

.vima-event-countdown--mini .vima-event-countdown__value {
	font-size: 0.95rem;
}

.vima-events__speakers {
	display: grid;
	gap: 1rem;
}

.vima-events__speaker {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.vima-events__speaker-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid rgba(30, 64, 175, 0.15);
}

.vima-events__speaker-avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	font-size: 1.5rem;
}

.vima-events__speaker-role {
	color: #64748b;
	margin: 0.15rem 0 0.35rem;
	font-size: 0.875rem;
}

.vima-events__timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	border-right: 2px solid rgba(30, 64, 175, 0.15);
}

.vima-events__timeline-item {
	position: relative;
	padding: 0 1.25rem 1.25rem 0;
	margin-right: 0.5rem;
}

.vima-events__timeline-item::before {
	content: '';
	position: absolute;
	right: -7px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--vima-funnel-accent);
}

.vima-events__timeline-time {
	display: block;
	font-size: 0.8rem;
	color: var(--vima-funnel-primary);
	margin-bottom: 0.25rem;
}

.vima-events__benefits {
	margin: 0;
	padding-right: 1.25rem;
	display: grid;
	gap: 0.65rem;
}

.vima-events__benefits li {
	display: grid;
	gap: 0.15rem;
}

.vima-events__faq-item {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	margin-bottom: 0.5rem;
	overflow: hidden;
}

.vima-events__faq-item summary {
	padding: 0.85rem 1rem;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.vima-events__faq-item summary::-webkit-details-marker {
	display: none;
}

.vima-events__faq-a {
	padding: 0 1rem 1rem;
	color: #475569;
	font-size: 0.925rem;
}

.vima-events__register-card {
	background: var(--vima-funnel-glass);
	border-radius: var(--vima-funnel-radius);
	padding: 1.25rem;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
	width: 100%;
	box-sizing: border-box;
}

.vima-events__form-error {
	color: #b91c1c;
	background: #fef2f2;
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
	margin: 0.75rem 0;
	font-size: 0.875rem;
}

.vima-events__success {
	text-align: center;
	padding: 1.5rem 0.5rem;
}

.vima-events__success-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.vima-events__register-closed {
	color: #64748b;
	margin: 0;
}

.vima-events__mobile-cta {
	display: none;
}

/* Desktop — sticky sidebar fills column height */
@media (min-width: 901px) {
	.vima-events__register-card {
		position: sticky;
		top: 1rem;
		min-height: calc(100vh - 2.5rem);
		display: flex;
		flex-direction: column;
	}
}

@media (max-width: 900px) {
	.vima-events__layout {
		grid-template-columns: 1fr;
	}

	.vima-events__aside {
		order: 2;
	}

	.vima-events__sections {
		order: 1;
	}

	.vima-events__register-card {
		position: static;
		min-height: 0;
	}

	.vima-events__main--single {
		padding-bottom: 5rem;
	}

	.vima-events__mobile-cta {
		display: block;
		position: fixed;
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		z-index: 30;
		padding: 0.9rem 1.25rem;
		border: 0;
		border-radius: 999px;
		background: linear-gradient(135deg, var(--vima-funnel-accent), #ea580c);
		color: #fff;
		font-family: inherit;
		font-size: 1rem;
		font-weight: 700;
		box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
		cursor: pointer;
	}

	.vima-events__mobile-cta.is-hidden {
		display: none;
	}
}
