/* ==========================================================================
   Research-topic archive — «أرشيف: المواضيع البحثية»
   Widgets: acs-topics-hero (grey band) + acs-topics-list (numbered rows).
   Values reverse-engineered from the Figma frame (node 3318:89196), RTL.
   ========================================================================== */

/* ---- Hero band (breadcrumb + title + stats) ---------------------------- */
.acs-topics-hero {
	background: #F7F7F7;
}
.acs-topics-hero__inner {
	/* Horizontal padding is intentionally 0 — the hero is wrapped in a Bricks
	   block that supplies the 60px inline-start / bottom padding. */
	direction: rtl;
	text-align: right;
}
.acs-topics-hero__title {
	margin: 32px 0 0;
	font-family: "Readex Pro", sans-serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 1.5;
	color: #231F20;
}

/* Stats cluster — right-aligned, 32px vertical padding, dividers between. */
.acs-topics-hero__stats {
	display: flex;
	flex-direction: row;
	justify-content: flex-start; /* RTL: starts from the right */
	align-items: center;
	padding-block: 32px;
}
.acs-topics-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* RTL: content hugs the right */
	padding-inline: 32px;
}
.acs-topics-hero__stat:first-child {
	padding-inline-start: 0; /* rightmost stat is flush to the start */
}
.acs-topics-hero__stat-value {
	font-family: "Readex Pro", sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.5;
	color: #231F20;
	white-space: nowrap;
}
.acs-topics-hero__stat-label {
	font-family: "Readex Pro", sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.5;
	color: #9C999A;
	white-space: nowrap;
}
.acs-topics-hero__sep {
	flex: none;
	width: 1px;
	height: 40px;
	background: #E5EFED;
	align-self: center;
}

/* ---- Topic rows -------------------------------------------------------- */
.acs-topics-list {
	direction: rtl;
}
.acs-topics-list__empty {
	padding: 48px 60px;
	text-align: center;
	color: #9C999A;
	font-family: "Readex Pro", sans-serif;
}
.acs-topics-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 48px;
	padding: 32px 60px;
	background: #FFFFFF;
	border: 1px solid #E5EFED;
	text-align: right;
	transition: background-color 0.2s ease;
}
.acs-topics-row + .acs-topics-row {
	margin-top: -1px; /* collapse adjacent borders into a single 1px line */
}
.acs-topics-row:hover {
	position: relative;
	z-index: 1;
	background: #F7F7F7;
}

/* Index number (right) */
.acs-topics-row__num {
	flex: none;
	font-family: "Readex Pro", sans-serif;
	font-weight: 700;
	font-size: 48px;
	line-height: 1;
	color: #E5EFED;
}

/* Main content (middle) */
.acs-topics-row__body {
	flex: 1 1 auto;
	min-width: 0;
}
.acs-topics-row__title {
	margin: 0;
	font-family: "Readex Pro", sans-serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 1.5;
	color: #231F20;
}
.acs-topics-row__title a {
	color: inherit;
	text-decoration: none;
}
.acs-topics-row__title a::after {
	content: "";
	display: inline-block;
	width: 52px;
	height: 4px;
	background: #068788;
	vertical-align: middle;
	margin-inline-start: 12px; /* RTL: gap on the left of the title */
	border-radius: 2px;
}
.acs-topics-row__excerpt {
	margin: 12px 0 24px;
	font-family: "Readex Pro", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5;
	color: #9C999A;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* «آخر منشور» block — green accent bar on the right */
.acs-topics-row__latest {
	position: relative;
	padding-inline-start: 16px; /* RTL: space between bar (right) and content */
}
.acs-topics-row__latest::before {
	content: "";
	position: absolute;
	inset-inline-start: 0; /* RTL: right edge */
	top: 0;
	bottom: 0;
	width: 2px;
	background: #068788;
	border-radius: 2px;
}
.acs-topics-row__latest-label {
	display: block;
	font-family: "Readex Pro", sans-serif;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.5;
	color: #068788;
}
.acs-topics-row__latest-title {
	display: block;
	margin-top: 2px;
	font-family: "Readex Pro", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: #231F20;
	text-decoration: none;
}
.acs-topics-row__latest-meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start; /* RTL: right */
	gap: 8px;
	margin-top: 6px;
}
.acs-topics-row__date {
	font-family: "Readex Pro", sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.5;
	color: #9C999A;
}
.acs-topics-row__dot {
	color: #9C999A;
}

/* Count + link (left) */
.acs-topics-row__aside {
	flex: none;
	width: 144px;
	text-align: right;
}
.acs-topics-row__count {
	padding-top: 12px;
}
.acs-topics-row__count-num {
	font-family: "Readex Pro", sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.5;
	color: #231F20;
}
.acs-topics-row__count-label {
	font-family: "Readex Pro", sans-serif;
	font-weight: 300;
	font-size: 10px;
	line-height: 1.5;
	color: #231F20;
	margin-inline-start: 4px;
}
.acs-topics-row__more {
	display: block;
	margin-top: 20px;
	font-family: "Readex Pro", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: #068788;
	text-decoration: none;
}

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 782px) {
	.acs-topics-hero__inner {

	}
	.acs-topics-hero__stat{
	    padding-inline: 16px;
		height: 89px;
    	justify-content: space-between;
	}
	.acs-topics-hero__title {
		margin-top: 24px;
		font-size: 32px;
	}
	
	.acs-topics-hero__stats {
		flex-wrap: nowrap;
		gap: 12px 0;
		padding-block: 24px;
	}
	.acs-topics-hero__stat-label{
		text-wrap: wrap;
	}
	.acs-topics-hero__stat-value {
		text-wrap: wrap;
		height: 72px;
		font-size: 18px;
	}
	.acs-topics-row {
		flex-direction: column;
		gap: 16px;
		padding: 24px 20px;
	}
	.acs-topics-row__num {
		font-size: 32px;
	}
	.acs-topics-row__title {
		font-size: 22px;
	}
	.acs-topics-row__aside {
		width: auto;
		display: flex;
		align-items: baseline;
		gap: 24px;
	}
	.acs-topics-row__count {
		padding-top: 0;
	}
	.acs-topics-row__more {
		margin-top: 0;
		align-self: center;
	}
}
