/**
 * صفحة hub المقالات — مبني على articles.html (نطاق .articles-archive-hub فقط).
 * يُحمّل مع أرشيف المنشورات وفهرس المدونة.
 */

.articles-archive-hub .breadcrumb {
	padding: 13px 0;
	border-bottom: 1px solid var(--line-soft);
	background: var(--cream-soft);
}

.articles-archive-hub .breadcrumb__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}

.articles-archive-hub .breadcrumb__inner a {
	color: var(--muted);
	transition: color 0.25s var(--ease);
}

.articles-archive-hub .breadcrumb__inner a:hover {
	color: var(--sage-900);
}

.articles-archive-hub .breadcrumb__inner svg {
	width: 12px;
	height: 12px;
	color: var(--line);
	transform: rotate(180deg);
	flex-shrink: 0;
}

.articles-archive-hub .breadcrumb__inner .current {
	color: var(--ink-soft);
	font-weight: 500;
}

/* ——— Hero ——— */
.articles-archive-hub .page-hero {
	padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 7vw, 90px);
	position: relative;
	overflow: hidden;
}

.articles-archive-hub .page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(70% 50% at 60% 0%, rgba(138, 154, 141, 0.13), transparent 60%),
		radial-gradient(50% 50% at 15% 90%, rgba(184, 158, 117, 0.09), transparent 60%);
}

.articles-archive-hub .page-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.articles-archive-hub .page-hero__text .eyebrow {
	margin-bottom: 24px;
}

.articles-archive-hub .page-hero__h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1.12;
	color: var(--sage-900);
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.articles-archive-hub .page-hero__h1 em {
	font-style: italic;
	color: var(--accent-deep);
	font-weight: 400;
}

.articles-archive-hub .page-hero__rule {
	width: 60px;
	height: 2px;
	background: var(--accent);
	display: block;
	margin: 18px 0 20px;
}

.articles-archive-hub .page-hero__lead {
	font-size: clamp(16px, 1.4vw, 18px);
	color: var(--ink-soft);
	line-height: 1.95;
	max-width: 54ch;
	margin-bottom: 34px;
}

.articles-archive-hub .page-hero__ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.articles-archive-hub .page-hero__strip {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--line-soft);
	display: flex;
	gap: 40px;
}

.articles-archive-hub .page-hero__strip-item .n {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--sage-800);
	line-height: 1;
	display: block;
	margin-bottom: 7px;
}

.articles-archive-hub .page-hero__strip-item span {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.5;
}

.articles-archive-hub .page-hero__visual {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
	position: relative;
}

.articles-archive-hub .page-hero__img {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 3 / 4;
	width: 100%;
	max-width: 320px;
	box-shadow: var(--shadow-md);
	margin-right: 0;
	margin-left: auto;
}

.articles-archive-hub .page-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.articles-archive-hub .page-hero__note {
	background: var(--sage-900);
	color: var(--cream-soft);
	padding: 20px 22px;
	border-radius: var(--radius-md);
	font-family: var(--font-display);
	font-size: 15px;
	font-style: italic;
	line-height: 1.65;
	max-width: 260px;
	align-self: flex-start;
	box-shadow: var(--shadow-sm);
}

.articles-archive-hub .page-hero__note::before {
	content: "\201C";
	font-size: 32px;
	line-height: 0.8;
	color: var(--gold);
	display: block;
	margin-bottom: 8px;
	font-style: normal;
}

/* ——— Intro ——— */
.articles-archive-hub .intro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
}

.articles-archive-hub .intro__text .eyebrow {
	margin-bottom: 22px;
}

.articles-archive-hub .intro__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.5vw, 42px);
	line-height: 1.28;
	color: var(--sage-900);
	margin-bottom: 22px;
}

.articles-archive-hub .intro__title em {
	font-style: italic;
	color: var(--accent-deep);
	font-weight: 400;
}

.articles-archive-hub .intro__body p {
	font-size: 16.5px;
	color: var(--ink-soft);
	line-height: 1.95;
	margin: 0 0 20px;
}

.articles-archive-hub .intro__body p:last-child {
	margin-bottom: 0;
}

.articles-archive-hub .intro__body strong {
	color: var(--sage-900);
	font-weight: 600;
}

.articles-archive-hub .intro__visual {
	position: relative;
}

.articles-archive-hub .intro__img {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	box-shadow: var(--shadow-md);
	position: relative;
}

