/**
 * BPG Events Carousel — default styling.
 * Colours match the established BPG palette used throughout the ecosystem
 * (Container Blue card, Accent yellow date badge, orange title) so a site
 * editor who never opens Elementor's Style tab still gets an on-brand
 * result out of the box — the Style tab controls only override these.
 */

.bpg-evcar-wrapper {
	position: relative;
	padding: 0 44px; /* room for arrows without overlapping the first/last card */
}

.bpg-evcar-empty {
	padding: 24px;
	text-align: center;
	color: #FFFFFF;
	opacity: 0.7;
}

.bpg-evcar-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #114471; /* BPG Container Blue */
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bpg-evcar-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.bpg-evcar-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #0D2B4D; /* BPG Deep Blue — placeholder / letterbox colour */
	overflow: hidden;
}
.bpg-evcar-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.bpg-evcar-card:hover .bpg-evcar-media img {
	transform: scale(1.04);
}
.bpg-evcar-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #193A59, #0D2B4D);
}

.bpg-evcar-date {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 6px 8px;
	border-radius: 8px;
	background: #E6CE3A; /* BPG accent yellow */
	line-height: 1.05;
}
.bpg-evcar-date-mon {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #193A59;
}
.bpg-evcar-date-day {
	font-size: 1.3rem;
	font-weight: 800;
	color: #193A59;
}

.bpg-evcar-body {
	padding: 16px 18px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bpg-evcar-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: #E67E22; /* BPG orange — matches title colouring elsewhere on the site */
}

.bpg-evcar-venue,
.bpg-evcar-excerpt {
	margin: 0;
	font-size: 0.92rem;
	color: #FFFFFF;
	opacity: 0.85;
	line-height: 1.4;
}

/* Arrows — Swiper's own classes, styled to sit outside the card row rather
   than overlapping it (the wrapper's own left/right padding reserves space). */
.bpg-evcar-wrapper .swiper-button-prev,
.bpg-evcar-wrapper .swiper-button-next {
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 50%;
	color: #E6CE3A;
}
.bpg-evcar-wrapper .swiper-button-prev::after,
.bpg-evcar-wrapper .swiper-button-next::after {
	font-size: 18px;
	font-weight: 700;
}
.bpg-evcar-wrapper .swiper-button-prev:hover,
.bpg-evcar-wrapper .swiper-button-next:hover {
	background: rgba(0, 0, 0, 0.55);
}
.bpg-evcar-wrapper .swiper-button-prev {
	left: 0;
}
.bpg-evcar-wrapper .swiper-button-next {
	right: 0;
}

.bpg-evcar-wrapper .swiper-pagination {
	position: static;
	margin-top: 16px;
}
.bpg-evcar-wrapper .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.4);
	opacity: 1;
}
.bpg-evcar-wrapper .swiper-pagination-bullet-active {
	background: #E6CE3A;
}

@media (max-width: 640px) {
	.bpg-evcar-wrapper {
		padding: 0 8px;
	}
	.bpg-evcar-wrapper .swiper-button-prev,
	.bpg-evcar-wrapper .swiper-button-next {
		display: none; /* dots carry navigation on small screens, matches common mobile-carousel convention */
	}
}
