/**
 * Improved Blog Archive Styles - Magazine Layout
 */

.ibarch-page {
	max-width: 1060px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

.ibarch-header {
	margin-bottom: 1.25rem;
}

.ibarch-title {
	font-size: 1.65rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #111;
}

.ibarch-subtitle {
	font-size: 0.85rem;
	color: #999;
	margin: 0;
}

.ibarch-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 1.75rem;
}

.ibarch-filter-pill {
	font-size: 0.78rem;
	padding: 5px 16px;
	border-radius: 20px;
	border: 1px solid #d5d5d5;
	color: #777;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	font-weight: 500;
}

.ibarch-filter-pill:hover {
	border-color: #999;
	color: #333;
}

.ibarch-filter-pill--active {
	background: #111;
	color: #fff;
	border-color: #111;
}

.ibarch-filter-pill--active:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.ibarch-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.ibarch-badges--small {
	margin-bottom: 6px;
}

.ibarch-badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 5px;
	line-height: 1.5;
}

.ibarch-meta-line {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: #aaa;
}

.ibarch-meta-line--small {
	font-size: 0.75rem;
}

.ibarch-meta-line--tiny {
	font-size: 0.7rem;
	color: #bbb;
}

.ibarch-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	padding: 20px;
	background: #f6f6f6;
	border-radius: 12px;
	margin-bottom: 18px;
	text-decoration: none;
	transition: background 0.2s;
}

.ibarch-featured:hover {
	background: #f0f0f0;
}

@media (max-width: 680px) {
	.ibarch-featured {
		grid-template-columns: 1fr;
	}
}

.ibarch-featured__image {
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: #eaeaea;
}

.ibarch-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ibarch-featured__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ibarch-featured__title {
	font-size: 1.3rem;
	font-weight: 650;
	color: #111;
	margin: 0 0 8px;
	line-height: 1.3;
}

.ibarch-featured__excerpt {
	font-size: 0.85rem;
	color: #666;
	line-height: 1.55;
	margin: 0 0 12px;
}

.ibarch-medium-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

@media (max-width: 680px) {
	.ibarch-medium-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

.ibarch-medium-card {
	text-decoration: none;
	display: block;
}

.ibarch-medium-card:hover .ibarch-medium-card__title {
	color: #000;
}

.ibarch-medium-card__image {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f3f3;
	margin-bottom: 10px;
}

.ibarch-medium-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ibarch-medium-card:hover .ibarch-medium-card__img {
	transform: scale(1.04);
}

.ibarch-medium-card__title {
	font-size: 0.92rem;
	font-weight: 550;
	color: #222;
	margin: 0 0 4px;
	line-height: 1.35;
	transition: color 0.2s;
}

.ibarch-small-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 2rem;
}

@media (max-width: 680px) {
	.ibarch-small-grid {
		grid-template-columns: 1fr;
	}
}

.ibarch-small-card {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	text-decoration: none;
}

.ibarch-small-card:hover .ibarch-small-card__title {
	color: #000;
}

.ibarch-small-card__image {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
}

.ibarch-small-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ibarch-small-card__content {
	min-width: 0;
}

.ibarch-small-card__title {
	font-size: 0.85rem;
	font-weight: 550;
	color: #222;
	margin: 0 0 3px;
	line-height: 1.35;
	transition: color 0.2s;
}

.ibarch-pagination {
	display: flex;
	justify-content: center;
}

.ibarch-pagination .page-numbers {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	margin: 0;
}

.ibarch-pagination .page-numbers li {
	list-style: none;
}

.ibarch-pagination .page-numbers a,
.ibarch-pagination .page-numbers span {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 0.82rem;
	text-decoration: none;
	color: #777;
	transition: background 0.2s, color 0.2s;
}

.ibarch-pagination .page-numbers a:hover {
	background: #f3f3f3;
	color: #111;
}

.ibarch-pagination .page-numbers span.current {
	background: #111;
	color: #fff;
	font-weight: 550;
}

.ibarch-pagination .page-numbers .dots {
	color: #bbb;
	background: none;
}

.ibarch-no-results {
	text-align: center;
	padding: 4rem 1rem;
	color: #888;
	font-size: 0.95rem;
}

.ibarch-no-results a {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.88rem;
	color: #185FA5;
	text-decoration: none;
}

.ibarch-no-results a:hover {
	text-decoration: underline;
}