/* 5th Axis — Events carousel: upcoming events, hover-expanded detail */

.axis5th-events {
	--axis5th-events-accent: #dd2828;
	--axis5th-events-border: #e5e5e5;
	--axis5th-events-label-color: #4a4a4a;
	--axis5th-events-title-color: #000000;
}

/* Swiper's base CSS clips both axes (overflow: hidden) — needed on X so
   off-screen slides stay hidden while paging, but that also clips the
   extra content a card reveals on hover unless Y is allowed to overflow.
   Loads after axis5th-swiper's own CSS (declared as a style dependency),
   so this wins on source order despite equal specificity. */
.axis5th-events-swiper {
	overflow-x: hidden;
}

.axis5th-events-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--axis5th-events-border);
	padding: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
    padding-bottom: 64px;
	overflow: hidden;
}

.axis5th-events-card:hover {
	border-color: var(--axis5th-events-accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.axis5th-events-card__region {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 16px;
	padding: 6px 12px;
	background: #F4F4F5;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var( --e-global-color-accent);
}
.axis5th-events-card:hover .axis5th-events-card__region{
	background: #FDEDED;
}

.axis5th-events-card__image {
	aspect-ratio: 4 / 3.2;
	overflow: hidden;
	margin-bottom: 20px;
	background: #f4f4f4;
}

.axis5th-events-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.axis5th-events-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	position: absolute;
    bottom: -120px;
    left: 0;
    right: 0;
    padding: 16px;
	background-color: #fff;
	transition: 300ms ease-in all;
}
.axis5th-events-card:hover .axis5th-events-card__body{
	bottom: 0;
}

.axis5th-events-card__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--axis5th-events-title-color);
	transition: color 0.2s ease;
}

.axis5th-events-card:hover .axis5th-events-card__title {
	color: var(--axis5th-events-accent);
}

.axis5th-events-card__subtitle {
	margin: 4px 0 20px;
	font-size: 16px;
	color: #6c6c6c;
}

.axis5th-events-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-bottom: 10px;
}

.axis5th-events-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #4C4546;
}

.axis5th-events-card__meta-item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--axis5th-events-accent);
}

/* Hover-only content: subtitle, booth row, CTA — all already in the
   markup, hidden by default and revealed on :hover, no JS toggle. */

.axis5th-events-card:hover .axis5th-events-card__extra {
	display: block;
}

.axis5th-events-card:hover .axis5th-events-card__meta.axis5th-events-card__extra {
	display: flex;
}

.axis5th-events-card__cta {
	margin-top: auto;
	align-self: flex-end;
	padding-top: 16px;
	font-size: 14px;
	font-weight: 500;
	color: var( --e-global-color-accent);
	text-decoration: none;
	border-bottom: 1px solid #1a1a1a;
}
.axis5th-events-card__cta:hover{
	color: var(--e-global-color-primary);
}

.axis5th-events__nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 20px;
}

.axis5th-events__arrow {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--e-global-color-primary);
	color: #1a1a1a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.axis5th-events__arrow:hover:not(.swiper-button-disabled) {
	background: var(--e-global-color-primary);
	border-color: var(--e-global-color-primary);
	color: var(--e-global-color-e735d4d);
}

.axis5th-events__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

.axis5th-events__empty {
	text-align: center;
	color: #6c6c6c;
	padding: 48px 0;
}

@media(max-width: 991px){
	.axis5th-events-card__body{
		bottom: 0;
	}
}

@media(max-width: 767px){
	.axis5th-events-card{
		padding-bottom: 16px;
	}
	.axis5th-events-card__body{
		position: unset;
		bottom: 0;
	}
}

@media only screen and (max-width: 640px) {
	.axis5th-events-card__image {
		aspect-ratio: 4 / 3;
	}
}
