.hali-events-featured,
.hali-events-grid-wrap,
.hali-event-meta-box {
	--haliev-primary: #005d6d;
	--haliev-dark: #0b2c4c;
	--haliev-text: #092633;
	--haliev-muted: #91a1bb;
	--haliev-line: #dce8ec;
	--haliev-soft: #edf4f6;
	--haliev-white: #fff;
	--haliev-accent: #ffd45f;
	width: 100%;
	min-width: 0;
	font-family: inherit;
	color: var(--haliev-text);
}

.hali-events-featured *,
.hali-events-grid-wrap *,
.hali-event-meta-box * {
	box-sizing: border-box;
}

/* =========================================================
 * UPCOMING EVENTS: COMPACT LIST ONLY
 * The promotional image is intentionally not rendered here.
 * It can be built as a separate Elementor section.
 * ======================================================= */
.hali-events-featured {
	display: block;
	width: 100%;
	min-width: 0;
}

.hali-events-featured__list {
	display: block;
	width: 100%;
	min-width: 0;
	background: var(--haliev-white);
}

.hali-events-compact {
	display: grid;
	grid-template-columns: 51px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--haliev-line);
}

.hali-events-compact:first-child {
	padding-top: 0;
}

.hali-events-compact:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.hali-events-compact--no-button {
	grid-template-columns: 51px minmax(0, 1fr);
}

.hali-events-compact__date {
	display: grid;
	place-items: center;
	align-content: center;
	width: 51px;
	height: 52px;
	color: var(--haliev-accent);
	background: var(--haliev-primary);
	border-radius: 6px;
}

.hali-events-compact__date strong {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.hali-events-compact__date span {
	margin-top: 4px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.hali-events-compact__content {
	min-width: 0;
}

.hali-events-compact__content h3 {
	max-width: 100%;
	margin: 0 0 5px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--haliev-text);
}

.hali-events-compact__content h3 a {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hali-events-compact__content h3 a:hover,
.hali-events-compact__content h3 a:focus-visible {
	color: var(--haliev-primary);
}

.hali-events-compact__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-width: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--haliev-muted);
}

.hali-events-compact__meta img {
	display: block;
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
	object-fit: contain;
}

.hali-events-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 133px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	color: var(--haliev-primary);
	background: var(--haliev-white);
	border: 1px solid var(--haliev-primary);
	border-radius: 999px;
	transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hali-events-button__icon {
	display: inline-block;
	flex: 0 0 19px;
	width: 19px;
	height: 10px;
	background-color: currentColor;
	-webkit-mask-image: var(--hali-event-arrow);
	mask-image: var(--hali-event-arrow);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.hali-events-button:hover,
.hali-events-button:focus-visible {
	color: var(--haliev-white);
	background: linear-gradient(257deg, var(--haliev-primary) 0%, var(--haliev-dark) 100%);
	border-color: var(--haliev-primary);
	box-shadow: 0 7px 18px rgba(0, 93, 109, .16);
}

.hali-events-button:focus-visible {
	outline: 2px solid rgba(0, 93, 109, .3);
	outline-offset: 3px;
}

.hali-events-button[aria-busy="true"] {
	pointer-events: none;
	opacity: .72;
}

.hali-events-button--solid {
	justify-self: start;
	color: var(--haliev-white);
	background: linear-gradient(257deg, var(--haliev-primary) 0%, var(--haliev-dark) 100%);
}

.hali-events-button--solid:hover,
.hali-events-button--solid:focus-visible {
	background: var(--haliev-dark);
}

/* =========================================================
 * ALL EVENTS GRID
 * ======================================================= */
.hali-events-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 20px;
	min-width: 0;
}

.hali-event-card {
	min-width: 0;
}

