/**
 * Banaco news archive page.
 */

:root {
	--banaco-news-primary: #1a8769;
	--banaco-news-muted: #7f8a86;
	--banaco-news-border: #e6ece8;
	--banaco-news-bg: #f7faf8;
}

.banaco-news-page {
	padding: 20px 0 46px;
	background: #fff;
}

.banaco-news-banner-wrap + .container {
	padding-top: 20px;
}

.banaco-news-breadcrumb {
	display: flex;
	gap: 8px;
	font-size: 14px;
	color: var(--banaco-news-muted);
	margin-bottom: 18px;
}

.banaco-news-breadcrumb a {
	color: var(--banaco-news-muted);
	text-decoration: none;
}

.banaco-news-layout {
	align-items: flex-start;
}

.banaco-news-sidebar {
	padding-right: 10px;
}

.banaco-news-card {
	border: 1px solid var(--banaco-news-border);
	border-radius: 6px;
	padding: 14px;
	margin-bottom: 16px;
	background: #fff;
}

.banaco-news-card h3 {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--banaco-primary, #1a8769);
	margin: 0 0 10px;
}

.banaco-news-cats {
	list-style: none;
	padding: 0;
	margin: 0;
}

.banaco-news-cats li {
	border-left: 2px solid transparent;
}

.banaco-news-cats a {
	display: block;
	padding: 8px 10px;
	font-size: 14px;
	color: #3c4843;
	text-decoration: none;
	border-radius: 4px;
}

.banaco-news-cats li.is-active {
	border-left-color: var(--banaco-news-primary);
}

.banaco-news-cats li.is-active a {
	color: var(--banaco-news-primary);
	font-weight: 700;
	background: var(--banaco-news-bg);
}

.banaco-news-date-form select {
	width: 100%;
	height: 38px;
	border: 1px solid var(--banaco-news-border);
	border-radius: 4px;
	font-size: 14px;
	color: #3b4742;
	background: #fff;
}

.banaco-news-catalog p {
	font-size: 14px;
	color: #66716d;
	margin-bottom: 10px;
}

.banaco-news-catalog-btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 10px 12px;
	border: 1px solid #2f4942;
	border-radius: 4px;
	color: #2f4942;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
}

.banaco-news-catalog-cover {
	margin-top: 12px;
	border-radius: 6px;
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

div.banaco-news-catalog-cover {
	aspect-ratio: 3 / 4;
	background: linear-gradient(140deg, #1b5a4a 0%, #4e8d52 100%);
}

.banaco-news-main {
	padding-left: 10px;
}

.banaco-news-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.banaco-news-toolbar p {
	margin: 0;
	font-size: 12px;
	color: #4b5752;
}

.banaco-news-search {
	position: relative;
	min-width: 260px;
}

.banaco-news-search input {
	height: 36px;
	border: 1px solid var(--banaco-news-border);
	border-radius: 4px;
	font-size: 12px;
	padding-right: 40px;
	margin-bottom: 0;
}

.banaco-news-search button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: #1a8769;
	color: #fff;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: unset;
	margin: 0;
}

.banaco-news-search button svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.banaco-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.banaco-news-item {
	border: 1px solid var(--banaco-news-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.banaco-news-item__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef3f0;
}

.banaco-news-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banaco-news-item__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #cfd9d4 0%, #ecf2ef 100%);
}

.banaco-news-item__content {
	padding: 10px 12px 12px;
}

.banaco-news-item__meta {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #1a8769;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.banaco-news-item h3 {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 6px;
}

.banaco-news-item h3 a {
	color: #1e2e29;
	text-decoration: none;
}

.banaco-news-item p {
	font-size: 14px;
	line-height: 1.55;
	color: #5f6c67;
	margin: 0 0 8px;
}

.banaco-news-item__readmore {
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--banaco-news-primary);
	text-decoration: none;
}

.banaco-news-pagination {
	margin-top: 18px;
}

.banaco-news-pagination .nav-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.banaco-news-pagination .page-number {
	min-width: 28px;
	height: 28px;
	border-radius: 4px;
	border: 1px solid var(--banaco-news-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.banaco-news-pagination .page-number.current {
	background: var(--banaco-news-primary);
	border-color: var(--banaco-news-primary);
	color: #fff;
}

@media (max-width: 1024px) {
	.banaco-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.banaco-news-sidebar,
	.banaco-news-main {
		padding: 0;
	}

	.banaco-news-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.banaco-news-search {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 549px) {
	.banaco-news-grid {
		grid-template-columns: 1fr;
	}
}

