/* Hero Carousel Banner */
.hc-carousel {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	clear: both;
	margin: 0 auto 12px;
	--hc-pv: 1;
}
.hc-carousel *, .hc-carousel *::before, .hc-carousel *::after { box-sizing: border-box; }

.hc-viewport {
	position: relative;
	overflow: hidden;
	height: var(--hc-cur, var(--hc-h, 360px));
	border-radius: var(--hc-radius, 8px);
	touch-action: pan-y;
}
@media (max-width: 700px) {
	.hc-viewport { height: var(--hc-cur, var(--hc-hm, 180px)); }
}

/* Single item */
.hc-item {
	position: relative;
	overflow: hidden;
	height: 100%;
	border-radius: var(--hc-radius, 8px);
	background: rgba(0, 0, 0, 0.06);
	user-select: none;
}
.hc-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--hc-fit, cover);
	-webkit-user-drag: none;
}
.hc-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.hc-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 16px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.3;
	text-align: left;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
@media (max-width: 700px) {
	.hc-caption { padding: 20px 10px 8px; font-size: 13px; }
}

/* Before the script runs (or without JavaScript): simple swipeable strip */
.hc-src { display: flex; gap: var(--hc-gap, 10px); height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.hc-src > .hc-item { flex: 0 0 100%; scroll-snap-align: start; }

/* Width of one item when N are shown together */
.hc-track > .hc-item,
.hc-page > .hc-item {
	flex: 0 0 calc((100% - (var(--hc-pv) - 1) * var(--hc-gap, 10px)) / var(--hc-pv));
}

/* Slide + running (marquee) */
.hc-track {
	display: flex;
	gap: var(--hc-gap, 10px);
	height: 100%;
	will-change: transform;
}
.hc-slide .hc-track { transition: transform var(--hc-speed, 600ms) ease; }

/* Fade + flip work on pages */
.hc-page {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: center;
	gap: var(--hc-gap, 10px);
	visibility: hidden;
}
.hc-page.hc-active { visibility: visible; }
.hc-fade .hc-page { opacity: 0; transition: opacity var(--hc-speed, 600ms) ease, visibility 0s linear var(--hc-speed, 600ms); }
.hc-fade .hc-page.hc-active { opacity: 1; transition: opacity var(--hc-speed, 600ms) ease, visibility 0s; }
.hc-flip .hc-viewport { perspective: 1400px; overflow: visible; }
.hc-flip .hc-page { backface-visibility: hidden; transform-origin: 50% 50%; }

/* Arrows < > */
.hc-arrow {
	position: absolute;
	top: calc(var(--hc-cur, var(--hc-h, 360px)) / 2);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.hc-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.hc-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hc-prev { left: 10px; }
.hc-next { right: 10px; }
@media (max-width: 700px) {
	.hc-arrow { width: 32px; height: 32px; margin-top: -16px; font-size: 14px; }
	.hc-prev { left: 6px; }
	.hc-next { right: 6px; }
}

/* Dots */
.hc-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.hc-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}
.hc-dot.hc-active { width: 24px; background: #105289; }

/* Nothing to move */
.hc-single .hc-arrow, .hc-single .hc-dots { display: none; }
.hc-empty { display: none; }

@media (prefers-reduced-motion: reduce) {
	.hc-slide .hc-track, .hc-fade .hc-page { transition: none; }
}

/* ===================== Top ticker bar ===================== */
.hc-tk-wrap { position: relative; z-index: 50; width: 100%; box-sizing: border-box; }
.hc-tk-wrap *, .hc-tk-wrap *::before, .hc-tk-wrap *::after { box-sizing: border-box; }
.hc-tk-sticky { position: sticky; top: 0; z-index: 1000; }
.hc-tk-pos-1 { max-width: 1152px; margin: 0 auto 6px; }
.hc-tk-pos-1 .hc-tk { border-radius: 7px; }
.hc-tk-pos-1 .hc-tk + .hc-tk { margin-top: 4px; }
.hc-tk-pos-2 { margin: 4px 0 6px; }
.hc-tk-pos-2 .hc-tk { border-radius: 7px; }
.hc-tk-pos-2 .hc-tk + .hc-tk { margin-top: 4px; }

.hc-tk {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--tk-bg, #000);
	color: var(--tk-color, #fff);
	border-top: var(--tk-border, 0);
	border-bottom: var(--tk-border, 0);
	font-family: var(--tk-font, inherit);
	font-size: var(--tk-size, 16px);
	font-weight: var(--tk-weight, bold);
	line-height: 1.35;
}
.hc-tk-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: var(--tk-pad, 10px) 0; }
.hc-tk-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.hc-tk-item { display: inline-block; padding: 0 2.5em; }
.hc-tk-item a { color: inherit; text-decoration: none; }
.hc-tk-item a:hover { text-decoration: underline; }

/* Constant (no movement): centred, wraps on small screens */
.hc-tk-static .hc-tk-track { width: auto; white-space: normal; justify-content: center; text-align: center; }
.hc-tk-static .hc-tk-item { padding: 0 12px; }

/* Gradient text; emoji keep their own colours */
.hc-tk-grad .hc-tk-item {
	background-image: var(--tk-grad);
	background-size: 100% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.hc-tk-emoji { color: var(--tk-color, #fff); -webkit-text-fill-color: var(--tk-color, #fff); font-style: normal; }

/* Close (X) */
.hc-tk-close {
	flex: 0 0 auto;
	align-self: stretch;
	min-width: 36px;
	padding: 0 10px;
	border: 0;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 22px;
	font-weight: normal;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
}
.hc-tk-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.45); }
.hc-tk-close:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

@media (max-width: 700px) {
	.hc-tk { font-size: calc(var(--tk-size, 16px) * 0.85); }
	.hc-tk-pos-1, .hc-tk-pos-2 { margin-left: 0; margin-right: 0; }
	.hc-tk-pos-1 .hc-tk { border-radius: 0; }
}
