/* Homepage — latest articles slider (3 cards per slide) */
.dxh-blog-slider {
	position: relative;
}

.dxh-blog-track {
	display: flex;
	gap: 18px;
	padding: 4px 2px 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.dxh-blog-track::-webkit-scrollbar {
	display: none;
}

.dxh-blog-track:focus-visible {
	outline: 2px solid #005596;
	outline-offset: 2px;
	border-radius: 10px;
}

.dxh-blog-card {
	position: relative;
	flex: 0 0 calc((100% - 40px) / 3);
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d8e3ec;
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(7, 31, 55, .06);
	scroll-snap-align: start;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dxh-blog-card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, #003e77 0 78%, #c91522 78% 100%);
}

.dxh-blog-card:hover {
	transform: translateY(-3px);
	border-color: #b9cfdf;
	box-shadow: 0 16px 34px rgba(7, 31, 55, .11);
}

.dxh-blog-media {
	display: block;
}

.dxh-blog-media-inner {
	position: relative;
	height: 190px;
	overflow: hidden;
	background: #eef4f8;
}

.dxh-blog-media-inner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.dxh-blog-card:hover .dxh-blog-media-inner img {
	transform: scale(1.035);
}

.dxh-blog-media-inner .dx-blog-media-fallback {
	display: grid;
	place-items: center;
	height: 100%;
	color: #8aa5ba;
}

.dxh-blog-media-inner .dx-blog-media-fallback svg {
	width: 64px;
	height: 64px;
}

.dxh-blog-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px 17px 16px;
}

.dxh-blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 10.5px;
	font-weight: 700;
	color: #718294;
}

.dxh-blog-cat {
	padding: 3px 9px;
	border-radius: 6px;
	background: #edf5fa;
	color: #003e77;
}

.dxh-blog-title {
	display: -webkit-box;
	min-height: 54px;
	margin: 11px 0 8px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.8;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dxh-blog-title a {
	color: #071c31;
}

.dxh-blog-title a:hover {
	color: #c91522;
}

.dxh-blog-excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.95;
	color: #536a7d;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dxh-blog-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	font-weight: 800;
	color: #003e77;
}

.dxh-blog-more svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}

.dxh-blog-more:hover {
	color: #c91522;
}

.dxh-blog-more:hover svg {
	transform: translateX(-3px);
}

.dxh-blog-arrow {
	position: absolute;
	z-index: 3;
	top: 95px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #d3e0ea;
	border-radius: 50%;
	background: #fff;
	color: #003e77;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(7, 31, 55, .16);
	transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.dxh-blog-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dxh-blog-arrow:hover:not(:disabled) {
	background: #003e77;
	color: #fff;
}

.dxh-blog-arrow:disabled {
	opacity: .35;
	cursor: default;
}

.dxh-blog-prev {
	right: -14px;
}

.dxh-blog-next {
	left: -14px;
}

.dxh-blog-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 2px;
}

.dxh-blog-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c5d4e0;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.dxh-blog-dots button.is-active {
	width: 24px;
	background: #003e77;
}

@media (max-width: 1100px) {
	.dxh-blog-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 849px) {
	.dxh-blog-arrow {
		display: none;
	}
}

@media (max-width: 600px) {
	.dxh-blog-track {
		gap: 12px;
	}

	.dxh-blog-card {
		flex-basis: 84%;
	}

	.dxh-blog-media-inner {
		height: 170px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dxh-blog-card,
	.dxh-blog-media-inner img {
		transition: none;
	}
}