.articles-archive-hub .intro__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.articles-archive-hub .intro__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(46, 59, 49, 0.45), transparent 50%);
	pointer-events: none;
}

.articles-archive-hub .intro__caption {
	position: absolute;
	bottom: 22px;
	right: 22px;
	left: 22px;
	z-index: 2;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 17px;
	color: var(--cream-soft);
	line-height: 1.6;
	margin: 0;
}

/* ——— Section heads (shared) ——— */
.articles-archive-hub .section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: clamp(40px, 6vw, 64px);
}

.articles-archive-hub .section-head .eyebrow {
	margin-bottom: 18px;
}

.articles-archive-hub .section-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.8vw, 44px);
	line-height: 1.25;
	color: var(--sage-900);
	margin-bottom: 14px;
}

.articles-archive-hub .section-title em {
	font-style: italic;
	color: var(--accent-deep);
	font-weight: 400;
}

.articles-archive-hub .section-sub {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.85;
	max-width: 60ch;
	margin-top: 8px;
}

.articles-archive-hub .section {
	padding: clamp(72px, 9vw, 120px) 0;
}

.articles-archive-hub .section--alt {
	background: var(--cream-soft);
}

.articles-archive-hub .section--dark {
	background: var(--sage-900);
	color: var(--cream-soft);
	overflow: hidden;
}

/* ——— Featured (sticky) ——— */
.articles-archive-hub .featured-wrap {
	margin-bottom: 0;
}

.articles-archive-hub .featured__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	max-width: 860px;
	margin: 0 auto;
}

.articles-archive-hub .featured__grid .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
	display: block;
}

.articles-archive-hub .featured__grid .feature-main {
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.articles-archive-hub .featured__grid .feature-main:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.articles-archive-hub .feature-main__cover {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.articles-archive-hub .feature-main__cover figure {
	margin: 0;
	height: 100%;
}

.articles-archive-hub .feature-main__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
	display: block;
}

.articles-archive-hub .feature-main:hover .feature-main__cover img {
	transform: scale(1.05);
}

.articles-archive-hub .feature-main__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(46, 59, 49, 0.02), rgba(46, 59, 49, 0.28));
	pointer-events: none;
}

.articles-archive-hub .feature-main__cover .wp-block-post-terms,
.articles-archive-hub .feature-main__cover-cat-wrap {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
}

.articles-archive-hub .feature-main__cover .wp-block-post-terms a {
	background: var(--sage-800);
	color: var(--cream-soft);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: 999px;
	text-decoration: none;
}

.articles-archive-hub .feature-main__body {
	padding: 30px 28px 28px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	text-align: right;
}

.articles-archive-hub .feature-main__date {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.06em;
	margin-bottom: 14px;
	display: block;
}

.articles-archive-hub .feature-main__body .wp-block-post-title {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	color: var(--sage-900);
	line-height: 1.38;
	margin-bottom: 14px;
}

.articles-archive-hub .feature-main__body .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s var(--ease);
}

.articles-archive-hub .feature-main:hover .feature-main__body .wp-block-post-title a {
	color: var(--accent-deep);
}

.articles-archive-hub .feature-main__body .wp-block-post-excerpt {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.85;
	flex-grow: 1;
	margin-bottom: 22px;
}

.articles-archive-hub .feature-main__read {
	margin-top: auto;
}

/* ——— Main grid ——— */
.articles-archive-hub .articles__grid {
	margin-top: 0;
}

.articles-archive-hub .articles__grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.articles-archive-hub .articles__grid .wp-block-post-template > li {
	margin: 0;
}

.articles-archive-hub .article-card {
	background: transparent;
	display: flex;
	flex-direction: column;
	transition: transform 0.45s var(--ease);
	height: 100%;
}

.articles-archive-hub .article-card:hover {
	transform: translateY(-4px);
}

.articles-archive-hub .article-card__cover.wp-block-group {
	display: block;
}

.articles-archive-hub .article-card__cover .wp-block-post-featured-image {
	display: block;
	height: 100%;
	min-height: 100%;
	position: relative;
	z-index: 0;
}

.articles-archive-hub .article-card__cover .wp-block-post-featured-image figure {
	height: 100%;
	min-height: 100%;
}

.articles-archive-hub .article-card__cover .wp-block-post-featured-image img {
	min-height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
	display: block;
}

.articles-archive-hub .article-card:hover .article-card__cover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.articles-archive-hub .article-card__cover .wp-block-post-terms.article-card__cover-cat {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 2;
	margin: 0;
}

