.stl {
	--g: #22a98a;
	--gd: #157a63;
	--gold: #d6a23e;
	--ink: #1d2826;
	--muted: #5d6b68;
	--bg: #f7f4ec;
	--card: #ffffff;
	font-family: "Tajawal", system-ui, sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 12% 8%, rgba(34,169,138,.08), transparent 40%),
		radial-gradient(circle at 88% 30%, rgba(214,162,62,.08), transparent 35%),
		var(--bg);
	padding: 0 20px 96px;
	direction: rtl;
	text-align: right;
	overflow: hidden;
	/* عرض كامل حتى داخل قالب محدود العرض */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.stl *, .stl *::before, .stl *::after { box-sizing: border-box; }
body.stl-page { overflow-x: hidden; }
body.stl-page .site-main, body.stl-page .page-content { margin-top: 0 !important; padding-top: 0 !important; }
body.stl-page .page-header { display: none; }

/* ---------- الرأس (داكن مثل الصفحة الرئيسية) ---------- */
.stl-hero {
	margin: 0 -20px; padding: 170px 20px 110px; text-align: center;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(34,169,138,.28), transparent 60%),
		#333;
	color: #fff;
}
.stl-hero > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.stl-eyebrow {
	display: inline-block; background: rgba(34,169,138,.22); color: #7fe0c6;
	font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; letter-spacing: .3px;
}
.stl .stl-h { font-size: clamp(38px, 7vw, 72px); font-weight: 800; line-height: 1.1; margin: 18px auto 14px; color: #fff; }
.stl .stl-sub { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.75); line-height: 1.8; max-width: 620px; }
.stl-stats { display: flex; justify-content: center; gap: 12px; margin: 34px auto 30px; flex-wrap: wrap; }
.stl-stats > div {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
	padding: 14px 24px; min-width: 150px; display: flex; flex-direction: column; gap: 2px;
}
.stl-stats b { font-size: 32px; font-weight: 800; color: #5fd3b2; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stl-stats span { font-size: 14px; color: rgba(255,255,255,.7); }

.stl-navwrap { position: sticky; top: 14px; z-index: 6; text-align: center; margin: -27px 0 60px; }
.admin-bar .stl-navwrap { top: 46px; }
.stl-nav {
	display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
	background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
	padding: 6px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.stl-nav a {
	text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
	padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s;
	font-variant-numeric: tabular-nums;
}
.stl-nav a:hover, .stl-nav a.is-on { background: var(--g); color: #fff; }

/* ---------- الخط الزمني (متعرّج) ---------- */
.stl-line { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; position: relative; }
.stl-line::before {
	content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 4px; margin-right: -2px;
	background: linear-gradient(to bottom, var(--g), var(--gold));
	border-radius: 4px; opacity: .35;
}
.stl-item {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 110px;
	align-items: center; padding: 0 0 90px; margin: 0;
}
.stl-item::marker { content: none; }
.stl-dot {
	position: absolute; top: calc(50% - 45px); right: 50%; margin-right: -14px;
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--bg); border: 6px solid var(--g); box-shadow: 0 0 0 8px rgba(34,169,138,.15);
	z-index: 2;
}
/* في RTL العمود الأول هو اليمين */
.stl-right .stl-meta { order: 2; }
.stl-right .stl-card { order: 1; }
.stl-left .stl-meta { order: 1; }
.stl-left .stl-card { order: 2; }

.stl-meta { position: relative; }
.stl-year {
	display: block; font-size: clamp(64px, 8vw, 112px); font-weight: 800; line-height: .9; letter-spacing: -2px;
	background: linear-gradient(135deg, #2bc29e, #157a63);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.stl .stl-t { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin: 0 0 10px; color: var(--ink); line-height: 1.35; }
.stl .stl-desc { color: var(--muted); font-size: 17px; line-height: 1.9; margin: 0 0 16px; max-width: 460px; }
.stl-count-badge {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
	color: var(--gd); background: rgba(34,169,138,.1); padding: 5px 12px; border-radius: 999px;
}

.stl-card {
	background: var(--card); border-radius: 24px; padding: 12px;
	box-shadow: 0 14px 44px rgba(29,40,38,.10);
	position: relative;
	transition: transform .35s ease, box-shadow .35s ease;
}
.stl-card:hover { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(29,40,38,.14); }

/* ---------- معرض الصور ---------- */
.stl-gallery { display: grid; gap: 8px; }
.stl-ph { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #e9e5da; }
.stl-ph img { width: 100% !important; height: auto !important; max-width: none; object-fit: cover; display: block; transition: transform .5s ease; aspect-ratio: 3 / 2; border-radius: 0 !important; }
.stl-ph:hover img { transform: scale(1.06); }
.stl-ph::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.25), transparent 45%);
	opacity: 0; transition: opacity .3s;
}
.stl-ph:hover::after { opacity: 1; }
.stl-more { display: none; }
.stl-plus {
	position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
	background: rgba(21,122,99,.72); color: #fff; font-size: 26px; font-weight: 800;
}

.stl-n1 { grid-template-columns: 1fr; }
.stl-n2 { grid-template-columns: 1fr 1fr; }
.stl-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.stl-n3 .stl-ph:first-child { grid-row: span 2; }
.stl-n4 { grid-template-columns: 1fr 1fr 1fr; }
.stl-n4 .stl-ph:first-child { grid-column: span 3; }
.stl-n5 { grid-template-columns: 2fr 1fr 1fr; }
.stl-n5 .stl-ph:first-child { grid-row: span 2; }
.stl-n5 .stl-ph:first-child img, .stl-n3 .stl-ph:first-child img { position: absolute; inset: 0; height: 100% !important; aspect-ratio: auto; }


/* ---------- ظهور تدريجي ---------- */
.stl-js .stl-item { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.stl-js .stl-item.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.stl-js .stl-item { opacity: 1; transform: none; transition: none; }
	.stl-ph img, .stl-card { transition: none; }
}

/* ---------- عارض الصور ---------- */
.stl-lb {
	position: fixed; inset: 0; z-index: 99999; background: rgba(12,18,17,.94);
	display: flex; align-items: center; justify-content: center; padding: 24px;
}
.stl-lb[hidden] { display: none; }
.stl-lb figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.stl-lb img { max-width: 100%; max-height: 80vh; border-radius: 12px; display: block; margin: 0 auto; }
.stl-lb figcaption { color: #e8efe9; font-size: 16px; margin-top: 14px; line-height: 1.7; font-family: "Tajawal", sans-serif; }
.stl-lb button {
	position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
	width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; display: grid; place-items: center;
	transition: background .2s;
}
.stl-lb button:hover { background: var(--g); }
.stl-lb-x { top: 18px; left: 18px; font-size: 30px !important; }
.stl-lb-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.stl-lb-next { left: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- الجوال ---------- */
@media (max-width: 900px) {
	.stl { padding: 0 16px 64px; }
	.stl-hero { margin: 0 -16px; padding: 130px 16px 90px; }
	.stl-navwrap { margin-bottom: 36px; }
	.stl-line::before { right: 12px; margin: 0; }
	.stl-item { grid-template-columns: 1fr; row-gap: 16px; padding: 0 44px 56px 0; }
	.stl-right .stl-meta, .stl-left .stl-meta { order: 1; }
	.stl-right .stl-card, .stl-left .stl-card { order: 2; }
	.stl-dot { top: 18px; right: 12px; margin-right: -12px; width: 24px; height: 24px; border-width: 5px; }
	.stl-year { font-size: 56px; margin-bottom: 8px; }
	.stl .stl-desc { font-size: 16px; }
	.stl-card { padding: 8px; border-radius: 18px; }
	.stl-stats > div { min-width: 0; flex: 1; padding: 12px; }
	.stl-stats b { font-size: 24px; }
	.stl-nav { border-radius: 16px; }
	.stl-nav a { padding: 6px 10px; font-size: 14px; }
	.stl-lb-prev, .stl-lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 520px) {
	.stl-n5 { grid-template-columns: 1fr 1fr; }
	.stl-n5 .stl-ph:first-child { grid-row: auto; grid-column: span 2; }
	.stl-n5 .stl-ph:first-child img { position: static; aspect-ratio: 3 / 2; height: auto !important; }
}

/* ---------- حماية من تنسيقات القالب ---------- */
.stl a { text-decoration: none !important; box-shadow: none; }
.stl .stl-nav a { color: var(--ink) !important; }
.stl .stl-nav a:hover, .stl .stl-nav a.is-on { color: #fff !important; background: var(--g); }
.stl .stl-lb button {
	border-radius: 50% !important; padding: 0 !important; border: 0 !important;
	background: rgba(255,255,255,.12) !important; color: #fff !important; min-width: 0;
}
.stl .stl-lb button:hover { background: var(--g) !important; }
@media (min-width: 901px) {
	.stl-line { max-width: 1320px; }
	.stl-item { column-gap: 84px; padding-bottom: 72px; }
}

/* إصلاح قصّ أعلى أرقام السنوات (التدرج اللوني مع ارتفاع سطر صغير) */
.stl .stl-year { line-height: 1.2 !important; padding: .12em .04em .04em; margin-top: -.12em; overflow: visible; }
