/* =========================================================================
   BBCA Events - listing page: event cards + archive sidebar.
   Loaded only on the page using events-page.php.
   ====================================================================== */

.ev-page {
	--ev-ink: #0B1220;
	--ev-ink-soft: #46506A;
	--ev-line: rgba(11, 18, 32, .10);
	--ev-gold: var(--yellow-color, #fec624);
	--ev-gold-deep: #8a6400;
	--ev-surface-alt: #F4F6FB;
	--ev-radius: 18px;
	--ev-shadow-lg: 0 8px 20px rgba(11, 18, 32, .08), 0 30px 60px rgba(11, 18, 32, .12);
	--ev-ease: cubic-bezier(.22, .61, .36, 1);
	color: var(--ev-ink-soft);
}

.ev-page h2,
.ev-page h3 {
	font-family: var(--title-font, "Exo", sans-serif);
	letter-spacing: -.02em;
}

/* --------------------------------------------------------------- Toolbar */

.ev-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 34px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ev-line);
}

.ev-toolbar__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 700;
	color: var(--ev-ink);
}

.ev-toolbar__count {
	margin: 6px 0 0;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ev-ink-soft);
}

.ev-clear {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 18px;
	border: 1px solid var(--ev-line);
	border-radius: 100px;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: var(--ev-ink);
	transition: all .25s var(--ev-ease);
}

.ev-clear:hover,
.ev-clear:focus-visible {
	border-color: transparent;
	background: var(--ev-ink);
	color: #fff;
}

/* ----------------------------------------------------------- Event cards */

.bbca-ev-list {
	display: grid;
	gap: 26px;
}

.bbca-ev {
	display: grid;
	grid-template-columns: 250px 1fr;
	border: 1px solid var(--ev-line);
	border-radius: var(--ev-radius);
	background: #fff;
	overflow: hidden;
	transition: transform .35s var(--ev-ease), box-shadow .35s var(--ev-ease), border-color .35s var(--ev-ease);
}

.bbca-ev:hover {
	transform: translateY(-4px);
	border-color: rgba(254, 198, 36, .55);
	box-shadow: var(--ev-shadow-lg);
}

.bbca-ev__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ev-surface-alt);
	min-height: 210px;
}

.bbca-ev__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--ev-ease);
}

.bbca-ev:hover .bbca-ev__media img {
	transform: scale(1.07);
}

.bbca-ev__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 210px;
	color: #b9bfc9;
}

.bbca-ev__placeholder svg {
	width: 44px;
	height: 44px;
}

.bbca-ev__year {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 13px;
	border-radius: 100px;
	background: rgba(11, 18, 32, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--ev-gold);
}

.bbca-ev__body {
	display: flex;
	flex-direction: column;
	padding: 28px 30px;
}

.bbca-ev__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ev-ink-soft);
}

.bbca-ev__meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}

.bbca-ev__meta-date {
	color: var(--ev-gold-deep);
}

.bbca-ev__title {
	margin: 0 0 12px;
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1.32;
}

.bbca-ev__title a {
	color: var(--ev-ink);
	background-image: linear-gradient(var(--ev-gold), var(--ev-gold));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size .35s var(--ev-ease);
}

.bbca-ev__title a:hover,
.bbca-ev__title a:focus-visible {
	color: var(--ev-ink);
	background-size: 100% 2px;
}

.bbca-ev__text {
	flex: 1;
	margin: 0 0 18px;
	font-size: .98rem;
	line-height: 1.75;
}

.bbca-ev__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ev-ink);
}

.bbca-ev__more svg {
	transition: transform .3s var(--ev-ease);
}

.bbca-ev__more:hover,
.bbca-ev__more:focus-visible {
	color: var(--ev-gold-deep);
}

.bbca-ev__more:hover svg {
	transform: translateX(5px);
}

.ev-page .bbca-events-empty {
	padding: 48px 28px;
	border: 1px dashed var(--ev-line);
	border-radius: var(--ev-radius);
	background: var(--ev-surface-alt);
	font-size: 1rem;
}

/* --------------------------------------------------------------- Sidebar */

.ev-side {
	position: sticky;
	top: calc(var(--ev-header-h, 0px) + 24px);
}

.ev-widget {
	padding: 26px;
	margin-bottom: 24px;
	border: 1px solid var(--ev-line);
	border-radius: var(--ev-radius);
	background: #fff;
}

