/*
 * Dini 50 — Numbers strip.
 * Source design (sharjah.ac.ae "A Story through Numbers"): grey section,
 * white cards (radius 9, padding 27/22.5, ~158 high) with a 36px number, a
 * small label and an icon at the top end, gliding continuously (Swiper free
 * mode, loop, speed 20s). Here the glide is a CSS animation over a doubled
 * list. See developer guide §5.5.
 */

.dnb {
	background: var(--dini-gray-bg);
	padding-block: clamp(32px, 3.5vw, 48px);
	overflow: hidden;
}

.dnb-heading {
	margin: 0 0 24px;
	font-size: clamp(26px, 2.5vw, 36px);
	font-weight: 500;
	line-height: 1.25;
}
.dini-rtl .dnb-heading { font-weight: 700; }

.dnb-viewport {
	padding-inline-start: var(--dini-gutter);
	overflow-x: auto;
	scrollbar-width: none;
}
.dnb-viewport::-webkit-scrollbar { display: none; }

.dnb-track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Spacing lives inside each item so that half the track is exactly one copy. */
.dnb-item { flex: 0 0 auto; width: clamp(240px, 22vw, 320px); padding-inline-end: 30px; }

.dnb-card {
	height: 100%;
	min-height: 158px;
	padding: 27px 22px;
	border-radius: 9px;
	background: var(--dini-white);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dnb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dnb-value {
	font-size: clamp(30px, 2.5vw, 36px);
	font-weight: 500;
	line-height: 1.2;
	direction: ltr;
	unicode-bidi: isolate;
}
.dini-rtl .dnb-value { font-weight: 700; }
.dnb-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--dini-green-dark);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.dnb-label { margin: 0; font-size: 13.5px; line-height: 1.6; color: #222; }

/* Continuous glide. */
.dnb--animate .dnb-viewport { overflow: hidden; }
.dnb--animate .dnb-track { animation: dnb-glide var(--dnb-duration, 40s) linear infinite; }
.dini-rtl .dnb--animate .dnb-track { animation-name: dnb-glide-rtl; }
.dnb--animate .dnb-track:hover,
.dnb--animate .dnb-track:focus-within { animation-play-state: paused; }

@keyframes dnb-glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dnb-glide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Reduced motion: still, swipeable row; the duplicate copy is dropped. */
@media (prefers-reduced-motion: reduce) {
	.dnb--animate .dnb-viewport { overflow-x: auto; }
	.dnb--animate .dnb-track { animation: none !important; }
	.dnb-item[aria-hidden="true"] { display: none; }
}

@media (max-width: 575px) {
	.dnb-item { width: 72vw; padding-inline-end: 16px; }
}
