/* =================================================================
   ARCHIVE / LISTING  —  Eye on Terrorism
   Page header + 2/3 card grid + 1/3 sidebar. RTL-first.
   ================================================================= */

.eot-archive {
	background: var(--dark-bg);
	padding-block: 32px 56px;
	min-height: 60vh;
}

.eot-archive-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	align-items: start;
}

/* ---------- PAGE HEADER ---------- */
.eot-page-header {
	background: var(--dark-surface);
	border: 1px solid var(--dark-border);
	border-inline-start: 4px solid var(--red-primary);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin-bottom: 28px;
}
.eot-page-title {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 1.9rem;
	color: var(--red-accent);
	margin: 0;
	line-height: 1.25;
}
.eot-page-desc {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 8px 0 0;
}

/* ---------- CARD GRID ---------- */
.eot-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.eot-card {
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.eot-card:hover {
	border-color: var(--red-primary);
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(183, 28, 28, 0.22);
}

.eot-card-thumb {
	display: block;
	position: relative;
	height: 220px;
	overflow: hidden;
	background: var(--dark-hover);
}
.eot-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.eot-card:hover .eot-card-thumb img { transform: scale(1.04); }

.eot-thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, var(--dark-hover) 0%, var(--dark-card) 100%);
}

.eot-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.eot-card-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.45;
	margin: 0;
}
.eot-card-title a { color: var(--text-primary); text-decoration: none; }
.eot-card-title a:hover { color: var(--red-link); }

.eot-card-excerpt {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eot-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 0.78rem;
	font-family: var(--font-body);
	margin-top: auto;
}
.eot-meta-sep { color: var(--dark-border); }

.eot-readmore {
	align-self: flex-start;
	background: var(--red-primary);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.82rem;
	padding: 8px 18px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background 0.2s ease;
	margin-top: 4px;
}
.eot-readmore:hover { background: var(--red-deep); color: #fff; text-decoration: none; }
.eot-readmore:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }

/* ---------- PAGINATION ---------- */
.eot-pagination { margin-top: 34px; }
.eot-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.eot-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	color: var(--text-primary);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.eot-pagination .page-numbers:hover,
.eot-pagination .page-numbers.current {
	background: var(--red-primary);
	border-color: var(--red-primary);
	color: #fff;
}
.eot-pagination .page-numbers:focus-visible { outline: 2px solid var(--red-accent); outline-offset: 2px; }

/* ---------- SIDEBAR / WIDGETS ---------- */
.eot-sidebar { display: flex; flex-direction: column; gap: 24px; }
.eot-widget {
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 20px;
}
.eot-widget-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text-primary);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--red-primary);
}
.eot-widget ul,
.eot-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.eot-widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--dark-border);
	font-size: 0.9rem;
}
.eot-widget li:last-child { border-bottom: 0; }
.eot-widget a { color: var(--text-muted); text-decoration: none; }
.eot-widget a:hover { color: var(--red-link); }
.eot-widget .count,
.eot-widget .post-count { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- EMPTY STATE ---------- */
.eot-empty {
	background: var(--dark-card);
	border: 1px solid var(--dark-border);
	border-radius: var(--radius);
	padding: 48px 24px;
	text-align: center;
}
.eot-empty h2 { color: var(--text-primary); margin: 0 0 8px; }
.eot-empty p { color: var(--text-muted); margin: 0; }

/* ---------- RESPONSIVE ---------- */

/* Tablet — tighten the main/sidebar ratio; step the thumb height down */
@media (max-width: 1024px) {
	.eot-archive-layout {
		grid-template-columns: 1.6fr 1fr;
		gap: 24px;
	}
	.eot-card-thumb { height: 200px; }
}

/* Large-phone / small-tablet — collapse to single column,
   sidebar drops BELOW the main column, and bump tap targets to >=44px */
@media (max-width: 768px) {
	.eot-archive-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	/* main content first, sidebar pushed underneath */
	.eot-archive-main { order: 1; }
	.eot-sidebar { order: 2; }

	/* >=44px tap target on the read-more CTA */
	.eot-readmore {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		padding-block: 0;
		padding-inline: 20px;
	}

	/* category badge / inline links inside meta get a comfortable tap area */
	.eot-card-meta a,
	.eot-card-cat {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* pagination items reach >=44px and wrap freely */
	.eot-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
	}
}

/* Phone — single-column card grid; smaller thumbs; scale the header down */
@media (max-width: 560px) {
	.eot-card-grid { grid-template-columns: 1fr; }
	.eot-card-thumb { height: 180px; }

	.eot-page-header { padding: 18px 18px; }
	.eot-page-title { font-size: 1.5rem; }
	.eot-page-desc { font-size: 0.9rem; }
}

/* Small-phone — minimum-comfortable header padding + title */
@media (max-width: 400px) {
	.eot-page-header { padding: 16px 14px; }
	.eot-page-title { font-size: 1.35rem; }
	.eot-card-body { padding: 16px; }
}