.articles-archive-hub .article-card__cover .wp-block-post-terms.article-card__cover-cat a {
	background: rgba(245, 239, 228, 0.9);
	backdrop-filter: blur(6px);
	font-size: 11px;
	letter-spacing: 0.15em;
	color: var(--ink-soft);
	padding: 5px 12px;
	border-radius: 999px;
	font-weight: 500;
	border: 1px solid rgba(255, 255, 255, 0.5);
	text-decoration: none;
}

.articles-archive-hub .article-card:hover .article-card__cover .wp-block-post-terms.article-card__cover-cat a {
	color: var(--sage-900);
}

.articles-archive-hub .article-card__cover .wp-block-post-terms.article-card__cover-cat {
	pointer-events: auto;
}

.articles-archive-hub .article-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.articles-archive-hub .article-card__cat {
	font-size: 12px;
	color: var(--accent-deep);
	font-weight: 500;
	letter-spacing: 0.05em;
}

.articles-archive-hub .article-card__cat a {
	color: inherit;
	text-decoration: none;
}

.articles-archive-hub .article-card__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--line);
	display: inline-block;
}

.articles-archive-hub .article-card__time {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.04em;
}

.articles-archive-hub .article-card__title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--sage-900);
	line-height: 1.42;
	margin-bottom: 10px;
	transition: color 0.3s var(--ease);
}

.articles-archive-hub .article-card__title a {
	text-decoration: none;
	color: inherit;
}

.articles-archive-hub .article-card:hover .article-card__title {
	color: var(--accent-deep);
}

.articles-archive-hub .article-card__excerpt,
.articles-archive-hub .article-card__excerpt p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.8;
	margin-bottom: 16px;
	flex-grow: 1;
}

.articles-archive-hub .article-card a.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}

/* ——— Categories ——— */
.articles-archive-hub .categories__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.articles-archive-hub .categories__grid > * {
	min-width: 0;
}

.articles-archive-hub .cat-card {
	padding: 28px 22px;
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transition:
		transform 0.45s var(--ease),
		box-shadow 0.45s var(--ease),
		border-color 0.45s var(--ease),
		background 0.45s var(--ease);
	text-decoration: none;
	color: inherit;
}

.articles-archive-hub .cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--sage-600);
	background: var(--sage-900);
}

.articles-archive-hub .cat-card__icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--cream-deep);
	color: var(--sage-800);
	display: grid;
	place-items: center;
	transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.articles-archive-hub .cat-card:hover .cat-card__icon {
	background: rgba(245, 239, 228, 0.12);
	color: var(--gold);
}

.articles-archive-hub .cat-card__icon svg {
	width: 22px;
	height: 22px;
}

.articles-archive-hub .cat-card__name {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--sage-900);
	line-height: 1.35;
	transition: color 0.35s var(--ease);
}

.articles-archive-hub .cat-card:hover .cat-card__name {
	color: var(--cream-soft);
}

.articles-archive-hub .cat-card__count {
	font-size: 12.5px;
	color: var(--muted);
	transition: color 0.35s var(--ease);
	line-height: 1.35;
}

.articles-archive-hub .cat-card:hover .cat-card__count {
	color: rgba(245, 239, 228, 0.6);
}

/* ——— Why section ——— */
.articles-archive-hub .why__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.articles-archive-hub .why__text .eyebrow {
	margin-bottom: 22px;
}

.articles-archive-hub .why__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.5vw, 42px);
	line-height: 1.28;
	color: var(--cream-soft);
	margin-bottom: 22px;
}

.articles-archive-hub .why__title em {
	font-style: italic;
	color: var(--gold);
	font-weight: 400;
}

.articles-archive-hub .why__lead {
	font-size: 16px;
	color: rgba(245, 239, 228, 0.75);
	line-height: 1.9;
	margin-bottom: 32px;
}

.articles-archive-hub .why__points {
	display: grid;
	gap: 14px;
}