.hali-event-card__link {
	display: grid;
	gap: 11px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.hali-event-card__media {
	display: block;
	aspect-ratio: 1.34 / 1;
	overflow: hidden;
	background: var(--haliev-soft);
	border-radius: 15px;
}

.hali-event-card__image,
.hali-event-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.hali-event-card__placeholder {
	background: linear-gradient(135deg, var(--haliev-soft), #d8e8ec);
}

.hali-event-card__link:hover .hali-event-card__image,
.hali-event-card__link:focus-visible .hali-event-card__image {
	transform: scale(1.035);
}

.hali-event-card h3 {
	display: -webkit-box;
	min-height: 2.8em;
	max-height: 2.8em;
	margin: 0;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-overflow: ellipsis;
	color: var(--haliev-text);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	transition: color .2s ease;
}

.hali-event-card__link:hover h3,
.hali-event-card__link:focus-visible h3 {
	color: var(--haliev-primary);
}

.hali-event-card__meta {
	display: grid;
	gap: 7px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--haliev-muted);
}

.hali-event-card__meta > span {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.hali-event-card__meta img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

/* =========================================================
 * PAGINATION
 * ======================================================= */
.hali-events-pagination {
	margin-top: 30px;
}

.hali-events-featured > .hali-events-pagination--upcoming {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.hali-events-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hali-events-pagination li {
	margin: 0;
	padding: 0;
}

.hali-events-pagination a.page-numbers,
.hali-events-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 9px 16px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	color: var(--haliev-text);
	background: var(--haliev-soft);
	border-radius: 999px;
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.hali-events-pagination span.current,
.hali-events-pagination a.page-numbers:hover,
.hali-events-pagination a.page-numbers:focus-visible {
	color: #fff;
	background: var(--haliev-primary);
	transform: translateY(-1px);
}

.hali-events-pagination .prev,
.hali-events-pagination .next {
	width: 40px;
	padding: 9px;
	font-size: 15px;
}

.hali-events-empty {
	padding: 28px;
	text-align: center;
	color: var(--haliev-text);
	background: var(--haliev-soft);
	border-radius: 15px;
}

/* =========================================================
 * SINGLE EVENT META
 * ======================================================= */
.hali-event-meta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 20px;
	background: var(--haliev-soft);
	border-radius: 15px;
}

.hali-event-meta-box__item {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.hali-event-meta-box__item img {
	width: 20px;
	height: 20px;
}

.hali-event-meta-box__item span {
	display: grid;
	gap: 4px;
}

.hali-event-meta-box__item small {
	font-size: 13px;
	color: var(--haliev-muted);
}

.hali-event-meta-box__item strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--haliev-text);
}

.hali-event-meta-box > .hali-events-button {
	margin-left: auto;
}

/* =========================================================
 * RESPONSIVE
 * ======================================================= */
@media (max-width: 1024px) {
	.hali-events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hali-events-compact {
		grid-template-columns: 48px minmax(0, 1fr) auto;
	}

	.hali-events-compact--no-button {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.hali-events-compact__date {
		width: 48px;
		height: 50px;
	}

	.hali-events-button {
		min-width: 116px;
		padding-inline: 18px;
	}
}

@media (max-width: 767px) {
	.hali-events-compact,
	.hali-events-compact:first-child,
	.hali-events-compact:last-child {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 10px;
		padding: 13px 0;
		border-bottom: 1px solid var(--haliev-line);
	}

	.hali-events-compact:last-child {
		border-bottom: 0;
	}

	.hali-events-compact__date {
		width: 46px;
		height: 50px;
	}

	.hali-events-compact__date strong {
		font-size: 18px;
	}

	.hali-events-compact__date span {
		font-size: 13px;
	}

	.hali-events-compact__content h3 {
		font-size: 15px;
	}

	.hali-events-compact__meta {
		font-size: 13px;
	}

	.hali-events-compact > .hali-events-button {
		grid-column: 2;
		justify-self: start;
		min-width: 0;
		padding: 9px 18px;
	}

	.hali-events-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hali-event-card__media {
		aspect-ratio: 1.55 / 1;
	}

	.hali-event-card h3 {
		font-size: 16px;
	}

	.hali-event-card__meta {
		font-size: 15px;
	}

	.hali-event-meta-box {
		display: grid;
		gap: 16px;
	}

	.hali-event-meta-box > .hali-events-button {
		margin-left: 0;
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hali-events-featured *,
	.hali-events-grid-wrap *,
	.hali-event-meta-box * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* =========================================================
 * RELATED EVENTS
 * ======================================================= */
.hali-events-related {
	--haliev-primary: #005d6d;
	--haliev-dark: #0b2c4c;
	--haliev-text: #092633;
	--haliev-muted: #91a1bb;
	--haliev-line: #dce8ec;
	--haliev-soft: #edf4f6;
	--haliev-white: #fff;
	--haliev-accent: #ffd45f;
	width: 100%;
	min-width: 0;
	color: var(--haliev-text);
	font-family: inherit;
}

.hali-events-related *,
.hali-events-related *::before,
.hali-events-related *::after {
	box-sizing: border-box;
}

.hali-events-related__heading-wrap {
	margin-bottom: 26px;
}

.hali-events-related__heading {
	margin: 0;
	padding: 0;
	color: var(--haliev-primary);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.hali-events-related__underline {
	display: block;
	width: 38px;
	height: 4px;
	margin-top: 10px;
	background: var(--haliev-primary);
	border-radius: 999px;
}

.hali-events-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 28px;
	width: 100%;
	min-width: 0;
}

@media (max-width: 1024px) {
	.hali-events-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hali-events-related__heading {
		font-size: 24px;
	}

	.hali-events-related__grid {
		grid-template-columns: 1fr;
	}
}
