/* بنر المناسبات الهجرية */

.shb-banner {
	--shb-bg: #f2f8f6;
	--shb-text: #0f172a;
	--shb-accent: #0f766e;
	--shb-max: 1200px;
	--shb-radius: 18px;

	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	padding: 18px 16px;
	font-family: inherit;
}

.shb-banner *,
.shb-banner *::before,
.shb-banner *::after {
	box-sizing: border-box;
}

.shb-inner {
	max-width: var(--shb-max);
	margin-inline: auto;
	background: var(--shb-bg);
	color: var(--shb-text);
	border-radius: var(--shb-radius);
	border: 1px solid color-mix(in srgb, var(--shb-accent) 18%, transparent);
	box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.55);
	overflow: hidden;
}

/* شريط التاريخ */

.shb-datebar {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 20px;
	background: color-mix(in srgb, var(--shb-accent) 10%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--shb-accent) 15%, transparent);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.shb-datebar-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--shb-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--shb-accent) 20%, transparent);
}

.shb-datebar-text {
	color: color-mix(in srgb, var(--shb-text) 82%, var(--shb-accent));
}

/* الشرائح */

.shb-track {
	position: relative;
}

.shb-slide {
	display: none;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 20px 22px;
	min-height: 132px;
}

.shb-slide.is-active {
	display: grid;
	animation: shb-fade 0.45s ease both;
}

.shb-slide.shb-no-media {
	grid-template-columns: minmax(0, 1fr);
}

@keyframes shb-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shb-slide.is-active {
		animation: none;
	}
}

.shb-media {
	margin: 0;
	border-radius: calc(var(--shb-radius) - 6px);
	overflow: hidden;
	background: color-mix(in srgb, var(--shb-accent) 8%, transparent);
	aspect-ratio: 16 / 10;
}

.shb-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shb-body {
	min-width: 0;
}

.shb-heading {
	margin: 0 0 8px;
	font-size: clamp(1.05rem, 1.5vw, 1.4rem);
	font-weight: 800;
	line-height: 1.4;
	color: var(--shb-accent);
}

.shb-text {
	margin: 0;
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	line-height: 1.9;
	color: color-mix(in srgb, var(--shb-text) 88%, transparent);
}

.shb-text p {
	margin: 0 0 0.6em;
}

.shb-text p:last-child {
	margin-bottom: 0;
}

.shb-cta {
	display: inline-block;
	margin-top: 14px;
	padding: 9px 20px;
	border-radius: 999px;
	background: var(--shb-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.18s ease, filter 0.18s ease;
}

.shb-cta:hover,
.shb-cta:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

/* التنقل */

.shb-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 20px 16px;
}

.shb-arrow {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid color-mix(in srgb, var(--shb-accent) 30%, transparent);
	border-radius: 50%;
	background: transparent;
	color: var(--shb-accent);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.shb-arrow:hover,
.shb-arrow:focus-visible {
	background: var(--shb-accent);
	color: #fff;
}

.shb-dots {
	display: flex;
	align-items: center;
	gap: 7px;
}

.shb-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--shb-accent) 30%, transparent);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.shb-dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: var(--shb-accent);
}

/* الجوال */

@media (max-width: 782px) {
	.shb-banner {
		padding: 12px;
	}

	.shb-slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 16px;
		text-align: center;
	}

	.shb-media {
		max-width: 320px;
		margin-inline: auto;
		aspect-ratio: 16 / 9;
	}

	.shb-datebar {
		justify-content: center;
		padding: 9px 14px;
		font-size: 0.85rem;
	}

	.shb-nav {
		padding: 0 14px 14px;
	}
}

/* دعم المتصفحات القديمة التي لا تعرف color-mix */

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.shb-inner {
		border-color: rgba(15, 23, 42, 0.12);
	}
	.shb-datebar {
		background: rgba(15, 23, 42, 0.04);
		border-bottom-color: rgba(15, 23, 42, 0.1);
	}
	.shb-dot {
		background: rgba(15, 23, 42, 0.25);
	}
}
