/* =========================================================
 * NationVoice — Archive List Widget
 * For Theme Builder Archive (category, tag, search, author) templates
 * ========================================================= */

.nv-al-wrapper {
	--nv-primary: #3c4d8c;
	--nv-heading: #202428;
	--nv-text: #5e5e5e;
	--nv-text-soft: #7c7c7c;
	--nv-bg: #ffffff;

	--nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nv-trans: 0.3s var(--nv-ease);
	--nv-font-body: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nv-font-heading: Georgia, 'Times New Roman', serif;

	font-family: var(--nv-font-body);
	color: var(--nv-text);
}

.nv-al-wrapper *, .nv-al-wrapper *::before, .nv-al-wrapper *::after { box-sizing: border-box; }

.elementor-page .nv-al-wrapper,
.e-con .nv-al-wrapper,
.elementor-widget-container .nv-al-wrapper {
	color: var(--nv-text) !important;
	font-family: var(--nv-font-body) !important;
}

/* Frame */
.nv-al-wrapper .nv-al { width: 100%; background-color: var(--nv-bg); }

.nv-al-wrapper .nv-al__container {
	max-width: 900px;
	margin: 0 auto;
	padding: 56px 32px;
}

/* Header */
.nv-al-wrapper .nv-al__header { margin-bottom: 40px; }

.nv-al-wrapper .nv-al__eyebrow {
	font-family: var(--nv-font-body) !important;
	font-size: 13px;
	font-weight: 400;
	color: var(--nv-text-soft) !important;
	margin-bottom: 4px;
}

.nv-al-wrapper .nv-al__archive-title {
	margin: 0;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 30px;
	line-height: 1.25;
	color: var(--nv-heading) !important;
}

.nv-al-wrapper .nv-al__archive-desc {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--nv-text);
}

/* Post list */
.nv-al-wrapper .nv-al__list {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Post card */
.nv-al-wrapper .nv-al__post {
	display: grid;
	grid-template-columns: 120px 1fr;
	column-gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nv-al-wrapper .nv-al__post:last-child { border-bottom: 0; padding-bottom: 0; }

/* Aside (avatar + meta) */
.nv-al-wrapper .nv-al__aside {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.nv-al-wrapper .nv-al__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background-color: #f0f0f0;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.nv-al-wrapper .nv-al__meta {
	font-family: var(--nv-font-body) !important;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--nv-text-soft) !important;
	text-align: center;
}

.nv-al-wrapper .nv-al__meta a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color var(--nv-trans);
}

.nv-al-wrapper .nv-al__meta a:hover {
	color: var(--nv-primary) !important;
}

/* Body */
.nv-al-wrapper .nv-al__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nv-al-wrapper .nv-al__title {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: var(--nv-heading);
}

.nv-al-wrapper .nv-al__title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color var(--nv-trans);
}

.nv-al-wrapper .nv-al__title a:hover {
	color: var(--nv-primary) !important;
}

.nv-al-wrapper .nv-al__image-link {
	display: block;
	overflow: hidden;
	background-color: #f0f0f0;
}

.nv-al-wrapper .nv-al__image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s var(--nv-ease);
}

.nv-al-wrapper .nv-al__image-link:hover .nv-al__image {
	transform: scale(1.03);
}

.nv-al-wrapper .nv-al__excerpt {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-size: 14px;
	line-height: 1.7;
	color: var(--nv-text) !important;
}

.nv-al-wrapper .nv-al__read-more {
	font-family: var(--nv-font-body) !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--nv-primary) !important;
	text-decoration: none !important;
	width: fit-content;
	transition: color var(--nv-trans), gap var(--nv-trans);
}

.nv-al-wrapper .nv-al__read-more:hover {
	opacity: 0.75;
}

.nv-al-wrapper .nv-al__empty {
	text-align: center;
	color: var(--nv-text-soft);
	padding: 48px 16px;
	font-style: italic;
}

/* Pagination */
.nv-al-wrapper .nv-al__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 48px;
}

.nv-al-wrapper .nv-al__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-family: var(--nv-font-body) !important;
	font-size: 14px;
	font-weight: 500;
	color: var(--nv-heading) !important;
	background-color: transparent;
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 6px;
	text-decoration: none !important;
	transition: all var(--nv-trans);
}

.nv-al-wrapper .nv-al__pagination .page-numbers:hover {
	background-color: rgba(60, 77, 140, 0.08);
	border-color: var(--nv-primary);
	color: var(--nv-primary) !important;
}

.nv-al-wrapper .nv-al__pagination .current {
	background-color: var(--nv-primary) !important;
	color: #ffffff !important;
	border-color: var(--nv-primary);
}

/* Responsive */
@media (max-width: 768px) {
	.nv-al-wrapper .nv-al__container { padding: 40px 16px; }
	.nv-al-wrapper .nv-al__archive-title { font-size: 22px; }

	.nv-al-wrapper .nv-al__post {
		grid-template-columns: 80px 1fr;
		column-gap: 20px;
		padding-bottom: 32px;
	}

	.nv-al-wrapper .nv-al__list { gap: 32px; }

	.nv-al-wrapper .nv-al__avatar {
		width: 48px;
		height: 48px;
	}

	.nv-al-wrapper .nv-al__meta { font-size: 10px; }
	.nv-al-wrapper .nv-al__title { font-size: 18px; }
	.nv-al-wrapper .nv-al__excerpt { font-size: 14px; }
}

@media (max-width: 480px) {
	.nv-al-wrapper .nv-al__post {
		grid-template-columns: 1fr;
	}
	.nv-al-wrapper .nv-al__aside {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		margin-bottom: 12px;
	}
	.nv-al-wrapper .nv-al__meta {
		text-align: left;
	}
}