.articles-archive-hub .why-point {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	background: rgba(245, 239, 228, 0.06);
	border: 1px solid rgba(245, 239, 228, 0.1);
	border-radius: var(--radius-md);
	align-items: flex-start;
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.articles-archive-hub .why-point:hover {
	border-color: var(--gold);
	background: rgba(245, 239, 228, 0.1);
}

.articles-archive-hub .why-point__check {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--sage-900);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.articles-archive-hub .why-point__check svg {
	width: 11px;
	height: 11px;
}

.articles-archive-hub .why-point__text {
	font-size: 15px;
	color: rgba(245, 239, 228, 0.8);
	line-height: 1.75;
}

.articles-archive-hub .why-point__text b {
	color: var(--cream-soft);
	font-weight: 600;
	display: block;
	margin-bottom: 3px;
}

.articles-archive-hub .why__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.articles-archive-hub .why-stat {
	background: rgba(245, 239, 228, 0.06);
	border: 1px solid rgba(245, 239, 228, 0.1);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.articles-archive-hub .why-stat:hover {
	border-color: var(--gold);
	background: rgba(245, 239, 228, 0.1);
}

.articles-archive-hub .why-stat .n {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 700;
	color: var(--cream-soft);
	line-height: 1;
	display: block;
	margin-bottom: 10px;
}

.articles-archive-hub .why-stat .n sub {
	font-size: 0.5em;
	color: var(--gold);
	font-family: var(--font-latin);
	font-style: italic;
	vertical-align: baseline;
}

.articles-archive-hub .why-stat h4 {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--cream-soft);
	margin-bottom: 8px;
	line-height: 1.35;
}

.articles-archive-hub .why-stat p {
	font-size: 13.5px;
	color: rgba(245, 239, 228, 0.65);
	line-height: 1.75;
	margin: 0;
}

.articles-archive-hub .articles-archive-pagination {
	margin-top: clamp(40px, 5vw, 56px);
	display: flex;
	justify-content: center;
}

@media (max-width: 1180px) {
	.articles-archive-hub .categories__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.articles-archive-hub .page-hero__inner,
	.articles-archive-hub .intro__grid,
	.articles-archive-hub .why__layout {
		grid-template-columns: 1fr;
	}

	.articles-archive-hub .page-hero__inner {
		gap: 44px;
	}

	.articles-archive-hub .page-hero__visual {
		flex-direction: row;
		align-items: flex-start;
		order: -1;
		max-width: 100%;
	}

	.articles-archive-hub .page-hero__img {
		max-width: 280px;
	}

	.articles-archive-hub .articles__grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}

	.articles-archive-hub .categories__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 720px) {
	.articles-archive-hub .page-hero {
		padding: 34px 0 56px;
	}

	.articles-archive-hub .page-hero__h1 {
		font-size: 34px;
	}

	.articles-archive-hub .page-hero__lead {
		font-size: 15px;
		margin-bottom: 26px;
	}

	.articles-archive-hub .page-hero__strip {
		gap: 24px;
	}

	.articles-archive-hub .page-hero__strip-item .n {
		font-size: 24px;
	}

	.articles-archive-hub .page-hero__visual {
		flex-direction: column;
		align-items: flex-start;
	}

	.articles-archive-hub .page-hero__img {
		max-width: 100%;
		aspect-ratio: 16 / 9;
	}

	.articles-archive-hub .page-hero__note {
		max-width: 100%;
	}

	.articles-archive-hub .section {
		padding: 60px 0;
	}

	.articles-archive-hub .section-title,
	.articles-archive-hub .intro__title,
	.articles-archive-hub .why__title {
		font-size: 26px;
	}

	.articles-archive-hub .intro__body p {
		font-size: 15.5px;
	}

	.articles-archive-hub .articles__grid .wp-block-post-template {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.articles-archive-hub .article-card__cover {
		aspect-ratio: 16 / 9;
	}

	.articles-archive-hub .article-card__title {
		font-size: 19px;
	}

	.articles-archive-hub .categories__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.articles-archive-hub .cat-card {
		padding: 22px 18px;
		gap: 12px;
	}

	.articles-archive-hub .cat-card__icon {
		width: 44px;
		height: 44px;
	}

	.articles-archive-hub .cat-card__icon svg {
		width: 20px;
		height: 20px;
	}

	.articles-archive-hub .cat-card__name {
		font-size: 15.5px;
	}

	.articles-archive-hub .why__stats {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.articles-archive-hub .why-stat {
		padding: 24px 20px;
	}

	.articles-archive-hub .why-stat .n {
		font-size: 30px;
	}
}

@media (max-width: 420px) {
	.articles-archive-hub .page-hero__h1 {
		font-size: 28px;
	}

	.articles-archive-hub .section-title,
	.articles-archive-hub .intro__title,
	.articles-archive-hub .why__title {
		font-size: 24px;
	}

	.articles-archive-hub .page-hero__strip {
		flex-wrap: wrap;
		gap: 18px;
	}
}
