/* Home Slider (Category: slider) */
.hsbc-slider{
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0,0,0,.06);
	/* Prevent collapse on mobile when slides are absolutely positioned */
	height: clamp(340px, 68vw, 560px);
}

@media (min-width: 768px){
	.hsbc-slider{ height: 520px; } /* overridden by JS when sidebar exists */
}

.hsbc-track{
	position: relative;
	height: 100%;
}

/* Slides: animate via opacity/transform */
.hsbc-slide{
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: translateX(12px);
	transition: opacity .45s ease, transform .45s ease;
	pointer-events: none;
}

.hsbc-slide.is-active{
	opacity: 1;
	transform: none;
	pointer-events: auto;
	z-index: 1;
}

.hsbc-link{
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.hsbc-media{
	flex: 1 1 auto;
	min-height: 0;
	background: #f3f3f3;
}

.hsbc-img{
width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background-color: #f1f1f1;
}

.hsbc-img--placeholder{
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(135deg, #eee, #eee 10px, #f8f8f8 10px, #f8f8f8 20px);
}

.hsbc-caption{
	flex: 0 0 auto;
	padding: 12px 14px 14px;
	border-top: 1px solid rgba(0,0,0,.06);
}

/* Rotitr: above title and distinct */
.hsbc-rotitr{
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: .2px;
	opacity: .78;
	margin-bottom: 6px;
}

.hsbc-title{
	margin: 0 0 8px 0;
	font-size: 1.02rem;
	line-height: 1.35;
}

.hsbc-lead{
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	opacity: .85;
}

/* Nav */
.hsbc-nav{
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(0,0,0,.42);
	color: #fff;
	cursor: pointer;
	z-index: 3;
	display: grid;
	place-items: center;
	transition: background .2s ease, transform .2s ease;
}
.hsbc-prev{ left: 10px; }
.hsbc-next{ right: 10px; }
.hsbc-nav:hover{ background: rgba(0,0,0,.60); }
.hsbc-nav:active{ transform: translateY(-50%) scale(.97); }
.hsbc-nav svg{ display:block; }

.hsbc-dots{
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	display: flex;
	gap: 8px;
	justify-content: center;
	z-index: 3;
	pointer-events: none;
}
.hsbc-dot{
	pointer-events: auto;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: rgba(255,255,255,.55);
	cursor: pointer;
}
.hsbc-dot.is-active{
	background: rgba(255,255,255,.95);
}

/* Mobile + Tablet clamps: title 4 lines, lead 2 lines */
@media (max-width: 1024px){
	.hsbc-title,
	.hsbc-lead{
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hsbc-title{
		-webkit-line-clamp: 4;
		line-height: 1.35;
		max-height: calc(4 * 1.35em);
	}

	.hsbc-lead{
		-webkit-line-clamp: 2;
		line-height: 1.55;
		max-height: calc(2 * 1.55em);
	}
}