.ev-widget:last-child {
	margin-bottom: 0;
}

.ev-widget__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ev-ink-soft);
}

.ev-widget__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ev-line);
}

/* Search */

.ev-search {
	display: flex;
	border: 1px solid var(--ev-line);
	border-radius: 100px;
	background: var(--ev-surface-alt);
	overflow: hidden;
	transition: border-color .25s var(--ev-ease);
}

.ev-search:focus-within {
	border-color: var(--ev-ink);
}

.ev-search input {
	flex: 1;
	min-width: 0;
	padding: 12px 18px;
	border: 0;
	background: transparent;
	font-size: .95rem;
	color: var(--ev-ink);
}

.ev-search input:focus {
	outline: none;
}

.ev-search button {
	flex: none;
	width: 48px;
	border: 0;
	background: var(--ev-ink);
	color: #fff;
	cursor: pointer;
	transition: background .25s var(--ev-ease), color .25s var(--ev-ease);
}

.ev-search button:hover,
.ev-search button:focus-visible {
	background: var(--ev-gold);
	color: var(--ev-ink);
}

/* Archive list */

.ev-archive {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ev-archive li {
	margin: 0;
}

.ev-archive li + li {
	margin-top: 6px;
}

.ev-archive__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--ev-ink);
	transition: all .25s var(--ev-ease);
}

.ev-archive__link:hover,
.ev-archive__link:focus-visible {
	background: var(--ev-surface-alt);
	color: var(--ev-ink);
	transform: translateX(3px);
}

.ev-archive__link.is-active {
	background: var(--ev-ink);
	color: #fff;
}

.ev-archive__count {
	flex: none;
	min-width: 30px;
	padding: 3px 9px;
	border-radius: 100px;
	background: var(--ev-surface-alt);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	color: var(--ev-ink-soft);
}

.ev-archive__link.is-active .ev-archive__count {
	background: var(--ev-gold);
	color: var(--ev-ink);
}

/* Recent list */

.ev-recent {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ev-recent li {
	margin: 0;
}

.ev-recent li + li {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ev-line);
}

.ev-recent a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ev-ink);
}

.ev-recent__thumb {
	flex: none;
	width: 62px;
	height: 62px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ev-surface-alt);
}

.ev-recent__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ev-recent__info {
	min-width: 0;
}

.ev-recent strong {
	display: block;
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
}

.ev-recent small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--ev-ink-soft);
}

.ev-recent a:hover strong {
	color: var(--ev-gold-deep);
}

/* Sidebar CTA */

.ev-widget--cta {
	border-color: transparent;
	background: radial-gradient(120% 150% at 85% 5%, #1B2947 0%, #0B1220 60%, #060A14 100%);
	color: rgba(255, 255, 255, .74);
	text-align: center;
}

.ev-cta__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.ev-cta__text {
	margin: 0 0 20px;
	font-size: .93rem;
	line-height: 1.7;
}

.ev-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	border-radius: 100px;
	background: var(--ev-gold);
	font-family: var(--title-font, "Exo", sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--ev-ink);
	transition: transform .3s var(--ev-ease), box-shadow .3s var(--ev-ease);
}

.ev-cta__btn:hover,
.ev-cta__btn:focus-visible {
	color: var(--ev-ink);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(254, 198, 36, .36);
}

/* ------------------------------------------------------------ Pagination */

.ev-page .bbca-events-pagination {
	margin-top: 36px;
}

.ev-page .bbca-events-pagination a,
.ev-page .bbca-events-pagination span {
	border-radius: 12px;
	border-color: var(--ev-line);
}

.ev-page .bbca-events-pagination a:hover,
.ev-page .bbca-events-pagination .current {
	background: var(--ev-ink);
	border-color: var(--ev-ink);
	color: #fff;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 991.98px) {
	.ev-side {
		position: static;
		margin-top: 48px;
	}
}

@media (max-width: 575.98px) {
	.bbca-ev {
		grid-template-columns: 1fr;
	}

	.bbca-ev__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.bbca-ev__placeholder {
		min-height: 0;
	}

	.bbca-ev__body {
		padding: 22px 20px;
	}

	.ev-widget {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ev-page *,
	.ev-page *::before,
	.ev-page *::after {
		transition-duration: .001ms !important;
	}
}
